vue-data-ui 2.16.5 → 2.17.0

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 (92) hide show
  1. package/README.md +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -1,13 +1,14 @@
1
- import { R as X, _ 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 ye, af as Ae, 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 De, D as Be, a5 as We, aj as Ee, i as Ye, F as qe, L as Xe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-CZNLCg7T.js";
1
+ import { R as X, _ 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 ye, af as Ae, 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 De, D as Be, a5 as We, aj as Ee, i as Ye, F as qe, L as Xe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-pPGk-uhD.js";
2
2
  import { u as je } from "./useMouse-AicQS8Vf.js";
3
- import { u as ae } from "./useNestedProp-BcPDA6Xr.js";
3
+ import { u as ae } from "./useNestedProp-DjACxgdZ.js";
4
4
  import { u as $e } from "./useTimeLabels-Mrr0jrpL.js";
5
- import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as a, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as h, createVNode as le, createSlots as et, withCtx as B, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as u, renderList as x, toDisplayString as V, mergeProps as se, withDirectives as tt, vModelCheckbox as lt, createTextVNode as rt } from "vue";
6
- import { S as it } from "./Slicer-Bd0AkciG.js";
7
- import at from "./Title-BQLtfM0P.js";
8
- import { _ as st } from "./Shape-CrstrfQ9.js";
9
- import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const ct = ne(), ot = {
5
+ import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as a, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as h, createVNode as le, createSlots as et, withCtx as B, 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 rt } from "vue";
6
+ import { S as it } from "./Slicer-CL6-MRI6.js";
7
+ import at from "./Title-B-2bV0SW.js";
8
+ import { _ as st } from "./Shape-DtFT5EJa.js";
9
+ import nt from "./img-Y_hYz-ZC.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: {
@@ -29,15 +30,15 @@ const ct = ne(), ot = {
29
30
  Title: at,
30
31
  // Must be ready in responsive mode
31
32
  Shape: st,
32
- DataTable: Z(() => import("./DataTable-B6MXw9cG.js")),
33
- Tooltip: Z(() => import("./Tooltip-5JmGL7sR.js")),
34
- UserOptions: Z(() => import("./UserOptions-DMGkAAIO.js")),
35
- BaseIcon: Z(() => import("./BaseIcon-DJab5OQD.js")),
36
- TableSparkline: Z(() => import("./vue-ui-table-sparkline-DRgsZztN.js")),
37
- Skeleton: Z(() => import("./vue-ui-skeleton-D9B8DY_k.js")),
38
- Accordion: Z(() => import("./vue-ui-accordion-CO4hmfuX.js")),
39
- PackageVersion: Z(() => import("./PackageVersion-DCreTQN4.js")),
40
- PenAndPaper: Z(() => import("./PenAndPaper-BS60tkQN.js"))
33
+ DataTable: Z(() => import("./DataTable-D0VYDhfx.js")),
34
+ Tooltip: Z(() => import("./Tooltip-CoQnTnr-.js")),
35
+ UserOptions: Z(() => import("./UserOptions-Dd34lEKb.js")),
36
+ BaseIcon: Z(() => import("./BaseIcon-naqtCxVi.js")),
37
+ TableSparkline: Z(() => import("./vue-ui-table-sparkline-D4RubyLj.js")),
38
+ Skeleton: Z(() => import("./vue-ui-skeleton-DJPjyNYn.js")),
39
+ Accordion: Z(() => import("./vue-ui-accordion-CVnA550V.js")),
40
+ PackageVersion: Z(() => import("./PackageVersion-5TR4ocqp.js")),
41
+ PenAndPaper: Z(() => import("./PenAndPaper-D6AqipIO.js"))
41
42
  },
42
43
  data() {
43
44
  this.dataset.forEach((f, l) => {
@@ -48,9 +49,9 @@ const ct = ne(), ot = {
48
49
  index: l
49
50
  });
50
51
  });
51
- const r = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, o = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: r }).length)), d = {
52
+ const r = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, c = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: r }).length)), u = {
52
53
  start: 0,
53
- end: o
54
+ end: c
54
55
  };
55
56
  return {
56
57
  resizeObserver: null,
@@ -101,12 +102,12 @@ const ct = ne(), ot = {
101
102
  step: 0,
102
103
  tableStep: 0,
103
104
  titleStep: 0,
104
- slicer: d,
105
+ slicer: u,
105
106
  __to__: null,
106
- maxX: o,
107
+ maxX: c,
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,
@@ -128,9 +129,9 @@ const ct = ne(), ot = {
128
129
  },
129
130
  watch: {
130
131
  dataset: {
131
- handler(r, o) {
132
- this.maxX = Math.max(...this.dataset.map((d) => this.largestTriangleThreeBucketsArray({
133
- data: d.series,
132
+ handler(r, c) {
133
+ this.maxX = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({
134
+ data: u.series,
134
135
  threshold: this.FINAL_CONFIG.downsample.threshold
135
136
  }).length)), this.slicer = {
136
137
  start: 0,
@@ -140,7 +141,7 @@ const ct = ne(), ot = {
140
141
  deep: !0
141
142
  },
142
143
  config: {
143
- handler(r, o) {
144
+ handler(r, c) {
144
145
  this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
145
146
  dataLabels: {
146
147
  show: !0
@@ -159,8 +160,8 @@ const ct = ne(), ot = {
159
160
  return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.formatter.locale;
160
161
  },
161
162
  chartAriaLabel() {
162
- const r = this.FINAL_CONFIG.chart.title.text || "Chart visualization", o = this.FINAL_CONFIG.chart.title.subtitle.text || "";
163
- return `${r}. ${o}`;
163
+ const r = this.FINAL_CONFIG.chart.title.text || "Chart visualization", c = this.FINAL_CONFIG.chart.title.subtitle.text || "";
164
+ return `${r}. ${c}`;
164
165
  },
165
166
  optimize() {
166
167
  return {
@@ -172,11 +173,11 @@ const ct = ne(), ot = {
172
173
  },
173
174
  minimap() {
174
175
  if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
175
- const r = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), o = Math.max(...r.map((l) => l.series.length)), d = [];
176
- for (let l = 0; l < o; l += 1)
177
- d.push(r.map((e) => e.series[l] || 0).reduce((e, i) => (e || 0) + (i || 0), 0));
178
- const f = Math.min(...d);
179
- return d.map((l) => l + (f < 0 ? Math.abs(f) : 0));
176
+ const r = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), c = Math.max(...r.map((l) => l.series.length)), u = [];
177
+ for (let l = 0; l < c; l += 1)
178
+ u.push(r.map((e) => e.series[l] || 0).reduce((e, i) => (e || 0) + (i || 0), 0));
179
+ const f = Math.min(...u);
180
+ return u.map((l) => l + (f < 0 ? Math.abs(f) : 0));
180
181
  },
181
182
  customPalette() {
182
183
  return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
@@ -200,7 +201,7 @@ const ct = ne(), ot = {
200
201
  yOffset: e.yOffset || 0,
201
202
  individualHeight: e.individualHeight || this.drawingArea.height,
202
203
  autoScaleYLabels: e.autoScaleYLabels
203
- })), o = this.barSet.map((e) => ({
204
+ })), c = this.barSet.map((e) => ({
204
205
  name: e.name,
205
206
  color: e.color,
206
207
  scale: e.individualScale,
@@ -211,7 +212,7 @@ const ct = ne(), ot = {
211
212
  id: e.id,
212
213
  yOffset: e.yOffset || 0,
213
214
  individualHeight: e.individualHeight || this.drawingArea.height
214
- })), d = this.plotSet.map((e) => ({
215
+ })), u = this.plotSet.map((e) => ({
215
216
  name: e.name,
216
217
  color: e.color,
217
218
  scale: e.individualScale,
@@ -223,7 +224,7 @@ const ct = ne(), ot = {
223
224
  id: e.id,
224
225
  yOffset: e.yOffset || 0,
225
226
  individualHeight: e.individualHeight || this.drawingArea.height
226
- })), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...r, ...o, ...d], l = f.flatMap((e) => e).length;
227
+ })), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...r, ...c, ...u], l = f.flatMap((e) => e).length;
227
228
  return f.flatMap((e, i) => ({
228
229
  unique: e.unique,
229
230
  id: e.id,
@@ -261,9 +262,9 @@ const ct = ne(), ot = {
261
262
  },
262
263
  highlightAreas() {
263
264
  if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
264
- return this.FINAL_CONFIG.chart.highlightArea.map((o) => ({
265
- ...o,
266
- span: o.from === o.to ? 1 : o.to < o.from ? 0 : o.to - o.from + 1
265
+ return this.FINAL_CONFIG.chart.highlightArea.map((c) => ({
266
+ ...c,
267
+ span: c.from === c.to ? 1 : c.to < c.from ? 0 : c.to - c.from + 1
267
268
  }));
268
269
  const r = this.FINAL_CONFIG.chart.highlightArea;
269
270
  return [{ ...r, span: r.from === r.to ? 1 : r.to < r.from ? 0 : r.to - r.from + 1 }];
@@ -278,46 +279,46 @@ const ct = ne(), ot = {
278
279
  return this.niceScale.max + this.relativeZero;
279
280
  },
280
281
  datasetWithIds() {
281
- return this.useSafeValues ? this.dataset.map((r, o) => ({
282
+ return this.useSafeValues ? this.dataset.map((r, c) => ({
282
283
  ...r,
283
284
  series: this.largestTriangleThreeBucketsArray({
284
285
  data: r.series,
285
286
  threshold: this.FINAL_CONFIG.downsample.threshold
286
287
  }),
287
- id: `uniqueId_${o}`
288
+ id: `uniqueId_${c}`
288
289
  })) : this.dataset;
289
290
  },
290
291
  safeDataset() {
291
- return this.useSafeValues ? this.dataset.map((r, o) => {
292
- const d = this.largestTriangleThreeBucketsArray({
292
+ return this.useSafeValues ? this.dataset.map((r, c) => {
293
+ const u = this.largestTriangleThreeBucketsArray({
293
294
  data: r.series,
294
295
  threshold: this.FINAL_CONFIG.downsample.threshold
295
- }), f = `uniqueId_${o}`;
296
+ }), f = `uniqueId_${c}`;
296
297
  return {
297
298
  ...r,
298
- slotAbsoluteIndex: o,
299
- series: d.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
300
- color: this.convertColorToHex(r.color ? r.color : this.customPalette[o] ? this.customPalette[o] : this.palette[o]),
299
+ slotAbsoluteIndex: c,
300
+ series: u.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
301
+ color: this.convertColorToHex(r.color ? r.color : this.customPalette[c] ? this.customPalette[c] : this.palette[c]),
301
302
  id: f,
302
303
  scaleLabel: r.scaleLabel || f
303
304
  };
304
305
  }) : this.dataset;
305
306
  },
306
307
  relativeDataset() {
307
- return this.safeDataset.map((r, o) => ({
308
+ return this.safeDataset.map((r, c) => ({
308
309
  ...r,
309
- series: r.series.map((d) => d + this.relativeZero),
310
+ series: r.series.map((u) => u + this.relativeZero),
310
311
  absoluteValues: r.series
311
312
  })).filter((r) => !this.segregatedSeries.includes(r.id));
312
313
  },
313
314
  tableSparklineDataset() {
314
315
  return this.relativeDataset.map((r) => {
315
- const o = r.absoluteValues.map((d) => [void 0, null].includes(d) ? 0 : d);
316
+ const c = r.absoluteValues.map((u) => [void 0, null].includes(u) ? 0 : u);
316
317
  return {
317
318
  id: r.id,
318
319
  name: r.name,
319
320
  color: r.color,
320
- values: this.fillArray(this.maxSeries, o)
321
+ values: this.fillArray(this.maxSeries, c)
321
322
  };
322
323
  });
323
324
  },
@@ -348,10 +349,10 @@ const ct = ne(), ot = {
348
349
  };
349
350
  },
350
351
  absoluteDataset() {
351
- return this.safeDataset.map((r, o) => ({
352
- absoluteIndex: o,
352
+ return this.safeDataset.map((r, c) => ({
353
+ absoluteIndex: c,
353
354
  ...r,
354
- series: r.series.map((d) => d + this.relativeZero),
355
+ series: r.series.map((u) => u + this.relativeZero),
355
356
  absoluteValues: r.series,
356
357
  segregate: () => this.segregate(r),
357
358
  isSegregated: this.segregatedSeries.includes(r.id)
@@ -364,19 +365,19 @@ const ct = ne(), ot = {
364
365
  return this.assignStackRatios(this.absoluteDataset.filter((r) => !this.segregatedSeries.includes(r.id)));
365
366
  },
366
367
  scaleGroups() {
367
- const r = Object.groupBy(this.activeSeriesWithStackRatios, (d) => d.scaleLabel), o = {};
368
- for (const [d, f] of Object.entries(r)) {
368
+ const r = Object.groupBy(this.activeSeriesWithStackRatios, (u) => u.scaleLabel), c = {};
369
+ for (const [u, f] of Object.entries(r)) {
369
370
  const l = f.flatMap((e) => e.absoluteValues);
370
- o[d] = {
371
+ c[u] = {
371
372
  min: Math.min(...l) || 0,
372
373
  max: Math.max(...l) || 1,
373
374
  groupId: `scale_group_${this.createUid()}`
374
375
  };
375
376
  }
376
- return o;
377
+ return c;
377
378
  },
378
379
  barSet() {
379
- const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), o = r.length, d = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? d * (o - 1) : 0, e = this.drawingArea.height - l;
380
+ const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length, u = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? u * (c - 1) : 0, e = this.drawingArea.height - l;
380
381
  return r.filter((i) => i.type === "bar").map((i, A) => {
381
382
  this.checkAutoScaleError(i);
382
383
  const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
@@ -387,7 +388,7 @@ const ct = ne(), ot = {
387
388
  }, F = {
388
389
  max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
389
390
  min: i.scaleMin || Math.min(...i.absoluteValues.filter((C) => ![void 0, null].includes(C))) > 0 ? 0 : Math.min(...i.absoluteValues.filter((C) => ![null, void 0].includes(C)))
390
- }, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = 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 = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + M, c = b.max + Math.abs(H), n = i.stackIndex, g = o - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p + d * g : 0, k = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / c, W = this.absoluteDataset.filter((C) => C.type === "bar").filter((C) => !this.segregatedSeries.includes(C.id)).length, te = i.series.map((C, R) => {
391
+ }, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = 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 = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + M, o = b.max + Math.abs(H), n = i.stackIndex, g = c - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p + u * g : 0, k = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / o, W = this.absoluteDataset.filter((C) => C.type === "bar").filter((C) => !this.segregatedSeries.includes(C.id)).length, te = i.series.map((C, R) => {
391
392
  const K = this.mutableConfig.useIndividualScale ? (i.absoluteValues[R] + M) / t : this.ratioToMax(C), Q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left + this.slot.bar * A + this.slot.bar * R * W - this.barSlot / 2 - A * this.barPeriodGap;
392
393
  return {
393
394
  yOffset: this.checkNaN(S),
@@ -427,14 +428,14 @@ const ct = ne(), ot = {
427
428
  datapoint: i
428
429
  };
429
430
  });
430
- 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 ? c : t, this.scaleGroups[i.scaleLabel].scaleLabel = i.scaleLabel, this.scaleGroups[i.scaleLabel].id = i.id, this.scaleGroups[i.scaleLabel].yOffset = S, this.scaleGroups[i.scaleLabel].individualHeight = k, this.scaleGroups[i.scaleLabel].autoScaleYLabels = P, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((C) => C.scaleLabel === i.scaleLabel).length === 1, {
431
+ 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 = S, this.scaleGroups[i.scaleLabel].individualHeight = k, this.scaleGroups[i.scaleLabel].autoScaleYLabels = P, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((C) => C.scaleLabel === i.scaleLabel).length === 1, {
431
432
  ...i,
432
433
  yOffset: S,
433
434
  autoScaleYLabels: P,
434
435
  individualHeight: k,
435
436
  scaleYLabels: i.autoScaling ? P : w,
436
437
  individualScale: i.autoScaling ? b : L,
437
- individualMax: i.autoScaling ? c : t,
438
+ individualMax: i.autoScaling ? o : t,
438
439
  zeroPosition: i.autoScaling ? Y : T,
439
440
  plots: i.autoScaling ? J : te,
440
441
  groupId: this.scaleGroups[i.scaleLabel].groupId
@@ -442,7 +443,7 @@ const ct = ne(), ot = {
442
443
  });
443
444
  },
444
445
  lineSet() {
445
- const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), o = r.length, d = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? d * (o - 1) : 0, e = this.drawingArea.height - l;
446
+ const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length, u = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? u * (c - 1) : 0, e = this.drawingArea.height - l;
446
447
  return r.filter((i) => i.type === "line").map((i, A) => {
447
448
  this.checkAutoScaleError(i);
448
449
  const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
@@ -453,7 +454,7 @@ const ct = ne(), ot = {
453
454
  }, F = {
454
455
  max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
455
456
  min: i.scaleMin || (Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues))
456
- }, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = 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 = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + Math.abs(M), c = b.max + Math.abs(H), n = i.stackIndex, g = o - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p + d * g : 0, k = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / c, W = i.series.map((y, D) => {
457
+ }, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = 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 = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + Math.abs(M), o = b.max + Math.abs(H), n = i.stackIndex, g = c - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p + u * g : 0, k = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / o, W = i.series.map((y, D) => {
457
458
  const he = this.mutableConfig.useIndividualScale ? (i.absoluteValues[D] + Math.abs(M)) / t : this.ratioToMax(y);
458
459
  return {
459
460
  x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * D),
@@ -487,7 +488,7 @@ const ct = ne(), ot = {
487
488
  datapoint: i
488
489
  };
489
490
  });
490
- 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 ? c : t, this.scaleGroups[i.scaleLabel].scaleLabel = i.scaleLabel, this.scaleGroups[i.scaleLabel].id = i.id, this.scaleGroups[i.scaleLabel].yOffset = S, this.scaleGroups[i.scaleLabel].individualHeight = k, this.scaleGroups[i.scaleLabel].autoScaleYLabels = K, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((y) => y.scaleLabel === i.scaleLabel).length === 1;
491
+ 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 = S, this.scaleGroups[i.scaleLabel].individualHeight = k, this.scaleGroups[i.scaleLabel].autoScaleYLabels = K, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((y) => y.scaleLabel === i.scaleLabel).length === 1;
491
492
  const Q = this.mutableConfig.useIndividualScale ? i.autoScaling ? Y : T : this.zero, re = Math.max(Math.max(i.autoScaling ? Y : R.at(-1).y || 0, this.drawingArea.top), Q);
492
493
  return {
493
494
  ...i,
@@ -496,7 +497,7 @@ const ct = ne(), ot = {
496
497
  individualHeight: k,
497
498
  scaleYLabels: i.autoScaling ? K : R,
498
499
  individualScale: i.autoScaling ? b : L,
499
- individualMax: i.autoScaling ? c : t,
500
+ individualMax: i.autoScaling ? o : t,
500
501
  zeroPosition: i.autoScaling ? Y : T,
501
502
  curve: i.autoScaling ? w : J,
502
503
  plots: i.autoScaling ? E : W,
@@ -518,7 +519,7 @@ const ct = ne(), ot = {
518
519
  });
519
520
  },
520
521
  plotSet() {
521
- const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), o = r.length, d = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? d * (o - 1) : 0, e = this.drawingArea.height - l;
522
+ const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length, u = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? u * (c - 1) : 0, e = this.drawingArea.height - l;
522
523
  return r.filter((i) => i.type === "plot").map((i) => {
523
524
  this.checkAutoScaleError(i);
524
525
  const A = this.scaleGroups[i.scaleLabel].min, z = this.scaleGroups[i.scaleLabel].max;
@@ -529,7 +530,7 @@ const ct = ne(), ot = {
529
530
  }, N = {
530
531
  max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
531
532
  min: i.scaleMin || Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues)
532
- }, 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), L = 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 = L.max + Math.abs(M), c = i.stackIndex, n = o - 1 - c, g = f ? 1 - i.cumulatedStackRatio : 0, p = f ? e * g + d * n : 0, S = f ? e * i.stackRatio : this.drawingArea.height, k = this.drawingArea.bottom - p - S * b / H, T = this.drawingArea.bottom - p - S * M / t, Y = i.series.map((w, P) => {
533
+ }, 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), L = 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 = L.max + Math.abs(M), o = i.stackIndex, n = c - 1 - o, g = f ? 1 - i.cumulatedStackRatio : 0, p = f ? e * g + u * n : 0, S = f ? e * i.stackRatio : this.drawingArea.height, k = this.drawingArea.bottom - p - S * b / H, T = this.drawingArea.bottom - p - S * M / t, Y = i.series.map((w, P) => {
533
534
  const C = this.mutableConfig.useIndividualScale ? (i.absoluteValues[P] + Math.abs(b)) / H : this.ratioToMax(w);
534
535
  return {
535
536
  x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * P),
@@ -580,14 +581,14 @@ const ct = ne(), ot = {
580
581
  l.add(i);
581
582
  }), l.size;
582
583
  }
583
- const o = r(this.absoluteDataset.filter((f) => !this.segregatedSeries.includes(f.id))), d = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? o * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
584
+ const c = r(this.absoluteDataset.filter((f) => !this.segregatedSeries.includes(f.id))), u = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? c * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
584
585
  return {
585
586
  top: this.FINAL_CONFIG.chart.padding.top,
586
587
  right: this.width - this.FINAL_CONFIG.chart.padding.right,
587
588
  bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
588
- left: this.FINAL_CONFIG.chart.padding.left + d,
589
+ left: this.FINAL_CONFIG.chart.padding.left + u,
589
590
  height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
590
- width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + d)
591
+ width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + u)
591
592
  };
592
593
  },
593
594
  max() {
@@ -596,7 +597,7 @@ const ct = ne(), ot = {
596
597
  min() {
597
598
  if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
598
599
  return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
599
- const r = Math.min(...this.safeDataset.filter((o) => !this.segregatedSeries.includes(o.id)).map((o) => Math.min(...o.series)));
600
+ const r = Math.min(...this.safeDataset.filter((c) => !this.segregatedSeries.includes(c.id)).map((c) => Math.min(...c.series)));
600
601
  return r > 0 ? 0 : r;
601
602
  },
602
603
  niceScale() {
@@ -606,7 +607,7 @@ const ct = ne(), ot = {
606
607
  return this.slicer.end - this.slicer.start;
607
608
  },
608
609
  timeLabels() {
609
- const r = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
610
+ const r = Math.max(...this.dataset.map((c) => this.largestTriangleThreeBucketsArray({ data: c.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
610
611
  return $e({
611
612
  values: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values,
612
613
  maxDatapoints: r,
@@ -623,7 +624,7 @@ const ct = ne(), ot = {
623
624
  };
624
625
  },
625
626
  barSlot() {
626
- const r = this.safeDataset.filter((o) => o.type === "bar").filter((o) => !this.segregatedSeries.includes(o.id)).length;
627
+ const r = this.safeDataset.filter((c) => c.type === "bar").filter((c) => !this.segregatedSeries.includes(c.id)).length;
627
628
  return this.drawingArea.width / this.maxSeries / r - this.barPeriodGap * r;
628
629
  },
629
630
  barPeriodGap() {
@@ -634,26 +635,26 @@ const ct = ne(), ot = {
634
635
  },
635
636
  table() {
636
637
  if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
637
- const r = this.relativeDataset.map((d) => ({
638
- label: d.name,
639
- color: d.color,
640
- type: d.type
641
- })), o = [];
642
- return this.timeLabels.forEach((d, f) => {
643
- const l = [d.text];
638
+ const r = this.relativeDataset.map((u) => ({
639
+ label: u.name,
640
+ color: u.color,
641
+ type: u.type
642
+ })), c = [];
643
+ return this.timeLabels.forEach((u, f) => {
644
+ const l = [u.text];
644
645
  this.relativeDataset.forEach((e) => {
645
646
  l.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
646
- }), o.push(l);
647
- }), { head: r, body: o };
647
+ }), c.push(l);
648
+ }), { head: r, body: c };
648
649
  },
649
650
  dataTable() {
650
651
  const r = this.FINAL_CONFIG.table.showSum;
651
- let o = [""].concat(this.relativeDataset.map((e) => e.name));
652
- r && (o = o.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>'));
653
- let d = [];
652
+ let c = [""].concat(this.relativeDataset.map((e) => e.name));
653
+ r && (c = c.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
654
+ let u = [];
654
655
  for (let e = 0; e < this.maxSeries; e += 1) {
655
656
  const i = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A, z) => A + z, 0);
656
- d.push(
657
+ u.push(
657
658
  [
658
659
  this.timeLabels[e].text ?? "-"
659
660
  ].concat(this.relativeDataset.map(
@@ -683,7 +684,7 @@ const ct = ne(), ot = {
683
684
  },
684
685
  breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
685
686
  }, l = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
686
- return { head: o, body: d, config: f, colNames: l };
687
+ return { head: c, body: u, config: f, colNames: l };
687
688
  },
688
689
  dataTooltipSlot() {
689
690
  return {
@@ -703,15 +704,15 @@ const ct = ne(), ot = {
703
704
  name: r.name,
704
705
  color: r.color,
705
706
  type: r.type,
706
- value: r.absoluteValues.find((o, d) => d === this.selectedSerieIndex),
707
+ value: r.absoluteValues.find((c, u) => u === this.selectedSerieIndex),
707
708
  comments: r.comments || [],
708
709
  prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
709
710
  suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix
710
711
  }));
711
712
  },
712
713
  tooltipContent() {
713
- let r = "", o = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
714
- const d = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
714
+ let r = "", c = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
715
+ const u = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
715
716
  return this.isFunction(f) && this.functionReturnsString(() => f({
716
717
  seriesIndex: this.selectedSerieIndex,
717
718
  datapoint: this.selectedSeries,
@@ -728,7 +729,7 @@ const ct = ne(), ot = {
728
729
  lines: this.lineSet,
729
730
  plots: this.plotSet,
730
731
  config: this.FINAL_CONFIG
731
- }) : (d && d.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${d.text}</div>`), this.selectedSeries.forEach((l) => {
732
+ }) : (u && u.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${u.text}</div>`), this.selectedSeries.forEach((l) => {
732
733
  if (this.isSafeValue(l.value)) {
733
734
  let e = "", i = "";
734
735
  switch (this.icons[l.type]) {
@@ -779,7 +780,7 @@ const ct = ne(), ot = {
779
780
  }),
780
781
  { datapoint: l }
781
782
  ) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${oe({
782
- v: this.checkNaN(Math.abs(l.value) / o * 100),
783
+ v: this.checkNaN(Math.abs(l.value) / c * 100),
783
784
  s: "%",
784
785
  r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
785
786
  })})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && l.comments.length && l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (r += `<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>`);
@@ -806,21 +807,21 @@ const ct = ne(), ot = {
806
807
  annotationsY() {
807
808
  const r = this.FINAL_CONFIG.chart.annotations;
808
809
  if (!r || !Array.isArray(r) || r.every((N) => !N.show)) return [];
809
- const o = r.filter(
810
+ const c = r.filter(
810
811
  (N) => N.show && (N.yAxis.yTop != null || N.yAxis.yBottom != null)
811
812
  );
812
- if (!o.length) return [];
813
- const { left: d, right: f } = this.drawingArea, l = this.zero, e = this.drawingArea.height, i = this.niceScale.min, z = this.niceScale.max - i, O = (N) => {
813
+ if (!c.length) return [];
814
+ const { left: u, right: f } = this.drawingArea, l = this.zero, e = this.drawingArea.height, i = this.niceScale.min, z = this.niceScale.max - i, O = (N) => {
814
815
  const F = (N - 0) / z;
815
816
  return l - F * e;
816
817
  };
817
- return o.map((N) => {
818
+ return c.map((N) => {
818
819
  const { yAxis: { yTop: F, yBottom: v, label: m } } = N, L = F != null && v != null && F !== v, b = F == null ? null : O(F), M = v == null ? null : O(v), H = this.getTextMeasurer(m.fontSize);
819
820
  H.font = `${m.fontSize}px sans-serif`;
820
- const t = H.measureText(m.text).width, c = m.fontSize, n = (m.position === "start" ? d + 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;
821
+ const t = H.measureText(m.text).width, o = m.fontSize, n = (m.position === "start" ? u + 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;
821
822
  let S;
822
823
  m.textAnchor === "middle" ? S = n - t / 2 - m.padding.left : m.textAnchor === "end" ? S = n - t - m.padding.right : S = n - m.padding.left;
823
- const k = p - c * 0.75 - m.padding.top;
824
+ const k = p - o * 0.75 - m.padding.top;
824
825
  return {
825
826
  show: ![b, M, k].includes(NaN),
826
827
  id: `annotation_y_${this.createUid()}`,
@@ -829,14 +830,14 @@ const ct = ne(), ot = {
829
830
  yTop: b,
830
831
  yBottom: M,
831
832
  config: N.yAxis,
832
- x1: d,
833
+ x1: u,
833
834
  x2: f,
834
835
  _text: { x: n, y: p },
835
836
  _box: {
836
837
  x: S,
837
838
  y: k,
838
839
  width: t + m.padding.left + m.padding.right,
839
- height: c + m.padding.top + m.padding.bottom,
840
+ height: o + m.padding.top + m.padding.bottom,
840
841
  fill: m.backgroundColor,
841
842
  stroke: m.border.stroke,
842
843
  rx: m.border.rx,
@@ -903,19 +904,19 @@ const ct = ne(), ot = {
903
904
  usesSelectTimeLabelEvent() {
904
905
  return !!this.$.vnode.props?.onSelectTimeLabel;
905
906
  },
906
- getTextMeasurer(r, o, d) {
907
+ getTextMeasurer(r, c, u) {
907
908
  if (!this._textMeasurer) {
908
909
  const f = document.createElement("canvas");
909
910
  this._textMeasurer = f.getContext("2d");
910
911
  }
911
- return this._textMeasurer.font = `${d || "normal"} ${r}px ${o || "sans-serif"}`, this._textMeasurer;
912
+ return this._textMeasurer.font = `${u || "normal"} ${r}px ${c || "sans-serif"}`, this._textMeasurer;
912
913
  },
913
914
  hideTags() {
914
915
  const r = document.querySelectorAll(".vue-ui-xy-tag");
915
- r.length && Array.from(r).forEach((o) => o.style.opacity = "0");
916
+ r.length && Array.from(r).forEach((c) => c.style.opacity = "0");
916
917
  },
917
- setTagRef(r, o, d, f, l) {
918
- d && (this.tagRefs[`${r}_${o}_${f}_${l}`] = d);
918
+ setTagRef(r, c, u, f, l) {
919
+ u && (this.tagRefs[`${r}_${c}_${f}_${l}`] = u);
919
920
  },
920
921
  setUserOptionsVisibility(r = !1) {
921
922
  this.showUserOptionsOnChartHover && (this.userOptionsVisible = r);
@@ -923,65 +924,65 @@ const ct = ne(), ot = {
923
924
  toggleAnnotator() {
924
925
  this.isAnnotator = !this.isAnnotator;
925
926
  },
926
- selectTimeLabel(r, o) {
927
- const d = this.relativeDataset.map((f) => ({
927
+ selectTimeLabel(r, c) {
928
+ const u = this.relativeDataset.map((f) => ({
928
929
  shape: f.shape || null,
929
930
  name: f.name,
930
931
  color: f.color,
931
932
  type: f.type,
932
- value: f.absoluteValues.find((l, e) => e === o),
933
+ value: f.absoluteValues.find((l, e) => e === c),
933
934
  comments: f.comments || [],
934
935
  prefix: f.prefix || this.FINAL_CONFIG.chart.labels.prefix,
935
936
  suffix: f.suffix || this.FINAL_CONFIG.chart.labels.suffix
936
937
  }));
937
938
  this.$emit("selectTimeLabel", {
938
- datapoint: d,
939
+ datapoint: u,
939
940
  absoluteIndex: r.absoluteIndex,
940
941
  label: r.text
941
942
  });
942
943
  },
943
944
  getHighlightAreaPosition(r) {
944
- const o = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (r.from - this.slicer.start), d = this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span;
945
+ const c = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (r.from - this.slicer.start), u = this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span;
945
946
  return {
946
- x: o < this.drawingArea.left ? this.drawingArea.left : o,
947
- width: d
947
+ x: c < this.drawingArea.left ? this.drawingArea.left : c,
948
+ width: u
948
949
  };
949
950
  },
950
951
  prepareConfig() {
951
952
  const r = Ue().vue_ui_xy;
952
953
  if (!Object.keys(this.config || {}).length)
953
954
  return r;
954
- const o = this.useNestedProp({
955
+ const c = this.useNestedProp({
955
956
  userConfig: this.config,
956
957
  defaultConfig: r
957
958
  });
958
- return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? o.chart.highlightArea = this.config.chart.highlightArea : o.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? o.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : o.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? o.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : o.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? o.chart.zoom.startIndex = this.config.chart.zoom.startIndex : o.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? o.chart.zoom.endIndex = this.config.chart.zoom.endIndex : o.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? o.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : o.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? o.chart.annotations = this.config.chart.annotations.map((d) => ae({
959
+ return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? c.chart.highlightArea = this.config.chart.highlightArea : c.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? c.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : c.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? c.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : c.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? c.chart.zoom.startIndex = this.config.chart.zoom.startIndex : c.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? c.chart.zoom.endIndex = this.config.chart.zoom.endIndex : c.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? c.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : c.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? c.chart.annotations = this.config.chart.annotations.map((u) => ae({
959
960
  defaultConfig: r.chart.annotations[0],
960
- userConfig: d
961
- })) : o.chart.annotations = [], o.theme ? {
961
+ userConfig: u
962
+ })) : c.chart.annotations = [], c.theme ? {
962
963
  ...ae({
963
- userConfig: this.themes.vue_ui_xy[o.theme] || this.config,
964
- defaultConfig: o
964
+ userConfig: this.themes.vue_ui_xy[c.theme] || this.config,
965
+ defaultConfig: c
965
966
  }),
966
- customPalette: this.themePalettes[o.theme] || this.palette
967
- } : o;
967
+ customPalette: this.themePalettes[c.theme] || this.palette
968
+ } : c;
968
969
  },
969
970
  prepareChart() {
970
971
  if (this.objectIsEmpty(this.dataset) ? this.error({
971
972
  componentName: "VueUiXy",
972
973
  type: "dataset"
973
- }) : this.dataset.forEach((r, o) => {
974
+ }) : this.dataset.forEach((r, c) => {
974
975
  [null, void 0].includes(r.name) && this.error({
975
976
  componentName: "VueUiXy",
976
977
  type: "datasetSerieAttribute",
977
978
  property: "name (string)",
978
- index: o
979
+ index: c
979
980
  });
980
981
  }), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((r) => {
981
- r.series.forEach((o, d) => {
982
- this.isSafeValue(o) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
983
- -----> The serie '${r.name}' contains the value '${o}' at index ${d}.
984
- '${o}' was converted to null to allow the chart to display.`);
982
+ r.series.forEach((c, u) => {
983
+ this.isSafeValue(c) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
984
+ -----> The serie '${r.name}' contains the value '${c}' at index ${u}.
985
+ '${c}' was converted to null to allow the chart to display.`);
985
986
  });
986
987
  }), 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 = {
987
988
  dataLabels: {
@@ -992,9 +993,9 @@ const ct = ne(), ot = {
992
993
  isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
993
994
  useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
994
995
  }, this.FINAL_CONFIG.responsive) {
995
- const o = this.$refs.chart.parentNode;
996
+ const c = this.$refs.chart.parentNode;
996
997
  this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
997
- const { height: d, width: f } = o.getBoundingClientRect();
998
+ const { height: u, width: f } = c.getBoundingClientRect();
998
999
  let l = null, e = 0;
999
1000
  this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
1000
1001
  let i = null, A = 0;
@@ -1004,14 +1005,14 @@ const ct = ne(), ot = {
1004
1005
  let N = 0;
1005
1006
  this.$refs.source && (N = this.$refs.source.getBoundingClientRect().height);
1006
1007
  let F = 0;
1007
- this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height), this.height = d - e - O - A - N - F - 12, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
1008
+ this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height), this.height = u - e - O - A - N - F - 12, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
1008
1009
  const v = new ResizeObserver((m) => {
1009
1010
  for (const L of m)
1010
1011
  this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ? A = this.$refs.chartSlicer.$el.getBoundingClientRect().height : A = 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, requestAnimationFrame(() => {
1011
1012
  this.height = L.contentRect.height - e - O - A - N - F - 12, this.width = L.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
1012
1013
  });
1013
1014
  });
1014
- this.resizeObserver = v, this.observedEl = o, v.observe(o);
1015
+ this.resizeObserver = v, this.observedEl = c, v.observe(c);
1015
1016
  } else
1016
1017
  this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.viewBox = `0 0 ${this.width} ${this.height}`, this.fontSizes.dataLabels = this.FINAL_CONFIG.chart.grid.labels.fontSize, this.fontSizes.yAxis = this.FINAL_CONFIG.chart.grid.labels.axis.fontSize, this.fontSizes.xAxis = this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize, this.fontSizes.plotLabels = this.FINAL_CONFIG.chart.labels.fontSize, this.plotRadii.plot = this.FINAL_CONFIG.plot.radius, this.plotRadii.line = this.FINAL_CONFIG.line.radius;
1017
1018
  },
@@ -1076,20 +1077,20 @@ const ct = ne(), ot = {
1076
1077
  checkAutoScaleError(r) {
1077
1078
  r.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${r.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: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1078
1079
  },
1079
- createArea(r, o) {
1080
+ createArea(r, c) {
1080
1081
  if (!r[0]) return [-10, -10, "", -10, -10];
1081
- const d = { x: r[0].x, y: o }, f = { x: r.at(-1).x, y: o }, l = [];
1082
+ const u = { x: r[0].x, y: c }, f = { x: r.at(-1).x, y: c }, l = [];
1082
1083
  return r.forEach((e) => {
1083
1084
  l.push(`${e.x},${e.y} `);
1084
- }), [d.x, d.y, ...l, f.x, f.y].toString();
1085
+ }), [u.x, u.y, ...l, f.x, f.y].toString();
1085
1086
  },
1086
1087
  createStar: ie,
1087
1088
  createPolygonPath: X,
1088
- fillArray(r, o) {
1089
- let d = Array(r).fill(0);
1090
- for (let f = 0; f < o.length && f < r; f += 1)
1091
- d[f] = o[f];
1092
- return d;
1089
+ fillArray(r, c) {
1090
+ let u = Array(r).fill(0);
1091
+ for (let f = 0; f < c.length && f < r; f += 1)
1092
+ u[f] = c[f];
1093
+ return u;
1093
1094
  },
1094
1095
  async setupSlicer() {
1095
1096
  (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 = {
@@ -1101,12 +1102,12 @@ const ct = ne(), ot = {
1101
1102
  this.setupSlicer();
1102
1103
  },
1103
1104
  validSlicerEnd(r) {
1104
- const o = Math.max(...this.dataset.map((d) => this.largestTriangleThreeBucketsArray({ data: d.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
1105
- return r > o ? o : r < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && r < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : r;
1105
+ const c = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({ data: u.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
1106
+ return r > c ? c : r < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && r < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : r;
1106
1107
  },
1107
1108
  calcRectHeight(r) {
1108
- const o = ![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;
1109
- return r.value >= 0 ? this.checkNaN(o - r.y <= 0 ? 1e-5 : o - r.y) : this.checkNaN(r.y - this.zero <= 0 ? 1e-5 : r.y - this.zero);
1109
+ const c = ![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;
1110
+ return r.value >= 0 ? this.checkNaN(c - r.y <= 0 ? 1e-5 : c - r.y) : this.checkNaN(r.y - this.zero <= 0 ? 1e-5 : r.y - this.zero);
1110
1111
  },
1111
1112
  calcIndividualHeight(r) {
1112
1113
  return r.value >= 0 ? this.checkNaN(r.zeroPosition - r.y <= 0 ? 1e-5 : r.zeroPosition - r.y) : this.checkNaN(r.y - r.zeroPosition <= 0 ? 1e-5 : r.zeroPosition - r.y);
@@ -1126,13 +1127,13 @@ const ct = ne(), ot = {
1126
1127
  canShowValue(r) {
1127
1128
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(r);
1128
1129
  },
1129
- findClosestValue(r, o) {
1130
- let d = o[0], f = Math.abs(r - o[0]);
1131
- for (let l = 1; l < o.length; l += 1) {
1132
- const e = Math.abs(r - o[l]);
1133
- e < f && o[l] < r && (d = o[l], f = e);
1130
+ findClosestValue(r, c) {
1131
+ let u = c[0], f = Math.abs(r - c[0]);
1132
+ for (let l = 1; l < c.length; l += 1) {
1133
+ const e = Math.abs(r - c[l]);
1134
+ e < f && c[l] < r && (u = c[l], f = e);
1134
1135
  }
1135
- return d;
1136
+ return u;
1136
1137
  },
1137
1138
  ratioToMax(r) {
1138
1139
  return r / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
@@ -1141,11 +1142,11 @@ const ct = ne(), ot = {
1141
1142
  this.$emit(
1142
1143
  "selectX",
1143
1144
  {
1144
- dataset: this.relativeDataset.map((o) => ({
1145
- name: o.name,
1146
- value: [null, void 0, NaN].includes(o.absoluteValues[r]) ? null : o.absoluteValues[r],
1147
- color: o.color,
1148
- type: o.type
1145
+ dataset: this.relativeDataset.map((c) => ({
1146
+ name: c.name,
1147
+ value: [null, void 0, NaN].includes(c.absoluteValues[r]) ? null : c.absoluteValues[r],
1148
+ color: c.color,
1149
+ type: c.type
1149
1150
  })),
1150
1151
  index: r,
1151
1152
  indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]
@@ -1160,22 +1161,27 @@ const ct = ne(), ot = {
1160
1161
  type: r.type
1161
1162
  }));
1162
1163
  },
1164
+ async getImage({ scale: r = 2 } = {}) {
1165
+ if (!this.$refs.chart) return;
1166
+ const { imageUri: c, base64: u } = await nt({ domElement: this.$refs.chart, base64: !0, img: !0, scale: r });
1167
+ return { imageUri: c, base64: u };
1168
+ },
1163
1169
  segregate(r) {
1164
1170
  if (this.segregatedSeries.includes(r.id))
1165
- this.segregatedSeries = this.segregatedSeries.filter((o) => o !== r.id);
1171
+ this.segregatedSeries = this.segregatedSeries.filter((c) => c !== r.id);
1166
1172
  else {
1167
1173
  if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
1168
1174
  this.segregatedSeries.push(r.id);
1169
1175
  }
1170
- this.$emit("selectLegend", this.relativeDataset.map((o) => ({
1171
- name: o.name,
1172
- values: o.absoluteValues,
1173
- color: o.color,
1174
- type: o.type
1176
+ this.$emit("selectLegend", this.relativeDataset.map((c) => ({
1177
+ name: c.name,
1178
+ values: c.absoluteValues,
1179
+ color: c.color,
1180
+ type: c.type
1175
1181
  }))), this.segregateStep += 1;
1176
1182
  },
1177
- toggleTooltipVisibility(r, o = null) {
1178
- this.isTooltip = r, r ? this.selectedSerieIndex = o : this.selectedSerieIndex = null;
1183
+ toggleTooltipVisibility(r, c = null) {
1184
+ this.isTooltip = r, r ? this.selectedSerieIndex = c : this.selectedSerieIndex = null;
1179
1185
  },
1180
1186
  toggleFullscreen(r) {
1181
1187
  this.isFullscreen = r, this.step += 1;
@@ -1186,7 +1192,7 @@ const ct = ne(), ot = {
1186
1192
  async generatePdf() {
1187
1193
  this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1188
1194
  try {
1189
- const { default: r } = await import("./pdf-DJVOD0cz.js");
1195
+ const { default: r } = await import("./pdf-yfk3d1is.js");
1190
1196
  await r({
1191
1197
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1192
1198
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1200,7 +1206,7 @@ const ct = ne(), ot = {
1200
1206
  }, 100);
1201
1207
  },
1202
1208
  generateCsv(r = null) {
1203
- const o = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], d = ["", ...this.table.head.map((i) => i.label)], f = this.table.body, l = o.concat([d]).concat(f), e = this.createCsvContent(l);
1209
+ const c = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], u = ["", ...this.table.head.map((i) => i.label)], f = this.table.body, l = c.concat([u]).concat(f), e = this.createCsvContent(l);
1204
1210
  r ? r(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
1205
1211
  },
1206
1212
  showSpinnerImage() {
@@ -1209,7 +1215,7 @@ const ct = ne(), ot = {
1209
1215
  async generateImage() {
1210
1216
  this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1211
1217
  try {
1212
- const { default: r } = await import("./img-CTC5DLKL.js");
1218
+ const { default: r } = await import("./img-Y_hYz-ZC.js");
1213
1219
  await r({
1214
1220
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1215
1221
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1224,74 +1230,74 @@ const ct = ne(), ot = {
1224
1230
  }, 100);
1225
1231
  }
1226
1232
  }
1227
- }, ht = ["id"], ut = {
1233
+ }, ut = ["id"], dt = {
1228
1234
  key: 1,
1229
1235
  ref: "noTitle",
1230
1236
  class: "vue-data-ui-no-title-space",
1231
1237
  style: "height:36px; width: 100%; background:transparent"
1232
- }, dt = ["viewBox", "aria-label"], gt = ["x", "y", "width", "height"], ft = { key: 1 }, It = { class: "vue-ui-xy-grid" }, xt = ["stroke", "x1", "x2", "y1", "y2"], Nt = ["stroke", "x1", "x2", "y1", "y2"], mt = { key: 1 }, bt = ["x1", "x2", "y1", "y2", "stroke"], Ft = ["x1", "x2", "y1", "y2", "stroke"], _t = ["x1", "x2", "y1", "y2", "stroke"], yt = { key: 3 }, At = ["x1", "x2", "y1", "y2", "stroke"], Lt = { key: 4 }, Ct = ["y1", "y2", "x1", "x2", "stroke"], St = ["id"], kt = ["stop-color"], wt = ["stop-color"], Ot = ["stop-color"], Gt = ["id"], vt = ["stop-color"], pt = ["stop-color"], zt = ["stop-color"], Mt = ["id"], Tt = ["stop-color"], Pt = ["stop-color"], Vt = ["id"], Rt = ["stop-color"], Ht = ["stop-color"], Dt = ["id"], Bt = ["stop-color"], Wt = ["stop-color"], Et = ["x", "y", "height", "width", "fill"], Yt = ["x", "y", "width"], qt = ["x", "y", "height", "width", "fill"], Xt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ut = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zt = ["width", "x", "y"], Jt = { key: 0 }, Kt = ["id"], Qt = ["fill"], jt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], $t = ["x", "y", "font-size", "fill"], el = ["stroke", "x1", "x2", "y1", "y2"], tl = { key: 2 }, ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], il = { key: 4 }, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["fill", "font-size", "transform"], nl = ["x1", "x2", "y1", "y2", "stroke"], cl = ["x", "y", "font-size", "fill"], ol = ["x1", "x2", "y1", "y2", "stroke"], hl = ["x", "y", "font-size", "fill"], ul = ["width", "x", "y"], dl = { style: { width: "100%" } }, gl = { key: 0 }, fl = ["id"], Il = ["fill"], xl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Nl = ["x", "y", "font-size", "fill"], ml = ["d", "stroke", "stroke-width", "stroke-dasharray"], bl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fl = { key: 5 }, _l = { key: 0 }, yl = ["d", "fill"], Al = ["d", "fill"], Ll = ["d", "fill"], Cl = ["d", "fill"], Sl = ["d", "stroke", "stroke-width", "stroke-dasharray"], kl = ["d", "stroke", "stroke-width", "stroke-dasharray"], wl = ["width", "x", "y"], Ol = { style: { width: "100%" } }, Gl = { key: 3 }, vl = ["id"], pl = ["fill"], zl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ml = ["x", "y", "font-size", "fill"], Tl = { key: 6 }, Pl = ["x", "y", "font-size", "fill"], Vl = ["x", "y", "font-size", "fill", "font-weight"], Rl = { key: 7 }, Hl = ["x", "y", "font-size", "fill"], Dl = { key: 8 }, Bl = ["x", "y"], Wl = ["innerHTML"], El = ["x", "y"], Yl = ["innerHTML"], ql = ["x1", "x2", "y1", "y2", "stroke"], Xl = { key: 9 }, Ul = ["x", "y", "font-size", "fill"], Zl = { key: 10 }, Jl = ["x", "y"], Kl = ["innerHTML"], Ql = ["x", "y"], jl = ["innerHTML"], $l = ["x1", "x2", "y1", "y2", "stroke"], er = ["x", "y", "font-size", "fill", "innerHTML"], tr = ["x", "y", "font-size", "fill", "innerHTML"], lr = ["x", "y", "font-size", "fill", "innerHTML"], rr = ["x", "y", "font-size", "fill", "innerHTML"], ir = ["id"], ar = ["stop-color"], sr = ["stop-color"], nr = ["x", "y", "width", "height", "fill", "onMouseenter"], cr = ["font-size", "fill", "transform"], or = ["x", "y", "font-size", "fill"], hr = { key: 12 }, ur = ["text-anchor", "font-size", "fill", "transform", "onClick"], dr = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], gr = { key: 13 }, fr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ir = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xr = ["y", "x", "width", "height", "fill"], Nr = ["id", "x", "y", "font-size", "fill", "text-anchor"], mr = ["x", "y", "height", "width", "onMouseenter", "onClick"], br = {
1238
+ }, gt = ["viewBox", "aria-label"], 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"], yt = ["x1", "x2", "y1", "y2", "stroke"], At = { 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"], Dt = ["stop-color"], Bt = ["id"], Wt = ["stop-color"], Et = ["stop-color"], Yt = ["x", "y", "height", "width", "fill"], qt = ["x", "y", "width"], Xt = ["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 }, rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], al = { key: 4 }, 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 }, yl = { key: 0 }, Al = ["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 }, Dl = ["x", "y", "font-size", "fill"], Bl = { key: 8 }, Wl = ["x", "y"], El = ["innerHTML"], Yl = ["x", "y"], ql = ["innerHTML"], Xl = ["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"], er = ["x1", "x2", "y1", "y2", "stroke"], tr = ["x", "y", "font-size", "fill", "innerHTML"], lr = ["x", "y", "font-size", "fill", "innerHTML"], rr = ["x", "y", "font-size", "fill", "innerHTML"], ir = ["x", "y", "font-size", "fill", "innerHTML"], ar = ["id"], sr = ["stop-color"], nr = ["stop-color"], cr = ["x", "y", "width", "height", "fill", "onMouseenter"], or = ["font-size", "fill", "transform"], hr = ["x", "y", "font-size", "fill"], ur = { key: 12 }, dr = ["text-anchor", "font-size", "fill", "transform", "onClick"], gr = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], fr = { key: 13 }, Ir = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Nr = ["y", "x", "width", "height", "fill"], mr = ["id", "x", "y", "font-size", "fill", "text-anchor"], br = ["x", "y", "height", "width", "onMouseenter", "onClick"], Fr = {
1233
1239
  key: 14,
1234
1240
  style: { "pointer-events": "none" }
1235
- }, Fr = ["x", "y"], _r = ["cx", "cy", "r", "fill"], yr = {
1241
+ }, _r = ["x", "y"], yr = ["cx", "cy", "r", "fill"], Ar = {
1236
1242
  key: 5,
1237
1243
  class: "vue-data-ui-watermark"
1238
- }, Ar = {
1244
+ }, Lr = {
1239
1245
  class: "vue-ui-xy-tag-arrow",
1240
1246
  height: "20",
1241
1247
  viewBox: "0 0 10 20",
1242
1248
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1243
- }, Lr = ["fill"], Cr = ["innerHTML"], Sr = {
1249
+ }, Cr = ["fill"], Sr = ["innerHTML"], kr = {
1244
1250
  class: "vue-ui-xy-tag-arrow",
1245
1251
  height: "100%",
1246
1252
  viewBox: "0 0 10 20",
1247
1253
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1248
- }, kr = ["fill"], wr = ["innerHTML"], Or = {
1254
+ }, wr = ["fill"], Or = ["innerHTML"], Gr = {
1249
1255
  class: "vue-ui-xy-tag-arrow",
1250
1256
  height: "20",
1251
1257
  viewBox: "0 0 10 20",
1252
1258
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1253
- }, Gr = ["fill"], vr = ["innerHTML"], pr = {
1259
+ }, vr = ["fill"], pr = ["innerHTML"], zr = {
1254
1260
  class: "vue-ui-xy-tag-arrow",
1255
1261
  height: "100%",
1256
1262
  viewBox: "0 0 10 20",
1257
1263
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1258
- }, zr = ["fill"], Mr = ["innerHTML"], Tr = ["onClick"], Pr = {
1264
+ }, Mr = ["fill"], Tr = ["innerHTML"], Pr = ["onClick"], Vr = {
1259
1265
  key: 0,
1260
1266
  viewBox: "0 0 20 12",
1261
1267
  height: "14",
1262
1268
  width: "20"
1263
- }, Vr = ["stroke", "fill"], Rr = {
1269
+ }, Rr = ["stroke", "fill"], Hr = {
1264
1270
  key: 1,
1265
1271
  viewBox: "0 0 40 40",
1266
1272
  height: "14",
1267
1273
  width: "14"
1268
- }, Hr = ["fill"], Dr = ["fill"], Br = {
1274
+ }, Dr = ["fill"], Br = ["fill"], Wr = {
1269
1275
  key: 2,
1270
1276
  viewBox: "0 0 12 12",
1271
1277
  height: "14",
1272
1278
  width: "14"
1273
- }, Wr = {
1279
+ }, Er = {
1274
1280
  key: 9,
1275
1281
  ref: "chartLegend"
1276
- }, Er = {
1282
+ }, Yr = {
1277
1283
  key: 10,
1278
1284
  ref: "source",
1279
1285
  dir: "auto"
1280
- }, Yr = {
1286
+ }, qr = {
1281
1287
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
1282
1288
  "data-dom-to-png-ignore": ""
1283
- }, qr = ["innerHTML"];
1284
- function Xr(r, o, d, f, l, e) {
1289
+ }, Xr = ["innerHTML"];
1290
+ function Ur(r, c, u, f, l, e) {
1285
1291
  const i = q("PenAndPaper"), A = q("Title"), z = q("UserOptions"), O = q("PackageVersion"), N = q("Shape"), F = q("Skeleton"), v = q("Slicer"), m = q("Tooltip"), L = q("BaseIcon"), b = q("TableSparkline"), M = q("DataTable"), H = q("Accordion");
1286
1292
  return a(), s("div", {
1287
1293
  id: `vue-ui-xy_${l.uniqueId}`,
1288
1294
  class: j(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
1289
1295
  ref: "chart",
1290
1296
  style: _(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`),
1291
- onMouseenter: o[7] || (o[7] = () => e.setUserOptionsVisibility(!0)),
1292
- onMouseleave: o[8] || (o[8] = () => e.setUserOptionsVisibility(!1))
1297
+ onMouseenter: c[7] || (c[7] = () => e.setUserOptionsVisibility(!0)),
1298
+ onMouseleave: c[8] || (c[8] = () => e.setUserOptionsVisibility(!1))
1293
1299
  }, [
1294
- e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), U(i, {
1300
+ e.FINAL_CONFIG.chart.userOptions.buttons.annotator && l.svgRef ? (a(), U(i, {
1295
1301
  key: 0,
1296
1302
  svgRef: l.svgRef,
1297
1303
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1299,7 +1305,7 @@ function Xr(r, o, d, f, l, e) {
1299
1305
  active: l.isAnnotator,
1300
1306
  onClose: e.toggleAnnotator
1301
1307
  }, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : h("", !0),
1302
- e.hasOptionsNoTitle ? (a(), s("div", ut, null, 512)) : h("", !0),
1308
+ e.hasOptionsNoTitle ? (a(), s("div", dt, null, 512)) : h("", !0),
1303
1309
  e.FINAL_CONFIG.chart.title.show ? (a(), s("div", {
1304
1310
  key: 2,
1305
1311
  ref: "chartTitle",
@@ -1334,7 +1340,7 @@ function Xr(r, o, d, f, l, e) {
1334
1340
  hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
1335
1341
  hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
1336
1342
  hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
1337
- hasStack: d.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
1343
+ hasStack: u.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
1338
1344
  hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
1339
1345
  isStacked: l.mutableConfig.isStacked,
1340
1346
  isFullscreen: l.isFullscreen,
@@ -1345,6 +1351,7 @@ function Xr(r, o, d, f, l, e) {
1345
1351
  hasAnnotator: e.FINAL_CONFIG.chart.userOptions.buttons.annotator,
1346
1352
  isAnnotation: l.isAnnotator,
1347
1353
  callbacks: e.FINAL_CONFIG.chart.userOptions.callbacks,
1354
+ printScale: e.FINAL_CONFIG.chart.userOptions.print.scale,
1348
1355
  onToggleFullscreen: e.toggleFullscreen,
1349
1356
  onGeneratePdf: e.generatePdf,
1350
1357
  onGenerateCsv: e.generateCsv,
@@ -1360,8 +1367,8 @@ function Xr(r, o, d, f, l, e) {
1360
1367
  }, et({ _: 2 }, [
1361
1368
  r.$slots.menuIcon ? {
1362
1369
  name: "menuIcon",
1363
- fn: B(({ isOpen: t, color: c }) => [
1364
- G(r.$slots, "menuIcon", $(ee({ isOpen: t, color: c })), void 0, !0)
1370
+ fn: B(({ isOpen: t, color: o }) => [
1371
+ G(r.$slots, "menuIcon", $(ee({ isOpen: t, color: o })), void 0, !0)
1365
1372
  ]),
1366
1373
  key: "0"
1367
1374
  } : void 0,
@@ -1416,19 +1423,19 @@ function Xr(r, o, d, f, l, e) {
1416
1423
  } : void 0,
1417
1424
  r.$slots.optionFullscreen ? {
1418
1425
  name: "optionFullscreen",
1419
- fn: B(({ toggleFullscreen: t, isFullscreen: c }) => [
1420
- G(r.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen: c })), void 0, !0)
1426
+ fn: B(({ toggleFullscreen: t, isFullscreen: o }) => [
1427
+ G(r.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
1421
1428
  ]),
1422
1429
  key: "8"
1423
1430
  } : void 0,
1424
1431
  r.$slots.optionAnnotator ? {
1425
1432
  name: "optionAnnotator",
1426
- fn: B(({ toggleAnnotator: t, isAnnotator: c }) => [
1427
- G(r.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator: c })), void 0, !0)
1433
+ fn: B(({ toggleAnnotator: t, isAnnotator: o }) => [
1434
+ G(r.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
1428
1435
  ]),
1429
1436
  key: "9"
1430
1437
  } : void 0
1431
- ]), 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"])) : h("", !0),
1438
+ ]), 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"])) : h("", !0),
1432
1439
  e.isDataset ? (a(), s("svg", {
1433
1440
  key: 4,
1434
1441
  ref: "svgRef",
@@ -1453,9 +1460,9 @@ function Xr(r, o, d, f, l, e) {
1453
1460
  }
1454
1461
  }, [
1455
1462
  G(r.$slots, "chart-background", {}, void 0, !0)
1456
- ], 8, gt)) : h("", !0),
1457
- e.maxSeries > 0 ? (a(), s("g", ft, [
1458
- I("g", It, [
1463
+ ], 8, ft)) : h("", !0),
1464
+ e.maxSeries > 0 ? (a(), s("g", It, [
1465
+ I("g", xt, [
1459
1466
  e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
1460
1467
  key: 0,
1461
1468
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
@@ -1466,28 +1473,28 @@ function Xr(r, o, d, f, l, e) {
1466
1473
  y2: e.forceValidValue(e.drawingArea.bottom),
1467
1474
  "stroke-linecap": "round",
1468
1475
  style: { animation: "none !important" }
1469
- }, null, 8, xt)) : h("", !0),
1470
- l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(u, { key: 2 }, x(e.allScales, (t) => (a(), s("g", null, [
1471
- t.id === l.selectedScale && t.yLabels.length ? (a(!0), s(u, { key: 0 }, x(t.yLabels, (c) => (a(), s("line", {
1476
+ }, null, 8, Nt)) : h("", !0),
1477
+ l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(d, { key: 2 }, x(e.allScales, (t) => (a(), s("g", null, [
1478
+ t.id === l.selectedScale && t.yLabels.length ? (a(!0), s(d, { key: 0 }, x(t.yLabels, (o) => (a(), s("line", {
1472
1479
  x1: e.drawingArea.left + e.xPadding,
1473
1480
  x2: e.drawingArea.right - e.xPadding,
1474
- y1: e.forceValidValue(c.y),
1475
- y2: e.forceValidValue(c.y),
1481
+ y1: e.forceValidValue(o.y),
1482
+ y2: e.forceValidValue(o.y),
1476
1483
  stroke: t.color,
1477
1484
  "stroke-width": 0.5,
1478
1485
  "stroke-linecap": "round",
1479
1486
  style: { animation: "none !important" }
1480
- }, null, 8, Ft))), 256)) : t.yLabels.length ? (a(!0), s(u, { key: 1 }, x(t.yLabels, (c) => (a(), s("line", {
1487
+ }, null, 8, _t))), 256)) : t.yLabels.length ? (a(!0), s(d, { key: 1 }, x(t.yLabels, (o) => (a(), s("line", {
1481
1488
  x1: e.drawingArea.left + e.xPadding,
1482
1489
  x2: e.drawingArea.right - e.xPadding,
1483
- y1: e.forceValidValue(c.y),
1484
- y2: e.forceValidValue(c.y),
1490
+ y1: e.forceValidValue(o.y),
1491
+ y2: e.forceValidValue(o.y),
1485
1492
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1486
1493
  "stroke-width": 0.5,
1487
1494
  "stroke-linecap": "round",
1488
1495
  style: { animation: "none !important" }
1489
- }, null, 8, _t))), 256)) : h("", !0)
1490
- ]))), 256)) : h("", !0) : (a(), s(u, { key: 1 }, [
1496
+ }, null, 8, yt))), 256)) : h("", !0)
1497
+ ]))), 256)) : h("", !0) : (a(), s(d, { key: 1 }, [
1491
1498
  e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
1492
1499
  key: 0,
1493
1500
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
@@ -1498,9 +1505,9 @@ function Xr(r, o, d, f, l, e) {
1498
1505
  y2: e.forceValidValue(e.drawingArea.bottom),
1499
1506
  "stroke-linecap": "round",
1500
1507
  style: { animation: "none !important" }
1501
- }, null, 8, Nt)) : h("", !0),
1502
- e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", mt, [
1503
- (a(!0), s(u, null, x(e.yLabels, (t) => (a(), s("line", {
1508
+ }, null, 8, mt)) : h("", !0),
1509
+ e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", bt, [
1510
+ (a(!0), s(d, null, x(e.yLabels, (t) => (a(), s("line", {
1504
1511
  x1: e.drawingArea.left + e.xPadding,
1505
1512
  x2: e.drawingArea.right - e.xPadding,
1506
1513
  y1: e.forceValidValue(t.y),
@@ -1509,86 +1516,86 @@ function Xr(r, o, d, f, l, e) {
1509
1516
  "stroke-width": 0.5,
1510
1517
  "stroke-linecap": "round",
1511
1518
  style: { animation: "none !important" }
1512
- }, null, 8, bt))), 256))
1519
+ }, null, 8, Ft))), 256))
1513
1520
  ])) : h("", !0)
1514
1521
  ], 64)),
1515
- e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", yt, [
1516
- (a(!0), s(u, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, c) => (a(), s("line", {
1517
- key: `grid_vertical_line_${c}`,
1518
- x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
1519
- x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
1522
+ e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", At, [
1523
+ (a(!0), s(d, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, o) => (a(), s("line", {
1524
+ key: `grid_vertical_line_${o}`,
1525
+ x1: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
1526
+ x2: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
1520
1527
  y1: e.forceValidValue(e.drawingArea.top),
1521
1528
  y2: e.forceValidValue(e.drawingArea.bottom),
1522
1529
  "stroke-width": "0.5",
1523
1530
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1524
1531
  style: { animation: "none !important" }
1525
- }, null, 8, At))), 128))
1532
+ }, null, 8, Lt))), 128))
1526
1533
  ])) : h("", !0),
1527
- e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", Lt, [
1528
- (a(!0), s(u, null, x(e.timeLabels, (t, c) => (a(), s("g", {
1529
- key: `time_label_${c}`
1534
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", Ct, [
1535
+ (a(!0), s(d, null, x(e.timeLabels, (t, o) => (a(), s("g", {
1536
+ key: `time_label_${o}`
1530
1537
  }, [
1531
- 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 && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !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 && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s(u, { key: 0 }, [
1538
+ 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 }, [
1532
1539
  e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (a(), s("line", {
1533
1540
  key: 0,
1534
1541
  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,
1535
1542
  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,
1536
- x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
1537
- x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
1543
+ x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2,
1544
+ x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2,
1538
1545
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1539
1546
  "stroke-width": 1,
1540
1547
  "stroke-linecap": "round",
1541
1548
  style: { animation: "none !important" }
1542
- }, null, 8, Ct)) : h("", !0)
1549
+ }, null, 8, St)) : h("", !0)
1543
1550
  ], 64)) : h("", !0)
1544
1551
  ]))), 128))
1545
1552
  ])) : h("", !0)
1546
1553
  ]),
1547
- (a(!0), s(u, null, x(e.barSet, (t, c) => (a(), s("defs", {
1548
- key: `def_rect_${c}`
1554
+ (a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s("defs", {
1555
+ key: `def_rect_${o}`
1549
1556
  }, [
1550
1557
  I("linearGradient", {
1551
- id: `rectGradient_pos_${c}_${l.uniqueId}`,
1558
+ id: `rectGradient_pos_${o}_${l.uniqueId}`,
1552
1559
  x2: "0%",
1553
1560
  y2: "100%"
1554
1561
  }, [
1555
1562
  I("stop", {
1556
1563
  offset: "0%",
1557
1564
  "stop-color": t.color
1558
- }, null, 8, kt),
1565
+ }, null, 8, wt),
1559
1566
  I("stop", {
1560
1567
  offset: "62%",
1561
1568
  "stop-color": `${e.shiftHue(t.color, 0.02)}`
1562
- }, null, 8, wt),
1569
+ }, null, 8, Ot),
1563
1570
  I("stop", {
1564
1571
  offset: "100%",
1565
1572
  "stop-color": `${e.shiftHue(t.color, 0.05)}`
1566
- }, null, 8, Ot)
1567
- ], 8, St),
1573
+ }, null, 8, Gt)
1574
+ ], 8, kt),
1568
1575
  I("linearGradient", {
1569
- id: `rectGradient_neg_${c}_${l.uniqueId}`,
1576
+ id: `rectGradient_neg_${o}_${l.uniqueId}`,
1570
1577
  x2: "0%",
1571
1578
  y2: "100%"
1572
1579
  }, [
1573
1580
  I("stop", {
1574
1581
  offset: "0%",
1575
1582
  "stop-color": `${e.shiftHue(t.color, 0.05)}`
1576
- }, null, 8, vt),
1583
+ }, null, 8, pt),
1577
1584
  I("stop", {
1578
1585
  offset: "38%",
1579
1586
  "stop-color": `${e.shiftHue(t.color, 0.02)}`
1580
- }, null, 8, pt),
1587
+ }, null, 8, zt),
1581
1588
  I("stop", {
1582
1589
  offset: "100%",
1583
1590
  "stop-color": t.color
1584
- }, null, 8, zt)
1585
- ], 8, Gt)
1591
+ }, null, 8, Mt)
1592
+ ], 8, vt)
1586
1593
  ]))), 128)),
1587
- (a(!0), s(u, null, x(e.plotSet, (t, c) => (a(), s("defs", {
1588
- key: `def_plot_${c}`
1594
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s("defs", {
1595
+ key: `def_plot_${o}`
1589
1596
  }, [
1590
1597
  I("radialGradient", {
1591
- id: `plotGradient_${c}_${l.uniqueId}`,
1598
+ id: `plotGradient_${o}_${l.uniqueId}`,
1592
1599
  cx: "50%",
1593
1600
  cy: "50%",
1594
1601
  r: "50%",
@@ -1598,18 +1605,18 @@ function Xr(r, o, d, f, l, e) {
1598
1605
  I("stop", {
1599
1606
  offset: "0%",
1600
1607
  "stop-color": `${e.shiftHue(t.color, 0.05)}`
1601
- }, null, 8, Tt),
1608
+ }, null, 8, Pt),
1602
1609
  I("stop", {
1603
1610
  offset: "100%",
1604
1611
  "stop-color": t.color
1605
- }, null, 8, Pt)
1606
- ], 8, Mt)
1612
+ }, null, 8, Vt)
1613
+ ], 8, Tt)
1607
1614
  ]))), 128)),
1608
- (a(!0), s(u, null, x(e.lineSet, (t, c) => (a(), s("defs", {
1609
- key: `def_line_${c}`
1615
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("defs", {
1616
+ key: `def_line_${o}`
1610
1617
  }, [
1611
1618
  I("radialGradient", {
1612
- id: `lineGradient_${c}_${l.uniqueId}`,
1619
+ id: `lineGradient_${o}_${l.uniqueId}`,
1613
1620
  cx: "50%",
1614
1621
  cy: "50%",
1615
1622
  r: "50%",
@@ -1619,14 +1626,14 @@ function Xr(r, o, d, f, l, e) {
1619
1626
  I("stop", {
1620
1627
  offset: "0%",
1621
1628
  "stop-color": `${e.shiftHue(t.color, 0.05)}`
1622
- }, null, 8, Rt),
1629
+ }, null, 8, Ht),
1623
1630
  I("stop", {
1624
1631
  offset: "100%",
1625
1632
  "stop-color": t.color
1626
- }, null, 8, Ht)
1627
- ], 8, Vt),
1633
+ }, null, 8, Dt)
1634
+ ], 8, Rt),
1628
1635
  I("linearGradient", {
1629
- id: `areaGradient_${c}_${l.uniqueId}`,
1636
+ id: `areaGradient_${o}_${l.uniqueId}`,
1630
1637
  x1: "0%",
1631
1638
  x2: "100%",
1632
1639
  y1: "0%",
@@ -1635,16 +1642,16 @@ function Xr(r, o, d, f, l, e) {
1635
1642
  I("stop", {
1636
1643
  offset: "0%",
1637
1644
  "stop-color": `${e.setOpacity(e.shiftHue(t.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
1638
- }, null, 8, Bt),
1645
+ }, null, 8, Wt),
1639
1646
  I("stop", {
1640
1647
  offset: "100%",
1641
1648
  "stop-color": `${e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)}`
1642
- }, null, 8, Wt)
1643
- ], 8, Dt)
1649
+ }, null, 8, Et)
1650
+ ], 8, Bt)
1644
1651
  ]))), 128)),
1645
- (a(!0), s(u, null, x(e.highlightAreas, (t) => (a(), s("g", null, [
1646
- t.show ? (a(), s(u, { key: 0 }, [
1647
- (a(!0), s(u, null, x(t.span, (c, n) => (a(), s("g", null, [
1652
+ (a(!0), s(d, null, x(e.highlightAreas, (t) => (a(), s("g", null, [
1653
+ t.show ? (a(), s(d, { key: 0 }, [
1654
+ (a(!0), s(d, null, x(t.span, (o, n) => (a(), s("g", null, [
1648
1655
  I("rect", {
1649
1656
  style: _({
1650
1657
  transition: "none",
@@ -1655,9 +1662,9 @@ function Xr(r, o, d, f, l, e) {
1655
1662
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1656
1663
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1657
1664
  fill: e.setOpacity(t.color, t.opacity)
1658
- }, null, 12, Et)
1665
+ }, null, 12, Yt)
1659
1666
  ]))), 256)),
1660
- (a(!0), s(u, null, x(t.span, (c, n) => (a(), s("g", null, [
1667
+ (a(!0), s(d, null, x(t.span, (o, n) => (a(), s("g", null, [
1661
1668
  t.caption.text && n === 0 ? (a(), s("foreignObject", {
1662
1669
  key: 0,
1663
1670
  x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + n - l.slicer.start) - (t.caption.width === "auto" ? 0 : t.caption.width / 2 - e.drawingArea.width / e.maxSeries * t.span / 2),
@@ -1672,30 +1679,30 @@ function Xr(r, o, d, f, l, e) {
1672
1679
  I("div", {
1673
1680
  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"}`)
1674
1681
  }, V(t.caption.text), 5)
1675
- ], 12, Yt)) : h("", !0)
1682
+ ], 12, qt)) : h("", !0)
1676
1683
  ]))), 256))
1677
1684
  ], 64)) : h("", !0)
1678
1685
  ]))), 256)),
1679
1686
  I("g", null, [
1680
- (a(!0), s(u, null, x(e.maxSeries, (t, c) => (a(), s("g", {
1681
- key: `tooltip_trap_highlighter_${c}`
1687
+ (a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("g", {
1688
+ key: `tooltip_trap_highlighter_${o}`
1682
1689
  }, [
1683
1690
  I("rect", {
1684
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
1691
+ x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
1685
1692
  y: e.drawingArea.top,
1686
1693
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1687
1694
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1688
- fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(c) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
1689
- }, null, 8, qt)
1695
+ fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(o) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
1696
+ }, null, 8, Xt)
1690
1697
  ]))), 128))
1691
1698
  ]),
1692
- e.barSet.length ? (a(!0), s(u, { key: 0 }, x(e.barSet, (t, c) => (a(), s("g", {
1693
- key: `serie_bar_${c}`,
1694
- class: j(`serie_bar_${c}`),
1699
+ e.barSet.length ? (a(!0), s(d, { key: 0 }, x(e.barSet, (t, o) => (a(), s("g", {
1700
+ key: `serie_bar_${o}`,
1701
+ class: j(`serie_bar_${o}`),
1695
1702
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1696
1703
  }, [
1697
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s("g", {
1698
- key: `bar_plot_${c}_${g}`
1704
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s("g", {
1705
+ key: `bar_plot_${o}_${g}`
1699
1706
  }, [
1700
1707
  e.canShowValue(n.value) ? (a(), s("rect", {
1701
1708
  key: 0,
@@ -1704,10 +1711,10 @@ function Xr(r, o, d, f, l, e) {
1704
1711
  height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
1705
1712
  width: e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap),
1706
1713
  rx: e.FINAL_CONFIG.bar.borderRadius,
1707
- fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${l.uniqueId})` : `url(#rectGradient_neg_${c}_${l.uniqueId})` : t.color,
1714
+ fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${o}_${l.uniqueId})` : `url(#rectGradient_neg_${o}_${l.uniqueId})` : t.color,
1708
1715
  stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
1709
1716
  "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1710
- }, null, 8, Xt)) : h("", !0),
1717
+ }, null, 8, Ut)) : h("", !0),
1711
1718
  e.canShowValue(n.value) && r.$slots.pattern ? (a(), s("rect", {
1712
1719
  key: 1,
1713
1720
  x: e.calcRectX(n),
@@ -1718,7 +1725,7 @@ function Xr(r, o, d, f, l, e) {
1718
1725
  fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`,
1719
1726
  stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
1720
1727
  "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1721
- }, null, 8, Ut)) : h("", !0),
1728
+ }, null, 8, Zt)) : h("", !0),
1722
1729
  n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
1723
1730
  key: 2,
1724
1731
  style: { overflow: "visible" },
@@ -1728,14 +1735,14 @@ function Xr(r, o, d, f, l, e) {
1728
1735
  y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
1729
1736
  }, [
1730
1737
  G(r.$slots, "plot-comment", {
1731
- plot: { ...n, color: t.color, seriesIndex: c, datapointIndex: g }
1738
+ plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
1732
1739
  }, void 0, !0)
1733
- ], 8, Zt)) : h("", !0)
1740
+ ], 8, Jt)) : h("", !0)
1734
1741
  ]))), 128)),
1735
- Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", Jt, [
1742
+ Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", Kt, [
1736
1743
  I("defs", null, [
1737
1744
  I("marker", {
1738
- id: `bar_arrow_${c}`,
1745
+ id: `bar_arrow_${o}`,
1739
1746
  markerWidth: 7,
1740
1747
  markerHeight: 7,
1741
1748
  refX: "0",
@@ -1745,8 +1752,8 @@ function Xr(r, o, d, f, l, e) {
1745
1752
  I("polygon", {
1746
1753
  points: `0 0, 7 ${7 / 2}, 0 7`,
1747
1754
  fill: t.color
1748
- }, null, 8, Qt)
1749
- ], 8, Kt)
1755
+ }, null, 8, jt)
1756
+ ], 8, Qt)
1750
1757
  ]),
1751
1758
  t.plots.length > 1 ? (a(), s("line", {
1752
1759
  key: 0,
@@ -1757,8 +1764,8 @@ function Xr(r, o, d, f, l, e) {
1757
1764
  "stroke-width": 1,
1758
1765
  stroke: t.color,
1759
1766
  "stroke-dasharray": 2,
1760
- "marker-end": `url(#bar_arrow_${c})`
1761
- }, null, 8, jt)) : h("", !0),
1767
+ "marker-end": `url(#bar_arrow_${o})`
1768
+ }, null, 8, $t)) : h("", !0),
1762
1769
  t.plots.length > 1 ? (a(), s("text", {
1763
1770
  key: 1,
1764
1771
  "text-anchor": "middle",
@@ -1770,7 +1777,7 @@ function Xr(r, o, d, f, l, e) {
1770
1777
  v: e.calcLinearProgression(t.plots).trend * 100,
1771
1778
  s: "%",
1772
1779
  r: 2
1773
- })), 9, $t)) : h("", !0)
1780
+ })), 9, el)) : h("", !0)
1774
1781
  ])) : h("", !0)
1775
1782
  ], 6))), 128)) : h("", !0),
1776
1783
  !l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), s("line", {
@@ -1783,8 +1790,8 @@ function Xr(r, o, d, f, l, e) {
1783
1790
  y2: e.forceValidValue(e.zero),
1784
1791
  "stroke-linecap": "round",
1785
1792
  style: { animation: "none !important" }
1786
- }, null, 8, el)) : h("", !0),
1787
- e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", tl, [
1793
+ }, null, 8, tl)) : h("", !0),
1794
+ e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", ll, [
1788
1795
  I("line", {
1789
1796
  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,
1790
1797
  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,
@@ -1795,7 +1802,7 @@ function Xr(r, o, d, f, l, e) {
1795
1802
  "stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
1796
1803
  "stroke-linecap": "round",
1797
1804
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1798
- }, null, 8, ll)
1805
+ }, null, 8, rl)
1799
1806
  ])) : h("", !0),
1800
1807
  e.FINAL_CONFIG.chart.grid.frame.show ? (a(), s("rect", {
1801
1808
  key: 3,
@@ -1810,10 +1817,10 @@ function Xr(r, o, d, f, l, e) {
1810
1817
  "stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
1811
1818
  "stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
1812
1819
  "stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
1813
- }, null, 8, rl)) : h("", !0),
1814
- e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", il, [
1815
- l.mutableConfig.useIndividualScale ? (a(), s(u, { key: 0 }, [
1816
- (a(!0), s(u, null, x(e.allScales, (t) => (a(), s("g", null, [
1820
+ }, null, 8, il)) : h("", !0),
1821
+ e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", al, [
1822
+ l.mutableConfig.useIndividualScale ? (a(), s(d, { key: 0 }, [
1823
+ (a(!0), s(d, null, x(e.allScales, (t) => (a(), s("g", null, [
1817
1824
  I("line", {
1818
1825
  x1: t.x + e.xPadding,
1819
1826
  x2: t.x + e.xPadding,
@@ -1823,9 +1830,9 @@ function Xr(r, o, d, f, l, e) {
1823
1830
  "stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
1824
1831
  "stroke-linecap": "round",
1825
1832
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
1826
- }, null, 12, al)
1833
+ }, null, 12, sl)
1827
1834
  ]))), 256)),
1828
- (a(!0), s(u, null, x(e.allScales, (t) => (a(), s("g", {
1835
+ (a(!0), s(d, null, x(e.allScales, (t) => (a(), s("g", {
1829
1836
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1830
1837
  }, [
1831
1838
  I("text", {
@@ -1833,40 +1840,40 @@ function Xr(r, o, d, f, l, e) {
1833
1840
  "font-size": l.fontSizes.dataLabels,
1834
1841
  "text-anchor": "middle",
1835
1842
  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)`
1836
- }, V(t.name) + " " + V(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9, sl),
1837
- (a(!0), s(u, null, x(t.yLabels, (c, n) => (a(), s(u, null, [
1843
+ }, V(t.name) + " " + V(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9, nl),
1844
+ (a(!0), s(d, null, x(t.yLabels, (o, n) => (a(), s(d, null, [
1838
1845
  e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), s("line", {
1839
1846
  key: 0,
1840
1847
  x1: t.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
1841
1848
  x2: t.x + e.xPadding,
1842
- y1: e.forceValidValue(c.y),
1843
- y2: e.forceValidValue(c.y),
1849
+ y1: e.forceValidValue(o.y),
1850
+ y2: e.forceValidValue(o.y),
1844
1851
  stroke: t.color,
1845
1852
  "stroke-width": 1,
1846
1853
  "stroke-linecap": "round",
1847
1854
  style: { animation: "none !important" }
1848
- }, null, 8, nl)) : h("", !0)
1855
+ }, null, 8, cl)) : h("", !0)
1849
1856
  ], 64))), 256)),
1850
- (a(!0), s(u, null, x(t.yLabels, (c, n) => (a(), s("text", {
1857
+ (a(!0), s(d, null, x(t.yLabels, (o, n) => (a(), s("text", {
1851
1858
  x: t.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
1852
- y: e.forceValidValue(c.y) + l.fontSizes.dataLabels / 3,
1859
+ y: e.forceValidValue(o.y) + l.fontSizes.dataLabels / 3,
1853
1860
  "font-size": l.fontSizes.dataLabels,
1854
1861
  "text-anchor": "end",
1855
1862
  fill: t.color
1856
1863
  }, V(e.applyDataLabel(
1857
1864
  e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
1858
- c.value,
1865
+ o.value,
1859
1866
  e.dataLabel({
1860
- p: c.prefix,
1861
- v: c.value,
1862
- s: c.suffix,
1867
+ p: o.prefix,
1868
+ v: o.value,
1869
+ s: o.suffix,
1863
1870
  r: 1
1864
1871
  }),
1865
- { datapoint: c.datapoint, seriesIndex: n }
1866
- )), 9, cl))), 256))
1872
+ { datapoint: o.datapoint, seriesIndex: n }
1873
+ )), 9, ol))), 256))
1867
1874
  ], 4))), 256))
1868
- ], 64)) : (a(!0), s(u, { key: 1 }, x(e.yLabels, (t, c) => (a(), s("g", {
1869
- key: `yLabel_${c}`
1875
+ ], 64)) : (a(!0), s(d, { key: 1 }, x(e.yLabels, (t, o) => (a(), s("g", {
1876
+ key: `yLabel_${o}`
1870
1877
  }, [
1871
1878
  e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), s("line", {
1872
1879
  key: 0,
@@ -1878,7 +1885,7 @@ function Xr(r, o, d, f, l, e) {
1878
1885
  "stroke-width": "1",
1879
1886
  "stroke-linecap": "round",
1880
1887
  style: { animation: "none !important" }
1881
- }, null, 8, ol)) : h("", !0),
1888
+ }, null, 8, hl)) : h("", !0),
1882
1889
  t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (a(), s("text", {
1883
1890
  key: 1,
1884
1891
  x: e.drawingArea.left - 7 + e.xPadding,
@@ -1895,21 +1902,21 @@ function Xr(r, o, d, f, l, e) {
1895
1902
  s: t.suffix,
1896
1903
  r: 1
1897
1904
  })
1898
- ) : ""), 9, hl)) : h("", !0)
1905
+ ) : ""), 9, ul)) : h("", !0)
1899
1906
  ]))), 128))
1900
1907
  ])) : h("", !0),
1901
- (a(!0), s(u, null, x(e.plotSet, (t, c) => (a(), s("g", {
1902
- key: `serie_plot_${c}`,
1903
- class: j(`serie_plot_${c}`),
1908
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s("g", {
1909
+ key: `serie_plot_${o}`,
1910
+ class: j(`serie_plot_${o}`),
1904
1911
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1905
1912
  }, [
1906
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s("g", {
1907
- key: `circle_plot_${c}_${g}`
1913
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s("g", {
1914
+ key: `circle_plot_${o}_${g}`
1908
1915
  }, [
1909
1916
  n && e.canShowValue(n.value) ? (a(), U(N, {
1910
1917
  key: 0,
1911
1918
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
1912
- color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? t.color : e.FINAL_CONFIG.plot.dot.fill,
1919
+ 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,
1913
1920
  plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
1914
1921
  radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
1915
1922
  stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
@@ -1923,17 +1930,17 @@ function Xr(r, o, d, f, l, e) {
1923
1930
  x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1924
1931
  y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1925
1932
  }, [
1926
- I("div", dl, [
1933
+ I("div", gl, [
1927
1934
  G(r.$slots, "plot-comment", {
1928
- plot: { ...n, color: t.color, seriesIndex: c, datapointIndex: g }
1935
+ plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
1929
1936
  }, void 0, !0)
1930
1937
  ])
1931
- ], 8, ul)) : h("", !0)
1938
+ ], 8, dl)) : h("", !0)
1932
1939
  ]))), 128)),
1933
- Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", gl, [
1940
+ Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", fl, [
1934
1941
  I("defs", null, [
1935
1942
  I("marker", {
1936
- id: `plot_arrow_${c}`,
1943
+ id: `plot_arrow_${o}`,
1937
1944
  markerWidth: 7,
1938
1945
  markerHeight: 7,
1939
1946
  refX: "0",
@@ -1943,8 +1950,8 @@ function Xr(r, o, d, f, l, e) {
1943
1950
  I("polygon", {
1944
1951
  points: `0 0, 7 ${7 / 2}, 0 7`,
1945
1952
  fill: t.color
1946
- }, null, 8, Il)
1947
- ], 8, fl)
1953
+ }, null, 8, xl)
1954
+ ], 8, Il)
1948
1955
  ]),
1949
1956
  t.plots.length > 1 ? (a(), s("line", {
1950
1957
  key: 0,
@@ -1955,8 +1962,8 @@ function Xr(r, o, d, f, l, e) {
1955
1962
  "stroke-width": 1,
1956
1963
  stroke: t.color,
1957
1964
  "stroke-dasharray": 2,
1958
- "marker-end": `url(#plot_arrow_${c})`
1959
- }, null, 8, xl)) : h("", !0),
1965
+ "marker-end": `url(#plot_arrow_${o})`
1966
+ }, null, 8, Nl)) : h("", !0),
1960
1967
  t.plots.length > 1 ? (a(), s("text", {
1961
1968
  key: 1,
1962
1969
  "text-anchor": "middle",
@@ -1968,12 +1975,12 @@ function Xr(r, o, d, f, l, e) {
1968
1975
  v: e.calcLinearProgression(t.plots).trend * 100,
1969
1976
  s: "%",
1970
1977
  r: 2
1971
- })), 9, Nl)) : h("", !0)
1978
+ })), 9, ml)) : h("", !0)
1972
1979
  ])) : h("", !0)
1973
1980
  ], 6))), 128)),
1974
- (a(!0), s(u, null, x(e.lineSet, (t, c) => (a(), s("g", {
1975
- key: `serie_line_${c}`,
1976
- class: j(`serie_line_${c}`),
1981
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
1982
+ key: `serie_line_${o}`,
1983
+ class: j(`serie_line_${o}`),
1977
1984
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1978
1985
  }, [
1979
1986
  t.smooth && t.plots.length > 1 && t.curve ? (a(), s("path", {
@@ -1983,7 +1990,7 @@ function Xr(r, o, d, f, l, e) {
1983
1990
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1984
1991
  "stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1985
1992
  fill: "none"
1986
- }, null, 8, ml)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
1993
+ }, null, 8, bl)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
1987
1994
  key: 1,
1988
1995
  d: `M${t.straight}`,
1989
1996
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1992,39 +1999,39 @@ function Xr(r, o, d, f, l, e) {
1992
1999
  fill: "none",
1993
2000
  "stroke-linecap": "round",
1994
2001
  "stroke-linejoin": "round"
1995
- }, null, 8, bl)) : h("", !0)
2002
+ }, null, 8, Fl)) : h("", !0)
1996
2003
  ], 6))), 128)),
1997
- r.$slots.pattern ? (a(), s("defs", Fl, [
1998
- (a(!0), s(u, null, x(e.safeDataset, (t, c) => G(r.$slots, "pattern", se({
1999
- key: `serie_pattern_slot_${c}`
2000
- }, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${c}` }), void 0, !0)), 128))
2004
+ r.$slots.pattern ? (a(), s("defs", _l, [
2005
+ (a(!0), s(d, null, x(e.safeDataset, (t, o) => G(r.$slots, "pattern", se({
2006
+ key: `serie_pattern_slot_${o}`
2007
+ }, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${o}` }), void 0, !0)), 128))
2001
2008
  ])) : h("", !0),
2002
- (a(!0), s(u, null, x(e.lineSet, (t, c) => (a(), s("g", {
2003
- key: `serie_line_${c}`,
2004
- class: j(`serie_line_${c}`),
2009
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
2010
+ key: `serie_line_${o}`,
2011
+ class: j(`serie_line_${o}`),
2005
2012
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2006
2013
  }, [
2007
- t.useArea && t.plots.length > 1 ? (a(), s("g", _l, [
2008
- t.smooth ? (a(!0), s(u, { key: 0 }, x(t.curveAreas, (n, g) => (a(), s(u, { key: g }, [
2014
+ t.useArea && t.plots.length > 1 ? (a(), s("g", yl, [
2015
+ t.smooth ? (a(!0), s(d, { key: 0 }, x(t.curveAreas, (n, g) => (a(), s(d, { key: g }, [
2009
2016
  I("path", {
2010
2017
  d: n,
2011
- fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
2012
- }, null, 8, yl),
2018
+ fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
2019
+ }, null, 8, Al),
2013
2020
  r.$slots.pattern ? (a(), s("path", {
2014
2021
  key: 0,
2015
2022
  d: n,
2016
2023
  fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
2017
- }, null, 8, Al)) : h("", !0)
2018
- ], 64))), 128)) : (a(!0), s(u, { key: 1 }, x(t.area.split(";"), (n, g) => (a(), s(u, { key: g }, [
2024
+ }, null, 8, Ll)) : h("", !0)
2025
+ ], 64))), 128)) : (a(!0), s(d, { key: 1 }, x(t.area.split(";"), (n, g) => (a(), s(d, { key: g }, [
2019
2026
  I("path", {
2020
2027
  d: `M${n}Z`,
2021
- fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
2022
- }, null, 8, Ll),
2028
+ fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
2029
+ }, null, 8, Cl),
2023
2030
  r.$slots.pattern ? (a(), s("path", {
2024
2031
  key: 0,
2025
2032
  d: `M${n}Z`,
2026
2033
  fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
2027
- }, null, 8, Cl)) : h("", !0)
2034
+ }, null, 8, Sl)) : h("", !0)
2028
2035
  ], 64))), 128))
2029
2036
  ])) : h("", !0),
2030
2037
  t.smooth && t.plots.length > 1 && t.curve ? (a(), s("path", {
@@ -2035,7 +2042,7 @@ function Xr(r, o, d, f, l, e) {
2035
2042
  "stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
2036
2043
  fill: "none",
2037
2044
  "stroke-linecap": "round"
2038
- }, null, 8, Sl)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
2045
+ }, null, 8, kl)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
2039
2046
  key: 2,
2040
2047
  d: `M${t.straight}`,
2041
2048
  stroke: t.color,
@@ -2044,14 +2051,14 @@ function Xr(r, o, d, f, l, e) {
2044
2051
  fill: "none",
2045
2052
  "stroke-linecap": "round",
2046
2053
  "stroke-linejoin": "round"
2047
- }, null, 8, kl)) : h("", !0),
2048
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2049
- key: `circle_line_${c}_${g}`
2054
+ }, null, 8, wl)) : h("", !0),
2055
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2056
+ key: `circle_line_${o}_${g}`
2050
2057
  }, [
2051
2058
  !e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) ? (a(), U(N, {
2052
2059
  key: 0,
2053
2060
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
2054
- color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? t.color : e.FINAL_CONFIG.line.dot.fill,
2061
+ 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,
2055
2062
  plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
2056
2063
  radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
2057
2064
  stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
@@ -2065,17 +2072,17 @@ function Xr(r, o, d, f, l, e) {
2065
2072
  x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
2066
2073
  y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
2067
2074
  }, [
2068
- I("div", Ol, [
2075
+ I("div", Gl, [
2069
2076
  G(r.$slots, "plot-comment", {
2070
- plot: { ...n, color: t.color, seriesIndex: c, datapointIndex: g }
2077
+ plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
2071
2078
  }, void 0, !0)
2072
2079
  ])
2073
- ], 8, wl)) : h("", !0)
2080
+ ], 8, Ol)) : h("", !0)
2074
2081
  ], 64))), 128)),
2075
- Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", Gl, [
2082
+ Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", vl, [
2076
2083
  I("defs", null, [
2077
2084
  I("marker", {
2078
- id: `line_arrow_${c}`,
2085
+ id: `line_arrow_${o}`,
2079
2086
  markerWidth: 7,
2080
2087
  markerHeight: 7,
2081
2088
  refX: "0",
@@ -2085,8 +2092,8 @@ function Xr(r, o, d, f, l, e) {
2085
2092
  I("polygon", {
2086
2093
  points: `0 0, 7 ${7 / 2}, 0 7`,
2087
2094
  fill: t.color
2088
- }, null, 8, pl)
2089
- ], 8, vl)
2095
+ }, null, 8, zl)
2096
+ ], 8, pl)
2090
2097
  ]),
2091
2098
  t.plots.length > 1 ? (a(), s("line", {
2092
2099
  key: 0,
@@ -2097,8 +2104,8 @@ function Xr(r, o, d, f, l, e) {
2097
2104
  "stroke-width": 1,
2098
2105
  stroke: t.color,
2099
2106
  "stroke-dasharray": 2,
2100
- "marker-end": `url(#line_arrow_${c})`
2101
- }, null, 8, zl)) : h("", !0),
2107
+ "marker-end": `url(#line_arrow_${o})`
2108
+ }, null, 8, Ml)) : h("", !0),
2102
2109
  t.plots.length > 1 ? (a(), s("text", {
2103
2110
  key: 1,
2104
2111
  "text-anchor": "middle",
@@ -2110,15 +2117,15 @@ function Xr(r, o, d, f, l, e) {
2110
2117
  v: e.calcLinearProgression(t.plots).trend * 100,
2111
2118
  s: "%",
2112
2119
  r: 2
2113
- })), 9, Ml)) : h("", !0)
2120
+ })), 9, Tl)) : h("", !0)
2114
2121
  ])) : h("", !0)
2115
2122
  ], 6))), 128)),
2116
- (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (a(), s("g", Tl, [
2117
- (a(!0), s(u, null, x(e.barSet, (t, c) => (a(), s(u, {
2118
- key: `xLabel_bar_${c}`
2123
+ (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (a(), s("g", Pl, [
2124
+ (a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s(d, {
2125
+ key: `xLabel_bar_${o}`
2119
2126
  }, [
2120
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2121
- key: `xLabel_bar_${c}_${g}`
2127
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2128
+ key: `xLabel_bar_${o}_${g}`
2122
2129
  }, [
2123
2130
  n && (!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", {
2124
2131
  key: 0,
@@ -2141,7 +2148,7 @@ function Xr(r, o, d, f, l, e) {
2141
2148
  datapoint: n,
2142
2149
  serie: t
2143
2150
  }
2144
- ) : ""), 13, Pl)) : h("", !0),
2151
+ ) : ""), 13, Vl)) : h("", !0),
2145
2152
  n && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
2146
2153
  key: 1,
2147
2154
  x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
@@ -2151,16 +2158,16 @@ function Xr(r, o, d, f, l, e) {
2151
2158
  fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
2152
2159
  "font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
2153
2160
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2154
- }, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Vl)) : h("", !0)
2161
+ }, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) : h("", !0)
2155
2162
  ], 64))), 128))
2156
2163
  ], 64))), 128))
2157
2164
  ])) : h("", !0),
2158
- e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Rl, [
2159
- (a(!0), s(u, null, x(e.plotSet, (t, c) => (a(), s(u, {
2160
- key: `xLabel_plot_${c}`
2165
+ e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Hl, [
2166
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
2167
+ key: `xLabel_plot_${o}`
2161
2168
  }, [
2162
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2163
- key: `xLabel_plot_${c}_${g}`
2169
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2170
+ key: `xLabel_plot_${o}_${g}`
2164
2171
  }, [
2165
2172
  n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (a(), s("text", {
2166
2173
  key: 0,
@@ -2183,17 +2190,17 @@ function Xr(r, o, d, f, l, e) {
2183
2190
  datapoint: n,
2184
2191
  serie: t
2185
2192
  }
2186
- ) : ""), 13, Hl)) : h("", !0)
2193
+ ) : ""), 13, Dl)) : h("", !0)
2187
2194
  ], 64))), 128))
2188
2195
  ], 64))), 128))
2189
- ])) : (a(), s("g", Dl, [
2190
- (a(!0), s(u, null, x(e.plotSet, (t, c) => (a(), s(u, {
2191
- key: `xLabel_plot_${c}`
2196
+ ])) : (a(), s("g", Bl, [
2197
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
2198
+ key: `xLabel_plot_${o}`
2192
2199
  }, [
2193
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2194
- key: `xLabel_plot_${c}_${g}`
2200
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2201
+ key: `xLabel_plot_${o}_${g}`
2195
2202
  }, [
2196
- e.FINAL_CONFIG.plot.tag.followValue ? (a(), s(u, { key: 1 }, [
2203
+ e.FINAL_CONFIG.plot.tag.followValue ? (a(), s(d, { key: 1 }, [
2197
2204
  [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (a(), s("line", {
2198
2205
  key: 0,
2199
2206
  class: "vue-ui-xy-tag-plot",
@@ -2205,8 +2212,8 @@ function Xr(r, o, d, f, l, e) {
2205
2212
  "stroke-linecap": "round",
2206
2213
  "stroke-dasharray": "2",
2207
2214
  stroke: t.color
2208
- }, null, 8, ql)) : h("", !0)
2209
- ], 64)) : (a(), s(u, { key: 0 }, [
2215
+ }, null, 8, Xl)) : h("", !0)
2216
+ ], 64)) : (a(), s(d, { key: 0 }, [
2210
2217
  n && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
2211
2218
  key: 0,
2212
2219
  x: n.x,
@@ -2227,8 +2234,8 @@ function Xr(r, o, d, f, l, e) {
2227
2234
  serieName: t.name
2228
2235
  }
2229
2236
  )
2230
- }, null, 12, Wl)
2231
- ], 12, Bl)) : h("", !0),
2237
+ }, null, 12, El)
2238
+ ], 12, Wl)) : h("", !0),
2232
2239
  n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
2233
2240
  key: 1,
2234
2241
  x: n.x - t.name.length * (l.fontSizes.plotLabels / 2),
@@ -2249,18 +2256,18 @@ function Xr(r, o, d, f, l, e) {
2249
2256
  serieName: t.name
2250
2257
  }
2251
2258
  )
2252
- }, null, 12, Yl)
2253
- ], 12, El)) : h("", !0)
2259
+ }, null, 12, ql)
2260
+ ], 12, Yl)) : h("", !0)
2254
2261
  ], 64))
2255
2262
  ], 64))), 128))
2256
2263
  ], 64))), 128))
2257
2264
  ])),
2258
- e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Xl, [
2259
- (a(!0), s(u, null, x(e.lineSet, (t, c) => (a(), s(u, {
2260
- key: `xLabel_line_${c}`
2265
+ e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Ul, [
2266
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
2267
+ key: `xLabel_line_${o}`
2261
2268
  }, [
2262
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2263
- key: `xLabel_line_${c}_${g}`
2269
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2270
+ key: `xLabel_line_${o}_${g}`
2264
2271
  }, [
2265
2272
  n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (a(), s("text", {
2266
2273
  key: 0,
@@ -2283,17 +2290,17 @@ function Xr(r, o, d, f, l, e) {
2283
2290
  datapoint: n,
2284
2291
  serie: t
2285
2292
  }
2286
- ) : ""), 13, Ul)) : h("", !0)
2293
+ ) : ""), 13, Zl)) : h("", !0)
2287
2294
  ], 64))), 128))
2288
2295
  ], 64))), 128))
2289
- ])) : (a(), s("g", Zl, [
2290
- (a(!0), s(u, null, x(e.lineSet, (t, c) => (a(), s(u, {
2291
- key: `xLabel_line_${c}`
2296
+ ])) : (a(), s("g", Jl, [
2297
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
2298
+ key: `xLabel_line_${o}`
2292
2299
  }, [
2293
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2294
- key: `xLabel_line_${c}_${g}`
2300
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2301
+ key: `xLabel_line_${o}_${g}`
2295
2302
  }, [
2296
- e.FINAL_CONFIG.line.tag.followValue ? (a(), s(u, { key: 1 }, [
2303
+ e.FINAL_CONFIG.line.tag.followValue ? (a(), s(d, { key: 1 }, [
2297
2304
  [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (a(), s("line", {
2298
2305
  key: 0,
2299
2306
  class: "vue-ui-xy-tag-line",
@@ -2305,8 +2312,8 @@ function Xr(r, o, d, f, l, e) {
2305
2312
  "stroke-linecap": "round",
2306
2313
  "stroke-dasharray": "2",
2307
2314
  stroke: t.color
2308
- }, null, 8, $l)) : h("", !0)
2309
- ], 64)) : (a(), s(u, { key: 0 }, [
2315
+ }, null, 8, er)) : h("", !0)
2316
+ ], 64)) : (a(), s(d, { key: 0 }, [
2310
2317
  n && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
2311
2318
  key: 0,
2312
2319
  x: n.x,
@@ -2327,8 +2334,8 @@ function Xr(r, o, d, f, l, e) {
2327
2334
  serieName: t.name
2328
2335
  }
2329
2336
  )
2330
- }, null, 12, Kl)
2331
- ], 12, Jl)) : h("", !0),
2337
+ }, null, 12, Ql)
2338
+ ], 12, Kl)) : h("", !0),
2332
2339
  n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
2333
2340
  key: 1,
2334
2341
  x: n.x,
@@ -2349,17 +2356,17 @@ function Xr(r, o, d, f, l, e) {
2349
2356
  serieName: t.name
2350
2357
  }
2351
2358
  )
2352
- }, null, 12, jl)
2353
- ], 12, Ql)) : h("", !0)
2359
+ }, null, 12, $l)
2360
+ ], 12, jl)) : h("", !0)
2354
2361
  ], 64))
2355
2362
  ], 64))), 128))
2356
2363
  ], 64))), 128))
2357
2364
  ])),
2358
- (a(!0), s(u, null, x(e.lineSet, (t, c) => (a(), s(u, {
2359
- key: `xLabel_line_${c}`
2365
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
2366
+ key: `xLabel_line_${o}`
2360
2367
  }, [
2361
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2362
- key: `xLabel_line_${c}_${g}`
2368
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2369
+ key: `xLabel_line_${o}_${g}`
2363
2370
  }, [
2364
2371
  n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (a(), s("text", {
2365
2372
  key: 0,
@@ -2377,7 +2384,7 @@ function Xr(r, o, d, f, l, e) {
2377
2384
  maxWords: 2
2378
2385
  }),
2379
2386
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2380
- }, null, 12, er)) : h("", !0),
2387
+ }, null, 12, tr)) : h("", !0),
2381
2388
  n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
2382
2389
  key: 1,
2383
2390
  x: n.x + l.fontSizes.plotLabels,
@@ -2394,14 +2401,14 @@ function Xr(r, o, d, f, l, e) {
2394
2401
  maxWords: 2
2395
2402
  }),
2396
2403
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2397
- }, null, 12, tr)) : h("", !0)
2404
+ }, null, 12, lr)) : h("", !0)
2398
2405
  ], 64))), 128))
2399
2406
  ], 64))), 128)),
2400
- (a(!0), s(u, null, x(e.plotSet, (t, c) => (a(), s(u, {
2401
- key: `xLabel_plot_${c}`
2407
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
2408
+ key: `xLabel_plot_${o}`
2402
2409
  }, [
2403
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2404
- key: `xLabel_plot_${c}_${g}`
2410
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2411
+ key: `xLabel_plot_${o}_${g}`
2405
2412
  }, [
2406
2413
  n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (a(), s("text", {
2407
2414
  key: 0,
@@ -2419,7 +2426,7 @@ function Xr(r, o, d, f, l, e) {
2419
2426
  maxWords: 2
2420
2427
  }),
2421
2428
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2422
- }, null, 12, lr)) : h("", !0),
2429
+ }, null, 12, rr)) : h("", !0),
2423
2430
  n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
2424
2431
  key: 1,
2425
2432
  x: n.x + l.fontSizes.plotLabels,
@@ -2436,13 +2443,13 @@ function Xr(r, o, d, f, l, e) {
2436
2443
  maxWords: 2
2437
2444
  }),
2438
2445
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2439
- }, null, 12, rr)) : h("", !0)
2446
+ }, null, 12, ir)) : h("", !0)
2440
2447
  ], 64))), 128))
2441
2448
  ], 64))), 128)),
2442
- l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), s(u, { key: 11 }, [
2449
+ l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), s(d, { key: 11 }, [
2443
2450
  I("defs", null, [
2444
- (a(!0), s(u, null, x(e.allScales, (t, c) => (a(), s("linearGradient", {
2445
- id: `individual_scale_gradient_${l.uniqueId}_${c}`,
2451
+ (a(!0), s(d, null, x(e.allScales, (t, o) => (a(), s("linearGradient", {
2452
+ id: `individual_scale_gradient_${l.uniqueId}_${o}`,
2446
2453
  x1: "0%",
2447
2454
  x2: "100%",
2448
2455
  y1: "0%",
@@ -2452,23 +2459,23 @@ function Xr(r, o, d, f, l, e) {
2452
2459
  offset: "0%",
2453
2460
  "stop-color": e.FINAL_CONFIG.chart.backgroundColor,
2454
2461
  "stop-opacity": "0"
2455
- }, null, 8, ar),
2462
+ }, null, 8, sr),
2456
2463
  I("stop", {
2457
2464
  offset: "100%",
2458
2465
  "stop-color": t.color,
2459
2466
  "stop-opacity": "0.2"
2460
- }, null, 8, sr)
2461
- ], 8, ir))), 256))
2467
+ }, null, 8, nr)
2468
+ ], 8, ar))), 256))
2462
2469
  ]),
2463
- (a(!0), s(u, null, x(e.allScales, (t, c) => (a(), s("rect", {
2470
+ (a(!0), s(d, null, x(e.allScales, (t, o) => (a(), s("rect", {
2464
2471
  x: t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
2465
2472
  y: e.drawingArea.top,
2466
2473
  width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
2467
2474
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2468
- fill: l.selectedScale === t.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${c})` : "transparent",
2475
+ fill: l.selectedScale === t.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${o})` : "transparent",
2469
2476
  onMouseenter: (n) => l.selectedScale = t.groupId,
2470
- onMouseleave: o[0] || (o[0] = (n) => l.selectedScale = null)
2471
- }, null, 40, nr))), 256))
2477
+ onMouseleave: c[0] || (c[0] = (n) => l.selectedScale = null)
2478
+ }, null, 40, cr))), 256))
2472
2479
  ], 64)) : h("", !0),
2473
2480
  I("g", null, [
2474
2481
  e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (a(), s("text", {
@@ -2478,7 +2485,7 @@ function Xr(r, o, d, f, l, e) {
2478
2485
  transform: `translate(${l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
2479
2486
  "text-anchor": "middle",
2480
2487
  style: { transition: "none" }
2481
- }, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, cr)) : h("", !0),
2488
+ }, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, or)) : h("", !0),
2482
2489
  e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
2483
2490
  key: 1,
2484
2491
  "text-anchor": "middle",
@@ -2486,33 +2493,33 @@ function Xr(r, o, d, f, l, e) {
2486
2493
  y: e.drawingArea.bottom + l.fontSizes.yAxis + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
2487
2494
  "font-size": l.fontSizes.yAxis,
2488
2495
  fill: e.FINAL_CONFIG.chart.grid.labels.color
2489
- }, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, or)) : h("", !0)
2496
+ }, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, hr)) : h("", !0)
2490
2497
  ]),
2491
- e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", hr, [
2492
- r.$slots["time-label"] ? (a(!0), s(u, { key: 0 }, x(e.timeLabels, (t, c) => G(r.$slots, "time-label", se({
2493
- key: `time_label_${c}`,
2498
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", ur, [
2499
+ r.$slots["time-label"] ? (a(!0), s(d, { key: 0 }, x(e.timeLabels, (t, o) => G(r.$slots, "time-label", se({
2500
+ key: `time_label_${o}`,
2494
2501
  ref_for: !0
2495
2502
  }, {
2496
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
2503
+ x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2,
2497
2504
  y: e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
2498
2505
  fontSize: l.fontSizes.xAxis,
2499
2506
  fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2500
- transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
2507
+ transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
2501
2508
  absoluteIndex: t.absoluteIndex,
2502
2509
  content: t.text,
2503
2510
  textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2504
- 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 && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !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 && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
2505
- }), void 0, !0)), 128)) : (a(!0), s(u, { key: 1 }, x(e.timeLabels, (t, c) => (a(), s("g", {
2506
- key: `time_label_${c}`
2511
+ 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
2512
+ }), void 0, !0)), 128)) : (a(!0), s(d, { key: 1 }, x(e.timeLabels, (t, o) => (a(), s("g", {
2513
+ key: `time_label_${o}`
2507
2514
  }, [
2508
- 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 && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !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 && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s(u, { key: 0 }, [
2515
+ 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 }, [
2509
2516
  String(t.text).includes(`
2510
2517
  `) ? (a(), s("text", {
2511
2518
  key: 1,
2512
2519
  "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2513
2520
  "font-size": l.fontSizes.xAxis,
2514
2521
  fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2515
- transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
2522
+ transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
2516
2523
  style: _({
2517
2524
  cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
2518
2525
  }),
@@ -2523,23 +2530,23 @@ function Xr(r, o, d, f, l, e) {
2523
2530
  x: 0,
2524
2531
  y: 0
2525
2532
  }),
2526
- onClick: () => e.selectTimeLabel(t, c)
2527
- }, null, 12, dr)) : (a(), s("text", {
2533
+ onClick: () => e.selectTimeLabel(t, o)
2534
+ }, null, 12, gr)) : (a(), s("text", {
2528
2535
  key: 0,
2529
2536
  "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2530
2537
  "font-size": l.fontSizes.xAxis,
2531
2538
  fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2532
- transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
2539
+ transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
2533
2540
  style: _({
2534
2541
  cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
2535
2542
  }),
2536
- onClick: () => e.selectTimeLabel(t, c)
2537
- }, V(t.text || ""), 13, ur))
2543
+ onClick: () => e.selectTimeLabel(t, o)
2544
+ }, V(t.text || ""), 13, dr))
2538
2545
  ], 64)) : h("", !0)
2539
2546
  ]))), 128))
2540
2547
  ])) : h("", !0),
2541
- e.annotationsY.length && !l.mutableConfig.isStacked ? (a(), s("g", gr, [
2542
- (a(!0), s(u, null, x(e.annotationsY, (t) => (a(), s("g", {
2548
+ e.annotationsY.length && !l.mutableConfig.isStacked ? (a(), s("g", fr, [
2549
+ (a(!0), s(d, null, x(e.annotationsY, (t) => (a(), s("g", {
2543
2550
  key: t.uid
2544
2551
  }, [
2545
2552
  t.yTop && t.show && isFinite(t.yTop) ? (a(), s("line", {
@@ -2553,7 +2560,7 @@ function Xr(r, o, d, f, l, e) {
2553
2560
  "stroke-dasharray": t.config.line.strokeDasharray,
2554
2561
  "stroke-linecap": "round",
2555
2562
  style: { animation: "none !important" }
2556
- }, null, 8, fr)) : h("", !0),
2563
+ }, null, 8, Ir)) : h("", !0),
2557
2564
  t.yBottom && t.show && isFinite(t.yBottom) ? (a(), s("line", {
2558
2565
  key: 1,
2559
2566
  x1: t.x1,
@@ -2565,7 +2572,7 @@ function Xr(r, o, d, f, l, e) {
2565
2572
  "stroke-dasharray": t.config.line.strokeDasharray,
2566
2573
  "stroke-linecap": "round",
2567
2574
  style: { animation: "none !important" }
2568
- }, null, 8, Ir)) : h("", !0),
2575
+ }, null, 8, xr)) : h("", !0),
2569
2576
  t.hasArea && t.show && isFinite(t.yTop) && isFinite(t.yBottom) ? (a(), s("rect", {
2570
2577
  key: 2,
2571
2578
  y: Math.min(t.yTop, t.yBottom),
@@ -2574,7 +2581,7 @@ function Xr(r, o, d, f, l, e) {
2574
2581
  height: e.checkNaN(t.areaHeight, 0),
2575
2582
  fill: e.setOpacity(t.config.area.fill, t.config.area.opacity),
2576
2583
  style: { animation: "none !important" }
2577
- }, null, 8, xr)) : h("", !0),
2584
+ }, null, 8, Nr)) : h("", !0),
2578
2585
  t.config.label.text && t.show && isFinite(t._box.y) ? (a(), s("rect", se({
2579
2586
  key: 3,
2580
2587
  class: "vue-ui-xy-annotation-label-box"
@@ -2588,23 +2595,23 @@ function Xr(r, o, d, f, l, e) {
2588
2595
  "font-size": t.config.label.fontSize,
2589
2596
  fill: t.config.label.color,
2590
2597
  "text-anchor": t.config.label.textAnchor
2591
- }, V(t.config.label.text), 9, Nr)) : h("", !0)
2598
+ }, V(t.config.label.text), 9, mr)) : h("", !0)
2592
2599
  ]))), 128))
2593
2600
  ])) : h("", !0),
2594
2601
  I("g", null, [
2595
- (a(!0), s(u, null, x(e.maxSeries, (t, c) => (a(), s("rect", {
2596
- key: `tooltip_trap_${c}`,
2597
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
2602
+ (a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("rect", {
2603
+ key: `tooltip_trap_${o}`,
2604
+ x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
2598
2605
  y: e.drawingArea.top,
2599
2606
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2600
2607
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
2601
2608
  fill: "transparent",
2602
- onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
2603
- onMouseleave: o[1] || (o[1] = (n) => e.toggleTooltipVisibility(!1)),
2604
- onClick: (n) => e.selectX(c)
2605
- }, null, 40, mr))), 128))
2609
+ onMouseenter: (n) => e.toggleTooltipVisibility(!0, o),
2610
+ onMouseleave: c[1] || (c[1] = (n) => e.toggleTooltipVisibility(!1)),
2611
+ onClick: (n) => e.selectX(o)
2612
+ }, null, 40, br))), 128))
2606
2613
  ]),
2607
- e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", br, [
2614
+ e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", Fr, [
2608
2615
  (a(), s("foreignObject", {
2609
2616
  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,
2610
2617
  y: e.drawingArea.bottom,
@@ -2616,30 +2623,30 @@ function Xr(r, o, d, f, l, e) {
2616
2623
  class: "vue-ui-xy-time-tag",
2617
2624
  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`)
2618
2625
  }, 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)
2619
- ], 8, Fr)),
2626
+ ], 8, _r)),
2620
2627
  I("circle", {
2621
2628
  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,
2622
2629
  cy: e.drawingArea.bottom,
2623
2630
  r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
2624
2631
  fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
2625
- }, null, 8, _r)
2632
+ }, null, 8, yr)
2626
2633
  ])) : h("", !0)
2627
2634
  ])) : h("", !0),
2628
2635
  G(r.$slots, "svg", { svg: e.svg }, void 0, !0)
2629
- ], 14, dt)) : h("", !0),
2630
- r.$slots.watermark ? (a(), s("div", yr, [
2636
+ ], 14, gt)) : h("", !0),
2637
+ r.$slots.watermark ? (a(), s("div", Ar, [
2631
2638
  G(r.$slots, "watermark", $(ee({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
2632
2639
  ])) : h("", !0),
2633
- (a(!0), s(u, null, x(e.lineSet, (t, c) => (a(), s(u, {
2634
- key: `tag_line_${c}`
2640
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
2641
+ key: `tag_line_${o}`
2635
2642
  }, [
2636
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2637
- key: `tag_line_${c}_${g}`
2643
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2644
+ key: `tag_line_${o}_${g}`
2638
2645
  }, [
2639
2646
  [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (a(), s("div", {
2640
2647
  key: 0,
2641
2648
  ref_for: !0,
2642
- ref: (p) => e.setTagRef(c, g, p, "right", "line"),
2649
+ ref: (p) => e.setTagRef(o, g, p, "right", "line"),
2643
2650
  class: "vue-ui-xy-tag",
2644
2651
  "data-tag": "right",
2645
2652
  style: _({
@@ -2648,14 +2655,14 @@ function Xr(r, o, d, f, l, e) {
2648
2655
  svgElement: l.svgRef,
2649
2656
  x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2650
2657
  y: n.y,
2651
- element: l.tagRefs[`${c}_${g}_right_line`],
2658
+ element: l.tagRefs[`${o}_${g}_right_line`],
2652
2659
  position: "right"
2653
2660
  }).top + "px",
2654
2661
  left: e.placeXYTag({
2655
2662
  svgElement: l.svgRef,
2656
2663
  x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2657
2664
  y: n.y,
2658
- element: l.tagRefs[`${c}_${g}_right_line`],
2665
+ element: l.tagRefs[`${o}_${g}_right_line`],
2659
2666
  position: "right"
2660
2667
  }).left + "px",
2661
2668
  height: "fit-content",
@@ -2667,12 +2674,12 @@ function Xr(r, o, d, f, l, e) {
2667
2674
  opacity: 1
2668
2675
  })
2669
2676
  }, [
2670
- (a(), s("svg", Ar, [
2677
+ (a(), s("svg", Lr, [
2671
2678
  I("path", {
2672
2679
  d: "M 0,10 10,0 10,20 Z",
2673
2680
  fill: t.color,
2674
2681
  stroke: "none"
2675
- }, null, 8, Lr)
2682
+ }, null, 8, Cr)
2676
2683
  ])),
2677
2684
  I("div", {
2678
2685
  class: "vue-ui-xy-tag-content",
@@ -2686,12 +2693,12 @@ function Xr(r, o, d, f, l, e) {
2686
2693
  serieName: t.name
2687
2694
  }
2688
2695
  )
2689
- }, null, 8, Cr)
2696
+ }, null, 8, Sr)
2690
2697
  ], 4)) : h("", !0),
2691
2698
  [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), s("div", {
2692
2699
  key: 1,
2693
2700
  ref_for: !0,
2694
- ref: (p) => e.setTagRef(c, g, p, "left", "line"),
2701
+ ref: (p) => e.setTagRef(o, g, p, "left", "line"),
2695
2702
  class: "vue-ui-xy-tag",
2696
2703
  "data-tag": "left",
2697
2704
  style: _({
@@ -2700,14 +2707,14 @@ function Xr(r, o, d, f, l, e) {
2700
2707
  svgElement: l.svgRef,
2701
2708
  x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2702
2709
  y: n.y,
2703
- element: l.tagRefs[`${c}_${g}_left_line`],
2710
+ element: l.tagRefs[`${o}_${g}_left_line`],
2704
2711
  position: "left"
2705
2712
  }).top + "px",
2706
2713
  left: e.placeXYTag({
2707
2714
  svgElement: l.svgRef,
2708
2715
  x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2709
2716
  y: n.y,
2710
- element: l.tagRefs[`${c}_${g}_left_line`],
2717
+ element: l.tagRefs[`${o}_${g}_left_line`],
2711
2718
  position: "left"
2712
2719
  }).left + "px",
2713
2720
  height: "fit-content",
@@ -2719,12 +2726,12 @@ function Xr(r, o, d, f, l, e) {
2719
2726
  opacity: 1
2720
2727
  })
2721
2728
  }, [
2722
- (a(), s("svg", Sr, [
2729
+ (a(), s("svg", kr, [
2723
2730
  I("path", {
2724
2731
  d: "M 0,0 10,10 0,20 Z",
2725
2732
  fill: t.color,
2726
2733
  stroke: "none"
2727
- }, null, 8, kr)
2734
+ }, null, 8, wr)
2728
2735
  ])),
2729
2736
  I("div", {
2730
2737
  class: "vue-ui-xy-tag-content",
@@ -2738,20 +2745,20 @@ function Xr(r, o, d, f, l, e) {
2738
2745
  serieName: t.name
2739
2746
  }
2740
2747
  )
2741
- }, null, 8, wr)
2748
+ }, null, 8, Or)
2742
2749
  ], 4)) : h("", !0)
2743
2750
  ], 64))), 128))
2744
2751
  ], 64))), 128)),
2745
- (a(!0), s(u, null, x(e.plotSet, (t, c) => (a(), s(u, {
2746
- key: `tag_plot_${c}`
2752
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
2753
+ key: `tag_plot_${o}`
2747
2754
  }, [
2748
- (a(!0), s(u, null, x(t.plots, (n, g) => (a(), s(u, {
2749
- key: `tag_plot_${c}_${g}`
2755
+ (a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
2756
+ key: `tag_plot_${o}_${g}`
2750
2757
  }, [
2751
2758
  [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), s("div", {
2752
2759
  key: 0,
2753
2760
  ref_for: !0,
2754
- ref: (p) => e.setTagRef(c, g, p, "right", "plot"),
2761
+ ref: (p) => e.setTagRef(o, g, p, "right", "plot"),
2755
2762
  class: "vue-ui-xy-tag",
2756
2763
  "data-tag": "right",
2757
2764
  style: _({
@@ -2760,14 +2767,14 @@ function Xr(r, o, d, f, l, e) {
2760
2767
  svgElement: l.svgRef,
2761
2768
  x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2762
2769
  y: n.y,
2763
- element: l.tagRefs[`${c}_${g}_right_plot`],
2770
+ element: l.tagRefs[`${o}_${g}_right_plot`],
2764
2771
  position: "right"
2765
2772
  }).top + "px",
2766
2773
  left: e.placeXYTag({
2767
2774
  svgElement: l.svgRef,
2768
2775
  x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2769
2776
  y: n.y,
2770
- element: l.tagRefs[`${c}_${g}_right_plot`],
2777
+ element: l.tagRefs[`${o}_${g}_right_plot`],
2771
2778
  position: "right"
2772
2779
  }).left + "px",
2773
2780
  height: "fit-content",
@@ -2779,12 +2786,12 @@ function Xr(r, o, d, f, l, e) {
2779
2786
  opacity: 1
2780
2787
  })
2781
2788
  }, [
2782
- (a(), s("svg", Or, [
2789
+ (a(), s("svg", Gr, [
2783
2790
  I("path", {
2784
2791
  d: "M 0,10 10,0 10,20 Z",
2785
2792
  fill: t.color,
2786
2793
  stroke: "none"
2787
- }, null, 8, Gr)
2794
+ }, null, 8, vr)
2788
2795
  ])),
2789
2796
  I("div", {
2790
2797
  class: "vue-ui-xy-tag-content",
@@ -2798,12 +2805,12 @@ function Xr(r, o, d, f, l, e) {
2798
2805
  serieName: t.name
2799
2806
  }
2800
2807
  )
2801
- }, null, 8, vr)
2808
+ }, null, 8, pr)
2802
2809
  ], 4)) : h("", !0),
2803
2810
  [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), s("div", {
2804
2811
  key: 1,
2805
2812
  ref_for: !0,
2806
- ref: (p) => e.setTagRef(c, g, p, "left", "plot"),
2813
+ ref: (p) => e.setTagRef(o, g, p, "left", "plot"),
2807
2814
  class: "vue-ui-xy-tag",
2808
2815
  "data-tag": "left",
2809
2816
  style: _({
@@ -2812,14 +2819,14 @@ function Xr(r, o, d, f, l, e) {
2812
2819
  svgElement: l.svgRef,
2813
2820
  x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2814
2821
  y: n.y,
2815
- element: l.tagRefs[`${c}_${g}_left_plot`],
2822
+ element: l.tagRefs[`${o}_${g}_left_plot`],
2816
2823
  position: "left"
2817
2824
  }).top + "px",
2818
2825
  left: e.placeXYTag({
2819
2826
  svgElement: l.svgRef,
2820
2827
  x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2821
2828
  y: n.y,
2822
- element: l.tagRefs[`${c}_${g}_left_plot`],
2829
+ element: l.tagRefs[`${o}_${g}_left_plot`],
2823
2830
  position: "left"
2824
2831
  }).left + "px",
2825
2832
  height: "fit-content",
@@ -2831,12 +2838,12 @@ function Xr(r, o, d, f, l, e) {
2831
2838
  opacity: 1
2832
2839
  })
2833
2840
  }, [
2834
- (a(), s("svg", pr, [
2841
+ (a(), s("svg", zr, [
2835
2842
  I("path", {
2836
2843
  d: "M 0,0 10,10 0,20 Z",
2837
2844
  fill: t.color,
2838
2845
  stroke: "none"
2839
- }, null, 8, zr)
2846
+ }, null, 8, Mr)
2840
2847
  ])),
2841
2848
  I("div", {
2842
2849
  class: "vue-ui-xy-tag-content",
@@ -2850,7 +2857,7 @@ function Xr(r, o, d, f, l, e) {
2850
2857
  serieName: t.name
2851
2858
  }
2852
2859
  )
2853
- }, null, 8, Mr)
2860
+ }, null, 8, Tr)
2854
2861
  ], 4)) : h("", !0)
2855
2862
  ], 64))), 128))
2856
2863
  ], 64))), 128)),
@@ -2898,11 +2905,11 @@ function Xr(r, o, d, f, l, e) {
2898
2905
  valueStart: l.slicer.start,
2899
2906
  valueEnd: l.slicer.end,
2900
2907
  start: l.slicer.start,
2901
- "onUpdate:start": o[2] || (o[2] = (t) => l.slicer.start = t),
2908
+ "onUpdate:start": c[2] || (c[2] = (t) => l.slicer.start = t),
2902
2909
  end: l.slicer.end,
2903
- "onUpdate:end": o[3] || (o[3] = (t) => l.slicer.end = t),
2910
+ "onUpdate:end": c[3] || (c[3] = (t) => l.slicer.end = t),
2904
2911
  refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
2905
- refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...d.dataset.map((t) => e.largestTriangleThreeBucketsArray({ data: t.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
2912
+ refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...u.dataset.map((t) => e.largestTriangleThreeBucketsArray({ data: t.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
2906
2913
  enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
2907
2914
  enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
2908
2915
  onReset: e.refreshSlicer,
@@ -2919,12 +2926,12 @@ function Xr(r, o, d, f, l, e) {
2919
2926
  class: "vue-ui-xy-legend",
2920
2927
  style: _(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
2921
2928
  }, [
2922
- (a(!0), s(u, null, x(e.absoluteDataset, (t, c) => (a(), s("div", {
2923
- key: `div_legend_item_${c}`,
2929
+ (a(!0), s(d, null, x(e.absoluteDataset, (t, o) => (a(), s("div", {
2930
+ key: `div_legend_item_${o}`,
2924
2931
  onClick: (n) => e.segregate(t),
2925
2932
  class: j({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(t.id) })
2926
2933
  }, [
2927
- l.icons[t.type] === "line" ? (a(), s("svg", Pr, [
2934
+ l.icons[t.type] === "line" ? (a(), s("svg", Vr, [
2928
2935
  I("rect", {
2929
2936
  x: "0",
2930
2937
  y: "7.5",
@@ -2934,7 +2941,7 @@ function Xr(r, o, d, f, l, e) {
2934
2941
  height: "3",
2935
2942
  width: "20",
2936
2943
  fill: t.color
2937
- }, null, 8, Vr),
2944
+ }, null, 8, Rr),
2938
2945
  le(N, {
2939
2946
  plot: { x: 10, y: 9 },
2940
2947
  radius: 4,
@@ -2943,7 +2950,7 @@ function Xr(r, o, d, f, l, e) {
2943
2950
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
2944
2951
  strokeWidth: 0.5
2945
2952
  }, null, 8, ["color", "shape", "stroke"])
2946
- ])) : l.icons[t.type] === "bar" ? (a(), s("svg", Rr, [
2953
+ ])) : l.icons[t.type] === "bar" ? (a(), s("svg", Hr, [
2947
2954
  l.icons[t.type] === "bar" && r.$slots.pattern ? (a(), s("rect", {
2948
2955
  key: 0,
2949
2956
  x: "0",
@@ -2953,7 +2960,7 @@ function Xr(r, o, d, f, l, e) {
2953
2960
  width: "40",
2954
2961
  stroke: "none",
2955
2962
  fill: t.color
2956
- }, null, 8, Hr)) : h("", !0),
2963
+ }, null, 8, Dr)) : h("", !0),
2957
2964
  l.icons[t.type] === "bar" ? (a(), s("rect", {
2958
2965
  key: 1,
2959
2966
  x: "0",
@@ -2963,8 +2970,8 @@ function Xr(r, o, d, f, l, e) {
2963
2970
  width: "40",
2964
2971
  stroke: "none",
2965
2972
  fill: r.$slots.pattern ? `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})` : t.color
2966
- }, null, 8, Dr)) : h("", !0)
2967
- ])) : (a(), s("svg", Br, [
2973
+ }, null, 8, Br)) : h("", !0)
2974
+ ])) : (a(), s("svg", Wr, [
2968
2975
  le(N, {
2969
2976
  plot: { x: 6, y: 6 },
2970
2977
  radius: 5,
@@ -2975,11 +2982,11 @@ function Xr(r, o, d, f, l, e) {
2975
2982
  I("span", {
2976
2983
  style: _(`color:${e.FINAL_CONFIG.chart.legend.color}`)
2977
2984
  }, V(t.name), 5)
2978
- ], 10, Tr))), 128))
2979
- ], 4)) : (a(), s("div", Wr, [
2985
+ ], 10, Pr))), 128))
2986
+ ], 4)) : (a(), s("div", Er, [
2980
2987
  G(r.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
2981
2988
  ], 512)),
2982
- r.$slots.source ? (a(), s("div", Er, [
2989
+ r.$slots.source ? (a(), s("div", Yr, [
2983
2990
  G(r.$slots, "source", {}, void 0, !0)
2984
2991
  ], 512)) : h("", !0),
2985
2992
  le(m, {
@@ -3026,15 +3033,15 @@ function Xr(r, o, d, f, l, e) {
3026
3033
  I("div", {
3027
3034
  style: _(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
3028
3035
  }, [
3029
- I("div", Yr, [
3036
+ I("div", qr, [
3030
3037
  tt(I("input", {
3031
3038
  type: "checkbox",
3032
- "onUpdate:modelValue": o[4] || (o[4] = (t) => l.showSparklineTable = t)
3039
+ "onUpdate:modelValue": c[4] || (c[4] = (t) => l.showSparklineTable = t)
3033
3040
  }, null, 512), [
3034
3041
  [lt, l.showSparklineTable]
3035
3042
  ]),
3036
3043
  I("div", {
3037
- onClick: o[5] || (o[5] = (t) => l.showSparklineTable = !l.showSparklineTable),
3044
+ onClick: c[5] || (c[5] = (t) => l.showSparklineTable = !l.showSparklineTable),
3038
3045
  style: { cursor: "pointer" }
3039
3046
  }, [
3040
3047
  le(L, {
@@ -3055,10 +3062,10 @@ function Xr(r, o, d, f, l, e) {
3055
3062
  body: e.dataTable.body,
3056
3063
  config: e.dataTable.config,
3057
3064
  title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
3058
- onClose: o[6] || (o[6] = (t) => l.mutableConfig.showTable = !1)
3065
+ onClose: c[6] || (c[6] = (t) => l.mutableConfig.showTable = !1)
3059
3066
  }, {
3060
3067
  th: B(({ th: t }) => [
3061
- I("div", { innerHTML: t }, null, 8, qr)
3068
+ I("div", { innerHTML: t }, null, 8, Xr)
3062
3069
  ]),
3063
3070
  td: B(({ td: t }) => [
3064
3071
  rt(V(isNaN(Number(t)) ? t : e.dataLabel({
@@ -3074,9 +3081,9 @@ function Xr(r, o, d, f, l, e) {
3074
3081
  ]),
3075
3082
  _: 1
3076
3083
  }, 8, ["config"])) : h("", !0)
3077
- ], 46, ht);
3084
+ ], 46, ut);
3078
3085
  }
3079
- const li = /* @__PURE__ */ nt(ot, [["render", Xr], ["__scopeId", "data-v-06fd2d47"]]);
3086
+ const ii = /* @__PURE__ */ ct(ht, [["render", Ur], ["__scopeId", "data-v-234126f5"]]);
3080
3087
  export {
3081
- li as default
3088
+ ii as default
3082
3089
  };