vue-data-ui 2.12.6 → 2.12.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
  2. package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
  8. package/dist/PackageVersion-DaWGaZxE.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
  15. package/dist/SparkTooltip-DcdMxgqn.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
  17. package/dist/Tooltip-B07vY6jm.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-C8URL2IU.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
  41. package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
  45. package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
  46. package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
  57. package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
  66. package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
  76. package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
  85. package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
  86. package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
  89. package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
  90. package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,20 +1,11 @@
1
- import { Q as H, Z as U, a8 as te, a9 as J, aa as le, ab as ae, ac as re, ad as ie, ae as se, c as Z, A as ne, F as ce, w as oe, s as he, o as ue, a1 as de, af as ge, x as fe, C as Ie, y as Ne, a7 as me, e as xe, r as be, f as K, ag as Fe, T as _e, U as ye, q as Ae, b as Le, z as Ce, d as Se, ah as ke, v as we, ai as Oe, a5 as Ge, aj as ve, i as pe, G as ze, K as Me, u as Te, p as Pe, B as Ve, a as Re, t as He } from "./index-BFzQMJda.js";
2
- import { D as De } from "./DataTable-Rajdtaf6.js";
3
- import { _ as We } from "./Title-CzaCeCOm.js";
4
- import { u as Be, _ as Ee } from "./Tooltip-CWmRmhJr.js";
5
- import { U as Ye } from "./usePrinter-C5bLp34h.js";
6
- import { _ as qe } from "./Shape-C69a0f29.js";
7
- import Xe from "./BaseIcon-CNbwMh_-.js";
8
- import Ue from "./vue-ui-table-sparkline-Dg54Ovs2.js";
9
- import Ze from "./vue-ui-skeleton-B_YI7Yuc.js";
10
- import { S as Je } from "./Slicer-7qFdY-bT.js";
11
- import Ke from "./vue-ui-accordion-BUz4JIIX.js";
12
- import { u as Q } from "./useNestedProp-v7KPpwuP.js";
13
- import { _ as Qe } from "./PackageVersion-BjrblLPQ.js";
14
- import { _ as je } from "./PenAndPaper-BkP3J-Ft.js";
15
- import { resolveComponent as R, createElementBlock as i, openBlock as r, normalizeStyle as b, normalizeClass as B, createBlock as W, createCommentVNode as d, createVNode as X, createSlots as $e, withCtx as V, renderSlot as S, normalizeProps as E, guardReactiveProps as Y, createElementVNode as f, createTextVNode as j, Fragment as u, renderList as I, toDisplayString as T, mergeProps as $, withDirectives as et, vModelCheckbox as tt } from "vue";
16
- import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const at = Z(), rt = {
1
+ import { Q as H, Z, a7 as le, a8 as K, a9 as re, aa as ae, ab as ie, ac as se, ad as ne, c as J, A as ce, F as oe, w as he, s as ue, o as de, a1 as ge, ae as fe, x as Ie, C as Ne, y as me, a6 as be, e as xe, r as Fe, f as Q, af as _e, T as ye, U as Ae, q as Le, b as Ce, z as Se, d as ke, ag as we, v as Oe, ah as Ge, a4 as ve, ai as pe, i as ze, G as Me, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-BHEd2dgu.js";
2
+ import { u as We } from "./useMouse-AicQS8Vf.js";
3
+ import { u as j } from "./useNestedProp-CZztHZIm.js";
4
+ import { S as Ee } from "./Slicer-DXpA-pZk.js";
5
+ import Be from "./Title-Bc66VstS.js";
6
+ import { defineAsyncComponent as W, resolveComponent as R, createElementBlock as i, openBlock as a, normalizeStyle as x, normalizeClass as B, createBlock as E, createCommentVNode as d, createVNode as U, createSlots as Ye, withCtx as V, renderSlot as S, normalizeProps as Y, guardReactiveProps as q, createElementVNode as f, createTextVNode as $, Fragment as u, renderList as I, toDisplayString as T, mergeProps as ee, withDirectives as qe, vModelCheckbox as Xe } from "vue";
7
+ import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const Ze = J(), Je = {
18
9
  name: "vue-ui-xy",
19
10
  props: {
20
11
  config: {
@@ -31,18 +22,20 @@ const at = Z(), rt = {
31
22
  }
32
23
  },
33
24
  components: {
34
- DataTable: De,
35
- Shape: qe,
36
- Title: We,
37
- Tooltip: Ee,
38
- UserOptions: Ye,
39
- BaseIcon: Xe,
40
- TableSparkline: Ue,
41
- Skeleton: Ze,
42
- Slicer: Je,
43
- Accordion: Ke,
44
- PackageVersion: Qe,
45
- PenAndPaper: je
25
+ Slicer: Ee,
26
+ // Must be ready in responsive mode
27
+ Title: Be,
28
+ // Must be ready in responsive mode
29
+ DataTable: W(() => import("./DataTable-Y5HbiUZU.js")),
30
+ Shape: W(() => import("./Shape-B6kIkp2s.js")),
31
+ Tooltip: W(() => import("./Tooltip-B07vY6jm.js")),
32
+ UserOptions: W(() => import("./UserOptions-C8X2STEg.js")),
33
+ BaseIcon: W(() => import("./BaseIcon-DhWmrDAn.js")),
34
+ TableSparkline: W(() => import("./vue-ui-table-sparkline-D7C5AiCp.js")),
35
+ Skeleton: W(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")),
36
+ Accordion: W(() => import("./vue-ui-accordion-DntThSTF.js")),
37
+ PackageVersion: W(() => import("./PackageVersion-DaWGaZxE.js")),
38
+ PenAndPaper: W(() => import("./PenAndPaper-C-CpE0NC.js"))
46
39
  },
47
40
  data() {
48
41
  this.dataset.forEach((g, l) => {
@@ -53,20 +46,22 @@ const at = Z(), rt = {
53
46
  index: l
54
47
  });
55
48
  });
56
- const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, n = Math.max(...this.dataset.map((g) => this.largestTriangleThreeBucketsArray({ data: g.series, threshold: t }).length)), o = {
49
+ const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, s = Math.max(...this.dataset.map((g) => this.largestTriangleThreeBucketsArray({ data: g.series, threshold: t }).length)), o = {
57
50
  start: 0,
58
- end: n
51
+ end: s
59
52
  };
60
53
  return {
61
- themePalettes: He,
62
- themes: Re,
54
+ resizeObserver: null,
55
+ observedEl: null,
56
+ themePalettes: De,
57
+ themes: He,
63
58
  slicerStep: 0,
64
59
  selectedScale: null,
65
60
  CTX: null,
66
61
  CANVAS: null,
67
- opacity: Ve,
62
+ opacity: Re,
68
63
  useSafeValues: !0,
69
- palette: Pe,
64
+ palette: Ve,
70
65
  height: 600,
71
66
  width: 1e3,
72
67
  viewBox: "0 0 1000 600",
@@ -100,16 +95,16 @@ const at = Z(), rt = {
100
95
  selectedSerieIndex: null,
101
96
  selectedRowIndex: null,
102
97
  segregatedSeries: [],
103
- uniqueId: Z(),
98
+ uniqueId: J(),
104
99
  step: 0,
105
100
  tableStep: 0,
106
101
  titleStep: 0,
107
102
  slicer: o,
108
103
  __to__: null,
109
- maxX: n,
104
+ maxX: s,
110
105
  showSparklineTable: !0,
111
106
  segregateStep: 0,
112
- sliderId: at,
107
+ sliderId: Ze,
113
108
  fontSizes: {
114
109
  xAxis: 18,
115
110
  yAxis: 12,
@@ -130,7 +125,7 @@ const at = Z(), rt = {
130
125
  },
131
126
  watch: {
132
127
  dataset: {
133
- handler(t, n) {
128
+ handler(t, s) {
134
129
  this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
135
130
  data: o.series,
136
131
  threshold: this.FINAL_CONFIG.downsample.threshold
@@ -142,7 +137,7 @@ const at = Z(), rt = {
142
137
  deep: !0
143
138
  },
144
139
  config: {
145
- handler(t, n) {
140
+ handler(t, s) {
146
141
  this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
147
142
  dataLabels: {
148
143
  show: !0
@@ -158,8 +153,8 @@ const at = Z(), rt = {
158
153
  },
159
154
  computed: {
160
155
  chartAriaLabel() {
161
- const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization", n = this.FINAL_CONFIG.chart.title.subtitle.text || "";
162
- return `${t}. ${n}`;
156
+ const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization", s = this.FINAL_CONFIG.chart.title.subtitle.text || "";
157
+ return `${t}. ${s}`;
163
158
  },
164
159
  optimize() {
165
160
  return {
@@ -171,8 +166,8 @@ const at = Z(), rt = {
171
166
  },
172
167
  minimap() {
173
168
  if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
174
- const t = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), n = Math.max(...t.map((l) => l.series.length)), o = [];
175
- for (let l = 0; l < n; l += 1)
169
+ const t = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), s = Math.max(...t.map((l) => l.series.length)), o = [];
170
+ for (let l = 0; l < s; l += 1)
176
171
  o.push(t.map((e) => e.series[l] || 0).reduce((e, A) => (e || 0) + (A || 0), 0));
177
172
  const g = Math.min(...o);
178
173
  return o.map((l) => l + (g < 0 ? Math.abs(g) : 0));
@@ -199,7 +194,7 @@ const at = Z(), rt = {
199
194
  yOffset: e.yOffset || 0,
200
195
  individualHeight: e.individualHeight || this.drawingArea.height,
201
196
  autoScaleYLabels: e.autoScaleYLabels
202
- })), n = this.barSet.map((e) => ({
197
+ })), s = this.barSet.map((e) => ({
203
198
  name: e.name,
204
199
  color: e.color,
205
200
  scale: e.individualScale,
@@ -222,7 +217,7 @@ const at = Z(), rt = {
222
217
  id: e.id,
223
218
  yOffset: e.yOffset || 0,
224
219
  individualHeight: e.individualHeight || this.drawingArea.height
225
- })), g = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...n, ...o], l = g.flatMap((e) => e).length;
220
+ })), g = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...s, ...o], l = g.flatMap((e) => e).length;
226
221
  return g.flatMap((e, A) => ({
227
222
  unique: e.unique,
228
223
  id: e.id,
@@ -234,9 +229,9 @@ const at = Z(), rt = {
234
229
  yOffset: e.yOffset,
235
230
  individualHeight: e.individualHeight,
236
231
  x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / l * (A + 1),
237
- yLabels: e.scaleYLabels || e.scale.ticks.map((x) => ({
238
- y: x >= 0 ? e.zero - e.individualHeight * (x / e.max) : e.zero + e.individualHeight * Math.abs(x) / e.max,
239
- value: x
232
+ yLabels: e.scaleYLabels || e.scale.ticks.map((b) => ({
233
+ y: b >= 0 ? e.zero - e.individualHeight * (b / e.max) : e.zero + e.individualHeight * Math.abs(b) / e.max,
234
+ value: b
240
235
  }))
241
236
  }));
242
237
  },
@@ -260,9 +255,9 @@ const at = Z(), rt = {
260
255
  },
261
256
  highlightAreas() {
262
257
  if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
263
- return this.FINAL_CONFIG.chart.highlightArea.map((n) => ({
264
- ...n,
265
- span: n.from === n.to ? 1 : n.to < n.from ? 0 : n.to - n.from + 1
258
+ return this.FINAL_CONFIG.chart.highlightArea.map((s) => ({
259
+ ...s,
260
+ span: s.from === s.to ? 1 : s.to < s.from ? 0 : s.to - s.from + 1
266
261
  }));
267
262
  const t = this.FINAL_CONFIG.chart.highlightArea;
268
263
  return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
@@ -277,33 +272,33 @@ const at = Z(), rt = {
277
272
  return this.niceScale.max + this.relativeZero;
278
273
  },
279
274
  datasetWithIds() {
280
- return this.useSafeValues ? this.dataset.map((t, n) => ({
275
+ return this.useSafeValues ? this.dataset.map((t, s) => ({
281
276
  ...t,
282
277
  series: this.largestTriangleThreeBucketsArray({
283
278
  data: t.series,
284
279
  threshold: this.FINAL_CONFIG.downsample.threshold
285
280
  }),
286
- id: `uniqueId_${n}`
281
+ id: `uniqueId_${s}`
287
282
  })) : this.dataset;
288
283
  },
289
284
  safeDataset() {
290
- return this.useSafeValues ? this.dataset.map((t, n) => {
285
+ return this.useSafeValues ? this.dataset.map((t, s) => {
291
286
  const o = this.largestTriangleThreeBucketsArray({
292
287
  data: t.series,
293
288
  threshold: this.FINAL_CONFIG.downsample.threshold
294
- }), g = `uniqueId_${n}`;
289
+ }), g = `uniqueId_${s}`;
295
290
  return {
296
291
  ...t,
297
- slotAbsoluteIndex: n,
292
+ slotAbsoluteIndex: s,
298
293
  series: o.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
299
- color: this.convertColorToHex(t.color ? t.color : this.customPalette[n] ? this.customPalette[n] : this.palette[n]),
294
+ color: this.convertColorToHex(t.color ? t.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
300
295
  id: g,
301
296
  scaleLabel: t.scaleLabel || g
302
297
  };
303
298
  }) : this.dataset;
304
299
  },
305
300
  relativeDataset() {
306
- return this.safeDataset.map((t, n) => ({
301
+ return this.safeDataset.map((t, s) => ({
307
302
  ...t,
308
303
  series: t.series.map((o) => o + this.relativeZero),
309
304
  absoluteValues: t.series
@@ -311,12 +306,12 @@ const at = Z(), rt = {
311
306
  },
312
307
  tableSparklineDataset() {
313
308
  return this.relativeDataset.map((t) => {
314
- const n = t.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
309
+ const s = t.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
315
310
  return {
316
311
  id: t.id,
317
312
  name: t.name,
318
313
  color: t.color,
319
- values: this.fillArray(this.maxSeries, n)
314
+ values: this.fillArray(this.maxSeries, s)
320
315
  };
321
316
  });
322
317
  },
@@ -347,8 +342,8 @@ const at = Z(), rt = {
347
342
  };
348
343
  },
349
344
  absoluteDataset() {
350
- return this.safeDataset.map((t, n) => ({
351
- absoluteIndex: n,
345
+ return this.safeDataset.map((t, s) => ({
346
+ absoluteIndex: s,
352
347
  ...t,
353
348
  series: t.series.map((o) => o + this.relativeZero),
354
349
  absoluteValues: t.series,
@@ -363,19 +358,19 @@ const at = Z(), rt = {
363
358
  return this.assignStackRatios(this.absoluteDataset.filter((t) => !this.segregatedSeries.includes(t.id)));
364
359
  },
365
360
  scaleGroups() {
366
- const t = Object.groupBy(this.activeSeriesWithStackRatios, (o) => o.scaleLabel), n = {};
361
+ const t = Object.groupBy(this.activeSeriesWithStackRatios, (o) => o.scaleLabel), s = {};
367
362
  for (const [o, g] of Object.entries(t)) {
368
363
  const l = g.flatMap((e) => e.absoluteValues);
369
- n[o] = {
364
+ s[o] = {
370
365
  min: Math.min(...l) || 0,
371
366
  max: Math.max(...l) || 1,
372
367
  groupId: `scale_group_${this.createUid()}`
373
368
  };
374
369
  }
375
- return n;
370
+ return s;
376
371
  },
377
372
  barSet() {
378
- return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t, n) => {
373
+ return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t, s) => {
379
374
  this.checkAutoScaleError(t);
380
375
  const o = this.scaleGroups[t.scaleLabel].min, g = this.scaleGroups[t.scaleLabel].max;
381
376
  t.absoluteValues.filter((_) => ![null, void 0].includes(_)).map((_) => (_ - o) / (g - o));
@@ -385,32 +380,32 @@ const at = Z(), rt = {
385
380
  }, e = {
386
381
  max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
387
382
  min: t.scaleMin || Math.min(...t.absoluteValues.filter((_) => ![void 0, null].includes(_))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((_) => ![null, void 0].includes(_)))
388
- }, A = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, x = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * x : e.max, A), L = this.calculateNiceScaleWithExactExtremes(l.valueMin, l.valueMax === l.valueMin ? l.valueMax * x : l.valueMax, A), G = N.min >= 0 ? 0 : Math.abs(N.min), k = 0, v = N.max + G, w = L.max + Math.abs(k), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, O = this.drawingArea.bottom - F - C * G / v, p = this.drawingArea.bottom - F - C * k / w, a = this.absoluteDataset.filter((_) => _.type === "bar").filter((_) => !this.segregatedSeries.includes(_.id)).length, c = t.series.map((_, M) => {
389
- const q = this.mutableConfig.useIndividualScale ? (t.absoluteValues[M] + G) / v : this.ratioToMax(_), D = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left + this.slot.bar * n + this.slot.bar * M * a - this.barSlot / 2 - n * this.barPeriodGap;
383
+ }, A = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * b : e.max, A), L = this.calculateNiceScaleWithExactExtremes(l.valueMin, l.valueMax === l.valueMin ? l.valueMax * b : l.valueMax, A), v = N.min >= 0 ? 0 : Math.abs(N.min), k = 0, w = N.max + v, O = L.max + Math.abs(k), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, G = this.drawingArea.bottom - F - C * v / w, p = this.drawingArea.bottom - F - C * k / O, r = this.absoluteDataset.filter((_) => _.type === "bar").filter((_) => !this.segregatedSeries.includes(_.id)).length, c = t.series.map((_, M) => {
384
+ const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[M] + v) / w : this.ratioToMax(_), D = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left + this.slot.bar * s + this.slot.bar * M * r - this.barSlot / 2 - s * this.barPeriodGap;
390
385
  return {
391
386
  yOffset: this.checkNaN(F),
392
387
  individualHeight: this.checkNaN(C),
393
388
  x: this.checkNaN(D),
394
- y: this.drawingArea.bottom - F - C * q,
389
+ y: this.drawingArea.bottom - F - C * X,
395
390
  value: t.absoluteValues[M],
396
- zeroPosition: this.checkNaN(O),
397
- individualMax: this.checkNaN(v),
391
+ zeroPosition: this.checkNaN(G),
392
+ individualMax: this.checkNaN(w),
398
393
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
399
394
  };
400
- }), s = t.absoluteValues.map((_) => L.min >= 0 ? (_ - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (_ + Math.abs(L.min)) / (L.max + Math.abs(L.min))), h = t.series.map((_, M) => {
401
- const q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * n + this.slot.bar * M * this.absoluteDataset.filter((D) => D.type === "bar").filter((D) => !this.segregatedSeries.includes(D.id)).length;
395
+ }), n = t.absoluteValues.map((_) => L.min >= 0 ? (_ - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (_ + Math.abs(L.min)) / (L.max + Math.abs(L.min))), h = t.series.map((_, M) => {
396
+ const X = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * M * this.absoluteDataset.filter((D) => D.type === "bar").filter((D) => !this.segregatedSeries.includes(D.id)).length;
402
397
  return {
403
398
  yOffset: this.checkNaN(F),
404
399
  individualHeight: this.checkNaN(C),
405
- x: this.checkNaN(q),
406
- y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * s[M] || 0)),
400
+ x: this.checkNaN(X),
401
+ y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * n[M] || 0)),
407
402
  value: t.absoluteValues[M],
408
- zeroPosition: this.checkNaN(O),
409
- individualMax: this.checkNaN(v),
403
+ zeroPosition: this.checkNaN(G),
404
+ individualMax: this.checkNaN(w),
410
405
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
411
406
  };
412
407
  }), y = N.ticks.map((_) => ({
413
- y: _ >= 0 ? O - C * (_ / v) : O + C * Math.abs(_) / v,
408
+ y: _ >= 0 ? G - C * (_ / w) : G + C * Math.abs(_) / w,
414
409
  value: _,
415
410
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
416
411
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
@@ -425,15 +420,15 @@ const at = Z(), rt = {
425
420
  datapoint: t
426
421
  };
427
422
  });
428
- return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? z : y, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? p : O, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? w : v, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = F, this.scaleGroups[t.scaleLabel].individualHeight = C, this.scaleGroups[t.scaleLabel].autoScaleYLabels = z, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((_) => _.scaleLabel === t.scaleLabel).length === 1, {
423
+ return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? z : y, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? p : G, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? O : w, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = F, this.scaleGroups[t.scaleLabel].individualHeight = C, this.scaleGroups[t.scaleLabel].autoScaleYLabels = z, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((_) => _.scaleLabel === t.scaleLabel).length === 1, {
429
424
  ...t,
430
425
  yOffset: F,
431
426
  autoScaleYLabels: z,
432
427
  individualHeight: C,
433
428
  scaleYLabels: t.autoScaling ? z : y,
434
429
  individualScale: t.autoScaling ? L : N,
435
- individualMax: t.autoScaling ? w : v,
436
- zeroPosition: t.autoScaling ? p : O,
430
+ individualMax: t.autoScaling ? O : w,
431
+ zeroPosition: t.autoScaling ? p : G,
437
432
  plots: t.autoScaling ? h : c,
438
433
  groupId: this.scaleGroups[t.scaleLabel].groupId
439
434
  };
@@ -442,33 +437,33 @@ const at = Z(), rt = {
442
437
  lineSet() {
443
438
  return this.activeSeriesWithStackRatios.filter((t) => t.type === "line").map((t) => {
444
439
  this.checkAutoScaleError(t);
445
- const n = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
446
- t.absoluteValues.filter((m) => ![null, void 0].includes(m)).map((m) => (m - n) / (o - n));
440
+ const s = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
441
+ t.absoluteValues.filter((m) => ![null, void 0].includes(m)).map((m) => (m - s) / (o - s));
447
442
  const g = {
448
- valueMin: n,
443
+ valueMin: s,
449
444
  valueMax: o
450
445
  }, l = {
451
446
  max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
452
447
  min: t.scaleMin || (Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues))
453
- }, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, x = this.calculateNiceScaleWithExactExtremes(l.min, l.max === l.min ? l.max * A : l.max, e), N = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * A : g.valueMax, e), L = x.min >= 0 ? 0 : Math.abs(x.min), G = 0, k = x.max + Math.abs(L), v = N.max + Math.abs(G), w = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - w - F * L / k, O = this.drawingArea.bottom - w - F * G / v, p = t.series.map((m, P) => {
454
- const ee = this.mutableConfig.useIndividualScale ? (t.absoluteValues[P] + Math.abs(L)) / k : this.ratioToMax(m);
448
+ }, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, b = this.calculateNiceScaleWithExactExtremes(l.min, l.max === l.min ? l.max * A : l.max, e), N = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * A : g.valueMax, e), L = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, k = b.max + Math.abs(L), w = N.max + Math.abs(v), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - F * L / k, G = this.drawingArea.bottom - O - F * v / w, p = t.series.map((m, P) => {
449
+ const te = this.mutableConfig.useIndividualScale ? (t.absoluteValues[P] + Math.abs(L)) / k : this.ratioToMax(m);
455
450
  return {
456
451
  x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
457
- y: this.checkNaN(this.drawingArea.bottom - w - F * ee),
452
+ y: this.checkNaN(this.drawingArea.bottom - O - F * te),
458
453
  value: t.absoluteValues[P],
459
454
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
460
455
  };
461
- }), a = t.absoluteValues.map((m) => N.min >= 0 ? (m - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (m + Math.abs(N.min)) / (N.max + Math.abs(N.min))), c = t.series.map((m, P) => [void 0, null].includes(t.absoluteValues[P]) ? {
456
+ }), r = t.absoluteValues.map((m) => N.min >= 0 ? (m - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (m + Math.abs(N.min)) / (N.max + Math.abs(N.min))), c = t.series.map((m, P) => [void 0, null].includes(t.absoluteValues[P]) ? {
462
457
  x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
463
458
  y: C,
464
459
  value: t.absoluteValues[P],
465
460
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
466
461
  } : {
467
462
  x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
468
- y: this.checkNaN(this.drawingArea.bottom - w - (F * a[P] || 0)),
463
+ y: this.checkNaN(this.drawingArea.bottom - O - (F * r[P] || 0)),
469
464
  value: t.absoluteValues[P],
470
465
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
471
- }), s = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(p) : this.createSmoothPath(p.filter((m) => m.value !== null)), h = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(c) : this.createSmoothPath(c.filter((m) => m.value !== null)), y = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(p) : this.createStraightPath(p.filter((m) => m.value !== null)), z = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(c) : this.createStraightPath(c.filter((m) => m.value !== null)), _ = x.ticks.map((m) => ({
466
+ }), n = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(p) : this.createSmoothPath(p.filter((m) => m.value !== null)), h = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(c) : this.createSmoothPath(c.filter((m) => m.value !== null)), y = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(p) : this.createStraightPath(p.filter((m) => m.value !== null)), z = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(c) : this.createStraightPath(c.filter((m) => m.value !== null)), _ = b.ticks.map((m) => ({
472
467
  y: m >= 0 ? C - F * (m / k) : C + F * Math.abs(m) / k,
473
468
  value: m,
474
469
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
@@ -477,25 +472,25 @@ const at = Z(), rt = {
477
472
  })), M = N.ticks.map((m) => {
478
473
  const P = (m - N.min) / (N.max - N.min);
479
474
  return {
480
- y: m >= 0 ? O - F * P : O + F * P,
475
+ y: m >= 0 ? G - F * P : G + F * P,
481
476
  value: m,
482
477
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
483
478
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
484
479
  datapoint: t
485
480
  };
486
481
  });
487
- this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? M : _, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? O : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? v : k, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = w, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = M, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((m) => m.scaleLabel === t.scaleLabel).length === 1;
488
- const q = this.mutableConfig.useIndividualScale ? t.autoScaling ? O : C : this.zero, D = Math.max(Math.max(t.autoScaling ? O : _.at(-1).y, this.drawingArea.top), q);
482
+ this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? M : _, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? G : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? w : k, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = O, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = M, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((m) => m.scaleLabel === t.scaleLabel).length === 1;
483
+ const X = this.mutableConfig.useIndividualScale ? t.autoScaling ? G : C : this.zero, D = Math.max(Math.max(t.autoScaling ? G : _.at(-1).y, this.drawingArea.top), X);
489
484
  return {
490
485
  ...t,
491
- yOffset: w,
486
+ yOffset: O,
492
487
  autoScaleYLabels: M,
493
488
  individualHeight: F,
494
489
  scaleYLabels: t.autoScaling ? M : _,
495
- individualScale: t.autoScaling ? N : x,
496
- individualMax: t.autoScaling ? v : k,
497
- zeroPosition: t.autoScaling ? O : C,
498
- curve: t.autoScaling ? h : s,
490
+ individualScale: t.autoScaling ? N : b,
491
+ individualMax: t.autoScaling ? w : k,
492
+ zeroPosition: t.autoScaling ? G : C,
493
+ curve: t.autoScaling ? h : n,
499
494
  plots: t.autoScaling ? c : p,
500
495
  area: t.useArea ? this.mutableConfig.useIndividualScale ? this.FINAL_CONFIG.line.cutNullValues ? this.createIndividualAreaWithCuts(
501
496
  t.autoScaling ? c : p,
@@ -504,7 +499,7 @@ const at = Z(), rt = {
504
499
  t.autoScaling ? c.filter((m) => m.value !== null) : p.filter((m) => m.value !== null),
505
500
  D
506
501
  ) : this.createIndividualArea(p.filter((m) => m.value !== null), D) : "",
507
- curveAreas: t.useArea ? J(
502
+ curveAreas: t.useArea ? K(
508
503
  t.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? c : c.filter((m) => m.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? p : p.filter((m) => m.value !== null),
509
504
  D,
510
505
  this.FINAL_CONFIG.line.cutNullValues
@@ -517,28 +512,28 @@ const at = Z(), rt = {
517
512
  plotSet() {
518
513
  return this.activeSeriesWithStackRatios.filter((t) => t.type === "plot").map((t) => {
519
514
  this.checkAutoScaleError(t);
520
- const n = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
521
- t.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - n) / (o - n));
515
+ const s = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
516
+ t.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - s) / (o - s));
522
517
  const g = {
523
- valueMin: n,
518
+ valueMin: s,
524
519
  valueMax: o
525
520
  }, l = {
526
521
  max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
527
522
  min: t.scaleMin || Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues)
528
- }, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, x = this.calculateNiceScaleWithExactExtremes(l.min, l.max === l.min ? l.max * A : l.max, e), N = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * A : g.valueMax, e), L = x.min >= 0 ? 0 : Math.abs(x.min), G = 0, k = x.max + L, v = N.max + Math.abs(G), w = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - w - F * L / k, O = this.drawingArea.bottom - w - F * G / v, p = t.series.map((y, z) => {
523
+ }, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, b = this.calculateNiceScaleWithExactExtremes(l.min, l.max === l.min ? l.max * A : l.max, e), N = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * A : g.valueMax, e), L = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, k = b.max + L, w = N.max + Math.abs(v), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - F * L / k, G = this.drawingArea.bottom - O - F * v / w, p = t.series.map((y, z) => {
529
524
  const _ = this.mutableConfig.useIndividualScale ? (t.absoluteValues[z] + Math.abs(L)) / k : this.ratioToMax(y);
530
525
  return {
531
526
  x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * z),
532
- y: this.checkNaN(this.drawingArea.bottom - w - F * _),
527
+ y: this.checkNaN(this.drawingArea.bottom - O - F * _),
533
528
  value: t.absoluteValues[z],
534
529
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
535
530
  };
536
- }), a = t.absoluteValues.map((y) => N.min >= 0 ? (y - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (y + Math.abs(N.min)) / (N.max + Math.abs(N.min))), c = t.series.map((y, z) => ({
531
+ }), r = t.absoluteValues.map((y) => N.min >= 0 ? (y - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (y + Math.abs(N.min)) / (N.max + Math.abs(N.min))), c = t.series.map((y, z) => ({
537
532
  x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * z),
538
- y: this.checkNaN(this.drawingArea.bottom - w - (F * a[z] || 0)),
533
+ y: this.checkNaN(this.drawingArea.bottom - O - (F * r[z] || 0)),
539
534
  value: t.absoluteValues[z],
540
535
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
541
- })), s = x.ticks.map((y) => ({
536
+ })), n = b.ticks.map((y) => ({
542
537
  y: y >= 0 ? C - F * (y / k) : C + F * Math.abs(y) / k,
543
538
  value: y,
544
539
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
@@ -547,22 +542,22 @@ const at = Z(), rt = {
547
542
  })), h = N.ticks.map((y) => {
548
543
  const z = (y - N.min) / (N.max - N.min);
549
544
  return {
550
- y: y >= 0 ? O - F * z : O + F * z,
545
+ y: y >= 0 ? G - F * z : G + F * z,
551
546
  value: y,
552
547
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
553
548
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
554
549
  datapoint: t
555
550
  };
556
551
  });
557
- return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? h : s, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? O : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? v : k, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = w, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = h, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((y) => y.scaleLabel === t.scaleLabel).length === 1, {
552
+ return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? h : n, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? G : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? w : k, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = O, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = h, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((y) => y.scaleLabel === t.scaleLabel).length === 1, {
558
553
  ...t,
559
- yOffset: w,
554
+ yOffset: O,
560
555
  autoScaleYLabels: h,
561
556
  individualHeight: F,
562
- scaleYLabels: t.autoScaling ? h : s,
563
- individualScale: t.autoScaling ? N : x,
564
- individualMax: t.autoScaling ? v : k,
565
- zeroPosition: t.autoScaling ? O : C,
557
+ scaleYLabels: t.autoScaling ? h : n,
558
+ individualScale: t.autoScaling ? N : b,
559
+ individualMax: t.autoScaling ? w : k,
560
+ zeroPosition: t.autoScaling ? G : C,
566
561
  plots: t.autoScaling ? c : p,
567
562
  groupId: this.scaleGroups[t.scaleLabel].groupId
568
563
  };
@@ -576,7 +571,7 @@ const at = Z(), rt = {
576
571
  l.add(A);
577
572
  }), l.size;
578
573
  }
579
- const n = t(this.absoluteDataset.filter((g) => !this.segregatedSeries.includes(g.id))), o = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? n * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
574
+ const s = t(this.absoluteDataset.filter((g) => !this.segregatedSeries.includes(g.id))), o = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? s * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
580
575
  return {
581
576
  top: this.FINAL_CONFIG.chart.padding.top,
582
577
  right: this.width - this.FINAL_CONFIG.chart.padding.right,
@@ -592,7 +587,7 @@ const at = Z(), rt = {
592
587
  min() {
593
588
  if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
594
589
  return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
595
- const t = Math.min(...this.safeDataset.filter((n) => !this.segregatedSeries.includes(n.id)).map((n) => Math.min(...n.series)));
590
+ const t = Math.min(...this.safeDataset.filter((s) => !this.segregatedSeries.includes(s.id)).map((s) => Math.min(...s.series)));
596
591
  return t > 0 ? 0 : t;
597
592
  },
598
593
  niceScale() {
@@ -602,13 +597,13 @@ const at = Z(), rt = {
602
597
  return this.slicer.end - this.slicer.start;
603
598
  },
604
599
  timeLabels() {
605
- const t = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), n = [];
600
+ const t = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), s = [];
606
601
  for (let o = 0; o < t; o += 1)
607
- n.push({
602
+ s.push({
608
603
  text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
609
604
  absoluteIndex: o
610
605
  });
611
- return n.slice(this.slicer.start, this.slicer.end);
606
+ return s.slice(this.slicer.start, this.slicer.end);
612
607
  },
613
608
  slot() {
614
609
  return {
@@ -618,7 +613,7 @@ const at = Z(), rt = {
618
613
  };
619
614
  },
620
615
  barSlot() {
621
- const t = this.safeDataset.filter((n) => n.type === "bar").filter((n) => !this.segregatedSeries.includes(n.id)).length;
616
+ const t = this.safeDataset.filter((s) => s.type === "bar").filter((s) => !this.segregatedSeries.includes(s.id)).length;
622
617
  return this.drawingArea.width / this.maxSeries / t - this.barPeriodGap * t;
623
618
  },
624
619
  barPeriodGap() {
@@ -633,32 +628,32 @@ const at = Z(), rt = {
633
628
  label: o.name,
634
629
  color: o.color,
635
630
  type: o.type
636
- })), n = [];
631
+ })), s = [];
637
632
  return this.timeLabels.forEach((o, g) => {
638
633
  const l = [o.text];
639
634
  this.relativeDataset.forEach((e) => {
640
635
  l.push(this.canShowValue(e.absoluteValues[g]) ? Number(e.absoluteValues[g].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
641
- }), n.push(l);
642
- }), { head: t, body: n };
636
+ }), s.push(l);
637
+ }), { head: t, body: s };
643
638
  },
644
639
  dataTable() {
645
640
  const t = this.FINAL_CONFIG.table.showSum;
646
- let n = [""].concat(this.relativeDataset.map((e) => e.name));
647
- t && (n = n.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
641
+ let s = [""].concat(this.relativeDataset.map((e) => e.name));
642
+ t && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
648
643
  let o = [];
649
644
  for (let e = 0; e < this.maxSeries; e += 1) {
650
- const A = this.relativeDataset.map((x) => x.absoluteValues[e] ?? 0).reduce((x, N) => x + N, 0);
645
+ const A = this.relativeDataset.map((b) => b.absoluteValues[e] ?? 0).reduce((b, N) => b + N, 0);
651
646
  o.push(
652
647
  [
653
648
  this.timeLabels[e].text ?? "-"
654
649
  ].concat(this.relativeDataset.map(
655
- (x) => this.applyDataLabel(
656
- x.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : x.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
657
- x.absoluteValues[e] ?? 0,
650
+ (b) => this.applyDataLabel(
651
+ b.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : b.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
652
+ b.absoluteValues[e] ?? 0,
658
653
  this.dataLabel({
659
- p: x.prefix || this.FINAL_CONFIG.chart.labels.prefix,
660
- v: x.absoluteValues[e] ?? 0,
661
- s: x.suffix || this.FINAL_CONFIG.chart.labels.suffix,
654
+ p: b.prefix || this.FINAL_CONFIG.chart.labels.prefix,
655
+ v: b.absoluteValues[e] ?? 0,
656
+ s: b.suffix || this.FINAL_CONFIG.chart.labels.suffix,
662
657
  r: this.FINAL_CONFIG.table.rounding
663
658
  })
664
659
  )
@@ -678,7 +673,7 @@ const at = Z(), rt = {
678
673
  },
679
674
  breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
680
675
  }, l = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
681
- return { head: n, body: o, config: g, colNames: l };
676
+ return { head: s, body: o, config: g, colNames: l };
682
677
  },
683
678
  dataTooltipSlot() {
684
679
  return {
@@ -698,14 +693,14 @@ const at = Z(), rt = {
698
693
  name: t.name,
699
694
  color: t.color,
700
695
  type: t.type,
701
- value: t.absoluteValues.find((n, o) => o === this.selectedSerieIndex),
696
+ value: t.absoluteValues.find((s, o) => o === this.selectedSerieIndex),
702
697
  comments: t.comments || [],
703
698
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
704
699
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix
705
700
  }));
706
701
  },
707
702
  tooltipContent() {
708
- let t = "", n = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
703
+ let t = "", s = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
709
704
  const o = this.timeLabels[this.selectedSerieIndex], g = this.FINAL_CONFIG.chart.tooltip.customFormat;
710
705
  return this.isFunction(g) && this.functionReturnsString(() => g({
711
706
  seriesIndex: this.selectedSerieIndex,
@@ -731,7 +726,7 @@ const at = Z(), rt = {
731
726
  e = `<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${l.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${l.slotAbsoluteIndex}` : l.color}" /></svg>`;
732
727
  break;
733
728
  case "line":
734
- !l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape) ? A = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" />` : l.shape === "triangle" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "square" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "diamond" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "pentagon" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "hexagon" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "star" && (A = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" points="${U({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${l.color}" />${A}</svg>`;
729
+ !l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape) ? A = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" />` : l.shape === "triangle" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "square" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "diamond" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "pentagon" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "hexagon" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "star" && (A = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" points="${Z({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${l.color}" />${A}</svg>`;
735
730
  break;
736
731
  case "plot":
737
732
  if (!l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape)) {
@@ -739,7 +734,7 @@ const at = Z(), rt = {
739
734
  break;
740
735
  }
741
736
  if (l.shape === "star") {
742
- e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${U({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
737
+ e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${Z({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
743
738
  break;
744
739
  }
745
740
  if (l.shape === "triangle") {
@@ -773,8 +768,8 @@ const at = Z(), rt = {
773
768
  r: this.FINAL_CONFIG.chart.tooltip.roundingValue
774
769
  }),
775
770
  { datapoint: l }
776
- ) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${K({
777
- v: this.checkNaN(Math.abs(l.value) / n * 100),
771
+ ) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${Q({
772
+ v: this.checkNaN(Math.abs(l.value) / s * 100),
778
773
  s: "%",
779
774
  r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
780
775
  })})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && l.comments.length && l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (t += `<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>`);
@@ -808,54 +803,54 @@ const at = Z(), rt = {
808
803
  }), document.addEventListener("scroll", this.hideTags);
809
804
  },
810
805
  beforeUnmount() {
811
- document.removeEventListener("scroll", this.hideTags);
806
+ document.removeEventListener("scroll", this.hideTags), this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
812
807
  },
813
808
  methods: {
814
- abbreviate: Me,
815
- adaptColorToBackground: ze,
816
- applyDataLabel: pe,
817
- assignStackRatios: ve,
818
- calcLinearProgression: Ge,
819
- calculateNiceScaleWithExactExtremes: Oe,
820
- checkNaN: we,
821
- closestDecimal: ke,
822
- convertColorToHex: Se,
823
- convertConfigColors: Ce,
824
- convertCustomPalette: Le,
825
- createCsvContent: Ae,
826
- createSmoothPath: ye,
827
- createStraightPath: _e,
828
- createTSpans: Fe,
829
- dataLabel: K,
830
- downloadCsv: be,
809
+ abbreviate: Te,
810
+ adaptColorToBackground: Me,
811
+ applyDataLabel: ze,
812
+ assignStackRatios: pe,
813
+ calcLinearProgression: ve,
814
+ calculateNiceScaleWithExactExtremes: Ge,
815
+ checkNaN: Oe,
816
+ closestDecimal: we,
817
+ convertColorToHex: ke,
818
+ convertConfigColors: Se,
819
+ convertCustomPalette: Ce,
820
+ createCsvContent: Le,
821
+ createSmoothPath: Ae,
822
+ createStraightPath: ye,
823
+ createTSpans: _e,
824
+ dataLabel: Q,
825
+ downloadCsv: Fe,
831
826
  error: xe,
832
- forceValidValue: me,
833
- functionReturnsString: Ne,
834
- hasDeepProperty: Ie,
835
- isFunction: fe,
836
- isSafeValue: ge,
837
- largestTriangleThreeBucketsArray: de,
838
- objectIsEmpty: ue,
839
- setOpacity: he,
840
- shiftHue: oe,
841
- translateSize: ce,
842
- treeShake: ne,
843
- useMouse: Be,
844
- useNestedProp: Q,
845
- createUid: Z,
846
- placeXYTag: se,
847
- createSmoothPathWithCuts: ie,
848
- createStraightPathWithCuts: re,
827
+ forceValidValue: be,
828
+ functionReturnsString: me,
829
+ hasDeepProperty: Ne,
830
+ isFunction: Ie,
831
+ isSafeValue: fe,
832
+ largestTriangleThreeBucketsArray: ge,
833
+ objectIsEmpty: de,
834
+ setOpacity: ue,
835
+ shiftHue: he,
836
+ translateSize: oe,
837
+ treeShake: ce,
838
+ useMouse: We,
839
+ useNestedProp: j,
840
+ createUid: J,
841
+ placeXYTag: ne,
842
+ createSmoothPathWithCuts: se,
843
+ createStraightPathWithCuts: ie,
849
844
  createAreaWithCuts: ae,
850
- createIndividualAreaWithCuts: le,
851
- createSmoothAreaSegments: J,
852
- createIndividualArea: te,
845
+ createIndividualAreaWithCuts: re,
846
+ createSmoothAreaSegments: K,
847
+ createIndividualArea: le,
853
848
  hideTags() {
854
849
  const t = document.querySelectorAll(".vue-ui-xy-tag");
855
- t.length && Array.from(t).forEach((n) => n.style.opacity = "0");
850
+ t.length && Array.from(t).forEach((s) => s.style.opacity = "0");
856
851
  },
857
- setTagRef(t, n, o, g, l) {
858
- o && (this.tagRefs[`${t}_${n}_${g}_${l}`] = o);
852
+ setTagRef(t, s, o, g, l) {
853
+ o && (this.tagRefs[`${t}_${s}_${g}_${l}`] = o);
859
854
  },
860
855
  setUserOptionsVisibility(t = !1) {
861
856
  this.showUserOptionsOnChartHover && (this.userOptionsVisible = t);
@@ -863,13 +858,13 @@ const at = Z(), rt = {
863
858
  toggleAnnotator() {
864
859
  this.isAnnotator = !this.isAnnotator;
865
860
  },
866
- selectTimeLabel(t, n) {
861
+ selectTimeLabel(t, s) {
867
862
  const o = this.relativeDataset.map((g) => ({
868
863
  shape: g.shape || null,
869
864
  name: g.name,
870
865
  color: g.color,
871
866
  type: g.type,
872
- value: g.absoluteValues.find((l, e) => e === n),
867
+ value: g.absoluteValues.find((l, e) => e === s),
873
868
  comments: g.comments || [],
874
869
  prefix: g.prefix || this.FINAL_CONFIG.chart.labels.prefix,
875
870
  suffix: g.suffix || this.FINAL_CONFIG.chart.labels.suffix
@@ -881,44 +876,44 @@ const at = Z(), rt = {
881
876
  });
882
877
  },
883
878
  getHighlightAreaPosition(t) {
884
- const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
879
+ const s = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
885
880
  return {
886
- x: n < this.drawingArea.left ? this.drawingArea.left : n,
881
+ x: s < this.drawingArea.left ? this.drawingArea.left : s,
887
882
  width: o
888
883
  };
889
884
  },
890
885
  prepareConfig() {
891
- const t = Te().vue_ui_xy;
886
+ const t = Pe().vue_ui_xy;
892
887
  if (!Object.keys(this.config || {}).length)
893
888
  return t;
894
- const n = this.useNestedProp({
889
+ const s = this.useNestedProp({
895
890
  userConfig: this.config,
896
891
  defaultConfig: t
897
892
  });
898
- return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? n.chart.highlightArea = this.config.chart.highlightArea : n.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? n.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : n.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? n.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : n.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? n.chart.zoom.startIndex = this.config.chart.zoom.startIndex : n.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? n.chart.zoom.endIndex = this.config.chart.zoom.endIndex : n.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? n.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : n.chart.grid.labels.yAxis.groupColor = null, n.theme ? {
899
- ...Q({
900
- userConfig: this.themes.vue_ui_xy[n.theme] || this.config,
901
- defaultConfig: n
893
+ return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? s.chart.highlightArea = this.config.chart.highlightArea : s.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? s.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : s.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? s.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : s.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? s.chart.zoom.startIndex = this.config.chart.zoom.startIndex : s.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? s.chart.zoom.endIndex = this.config.chart.zoom.endIndex : s.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? s.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : s.chart.grid.labels.yAxis.groupColor = null, s.theme ? {
894
+ ...j({
895
+ userConfig: this.themes.vue_ui_xy[s.theme] || this.config,
896
+ defaultConfig: s
902
897
  }),
903
- customPalette: this.themePalettes[n.theme] || this.palette
904
- } : n;
898
+ customPalette: this.themePalettes[s.theme] || this.palette
899
+ } : s;
905
900
  },
906
901
  prepareChart() {
907
902
  if (this.objectIsEmpty(this.dataset) ? this.error({
908
903
  componentName: "VueUiXy",
909
904
  type: "dataset"
910
- }) : this.dataset.forEach((t, n) => {
905
+ }) : this.dataset.forEach((t, s) => {
911
906
  [null, void 0].includes(t.name) && this.error({
912
907
  componentName: "VueUiXy",
913
908
  type: "datasetSerieAttribute",
914
909
  property: "name (string)",
915
- index: n
910
+ index: s
916
911
  });
917
912
  }), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((t) => {
918
- t.series.forEach((n, o) => {
919
- this.isSafeValue(n) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
920
- -----> The serie '${t.name}' contains the value '${n}' at index ${o}.
921
- '${n}' was converted to null to allow the chart to display.`);
913
+ t.series.forEach((s, o) => {
914
+ this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
915
+ -----> The serie '${t.name}' contains the value '${s}' at index ${o}.
916
+ '${s}' was converted to null to allow the chart to display.`);
922
917
  });
923
918
  }), 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 = {
924
919
  dataLabels: {
@@ -929,22 +924,26 @@ const at = Z(), rt = {
929
924
  isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
930
925
  useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
931
926
  }, this.FINAL_CONFIG.responsive) {
932
- const n = this.$refs.chart.parentNode, { height: o, width: g } = n.getBoundingClientRect();
927
+ const s = this.$refs.chart.parentNode;
928
+ this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
929
+ const { height: o, width: g } = s.getBoundingClientRect();
933
930
  let l = null, e = 0;
934
931
  this.FINAL_CONFIG.chart.title.show && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
935
- let A = null, x = 0;
936
- this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (A = this.$refs.chartSlicer.$el, x = A.getBoundingClientRect().height);
932
+ let A = null, b = 0;
933
+ this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (A = this.$refs.chartSlicer.$el, b = A.getBoundingClientRect().height);
937
934
  let N = null, L = 0;
938
935
  this.FINAL_CONFIG.chart.legend.show && (N = this.$refs.chartLegend, L = N.getBoundingClientRect().height);
939
- let G = 0;
940
- this.$refs.source && (G = this.$refs.source.getBoundingClientRect().height);
936
+ let v = 0;
937
+ this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height);
941
938
  let k = 0;
942
- this.$refs.noTitle && (k = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - L - x - G - k, this.width = g, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((w) => {
943
- for (const F of w)
944
- this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (x = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (L = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (G = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
945
- this.height = F.contentBoxSize[0].blockSize - e - L - x - G - 24, this.width = F.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
939
+ this.$refs.noTitle && (k = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - L - b - v - k, this.width = g, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
940
+ const w = new ResizeObserver((O) => {
941
+ for (const F of O)
942
+ this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (b = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (L = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
943
+ this.height = F.contentBoxSize[0].blockSize - e - L - b - v - 24, this.width = F.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
946
944
  });
947
- }).observe(n);
945
+ });
946
+ this.resizeObserver = w, this.observedEl = s, w.observe(s);
948
947
  } else
949
948
  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;
950
949
  },
@@ -1005,19 +1004,19 @@ const at = Z(), rt = {
1005
1004
  checkAutoScaleError(t) {
1006
1005
  t.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1007
1006
  },
1008
- createArea(t, n) {
1007
+ createArea(t, s) {
1009
1008
  if (!t[0]) return [-10, -10, "", -10, -10];
1010
- const o = { x: t[0].x, y: n }, g = { x: t.at(-1).x, y: n }, l = [];
1009
+ const o = { x: t[0].x, y: s }, g = { x: t.at(-1).x, y: s }, l = [];
1011
1010
  return t.forEach((e) => {
1012
1011
  l.push(`${e.x},${e.y} `);
1013
1012
  }), [o.x, o.y, ...l, g.x, g.y].toString();
1014
1013
  },
1015
- createStar: U,
1014
+ createStar: Z,
1016
1015
  createPolygonPath: H,
1017
- fillArray(t, n) {
1016
+ fillArray(t, s) {
1018
1017
  let o = Array(t).fill(0);
1019
- for (let g = 0; g < n.length && g < t; g += 1)
1020
- o[g] = n[g];
1018
+ for (let g = 0; g < s.length && g < t; g += 1)
1019
+ o[g] = s[g];
1021
1020
  return o;
1022
1021
  },
1023
1022
  async setupSlicer() {
@@ -1030,12 +1029,12 @@ const at = Z(), rt = {
1030
1029
  this.setupSlicer();
1031
1030
  },
1032
1031
  validSlicerEnd(t) {
1033
- const n = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
1034
- return t > n ? n : t < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && t < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : t;
1032
+ const s = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
1033
+ return t > s ? s : t < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && t < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : t;
1035
1034
  },
1036
1035
  calcRectHeight(t) {
1037
- const n = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
1038
- return t.value >= 0 ? this.checkNaN(n - t.y <= 0 ? 1e-5 : n - t.y) : this.checkNaN(t.y - this.zero <= 0 ? 1e-5 : t.y - this.zero);
1036
+ const s = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
1037
+ return t.value >= 0 ? this.checkNaN(s - t.y <= 0 ? 1e-5 : s - t.y) : this.checkNaN(t.y - this.zero <= 0 ? 1e-5 : t.y - this.zero);
1039
1038
  },
1040
1039
  calcIndividualHeight(t) {
1041
1040
  return t.value >= 0 ? this.checkNaN(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : this.checkNaN(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
@@ -1055,11 +1054,11 @@ const at = Z(), rt = {
1055
1054
  canShowValue(t) {
1056
1055
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
1057
1056
  },
1058
- findClosestValue(t, n) {
1059
- let o = n[0], g = Math.abs(t - n[0]);
1060
- for (let l = 1; l < n.length; l += 1) {
1061
- const e = Math.abs(t - n[l]);
1062
- e < g && n[l] < t && (o = n[l], g = e);
1057
+ findClosestValue(t, s) {
1058
+ let o = s[0], g = Math.abs(t - s[0]);
1059
+ for (let l = 1; l < s.length; l += 1) {
1060
+ const e = Math.abs(t - s[l]);
1061
+ e < g && s[l] < t && (o = s[l], g = e);
1063
1062
  }
1064
1063
  return o;
1065
1064
  },
@@ -1070,11 +1069,11 @@ const at = Z(), rt = {
1070
1069
  this.$emit(
1071
1070
  "selectX",
1072
1071
  {
1073
- dataset: this.relativeDataset.map((n) => ({
1074
- name: n.name,
1075
- value: [null, void 0, NaN].includes(n.absoluteValues[t]) ? null : n.absoluteValues[t],
1076
- color: n.color,
1077
- type: n.type
1072
+ dataset: this.relativeDataset.map((s) => ({
1073
+ name: s.name,
1074
+ value: [null, void 0, NaN].includes(s.absoluteValues[t]) ? null : s.absoluteValues[t],
1075
+ color: s.color,
1076
+ type: s.type
1078
1077
  })),
1079
1078
  index: t,
1080
1079
  indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[t]
@@ -1091,20 +1090,20 @@ const at = Z(), rt = {
1091
1090
  },
1092
1091
  segregate(t) {
1093
1092
  if (this.segregatedSeries.includes(t.id))
1094
- this.segregatedSeries = this.segregatedSeries.filter((n) => n !== t.id);
1093
+ this.segregatedSeries = this.segregatedSeries.filter((s) => s !== t.id);
1095
1094
  else {
1096
1095
  if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
1097
1096
  this.segregatedSeries.push(t.id);
1098
1097
  }
1099
- this.$emit("selectLegend", this.relativeDataset.map((n) => ({
1100
- name: n.name,
1101
- values: n.absoluteValues,
1102
- color: n.color,
1103
- type: n.type
1098
+ this.$emit("selectLegend", this.relativeDataset.map((s) => ({
1099
+ name: s.name,
1100
+ values: s.absoluteValues,
1101
+ color: s.color,
1102
+ type: s.type
1104
1103
  }))), this.segregateStep += 1;
1105
1104
  },
1106
- toggleTooltipVisibility(t, n = null) {
1107
- this.isTooltip = t, t ? this.selectedSerieIndex = n : this.selectedSerieIndex = null;
1105
+ toggleTooltipVisibility(t, s = null) {
1106
+ this.isTooltip = t, t ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
1108
1107
  },
1109
1108
  toggleFullscreen(t) {
1110
1109
  this.isFullscreen = t, this.step += 1;
@@ -1115,7 +1114,7 @@ const at = Z(), rt = {
1115
1114
  async generatePdf() {
1116
1115
  this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1117
1116
  try {
1118
- const { default: t } = await import("./pdf-uTbs813M.js");
1117
+ const { default: t } = await import("./pdf-BfkyEFza.js");
1119
1118
  await t({
1120
1119
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1121
1120
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1129,7 +1128,7 @@ const at = Z(), rt = {
1129
1128
  }, 100);
1130
1129
  },
1131
1130
  generateCsv() {
1132
- const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], n = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, g = t.concat([n]).concat(o), l = this.createCsvContent(g);
1131
+ const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, g = t.concat([s]).concat(o), l = this.createCsvContent(g);
1133
1132
  this.downloadCsv({ csvContent: l, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
1134
1133
  },
1135
1134
  showSpinnerImage() {
@@ -1138,7 +1137,7 @@ const at = Z(), rt = {
1138
1137
  async generateImage() {
1139
1138
  this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1140
1139
  try {
1141
- const { default: t } = await import("./img-BN9AzqUr.js");
1140
+ const { default: t } = await import("./img-CEn9LJxg.js");
1142
1141
  await t({
1143
1142
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1144
1143
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1153,74 +1152,74 @@ const at = Z(), rt = {
1153
1152
  }, 100);
1154
1153
  }
1155
1154
  }
1156
- }, it = ["id"], st = {
1155
+ }, Ke = ["id"], Qe = {
1157
1156
  key: 1,
1158
1157
  ref: "noTitle",
1159
1158
  class: "vue-data-ui-no-title-space",
1160
1159
  style: "height:36px; width: 100%; background:transparent"
1161
- }, nt = ["viewBox", "aria-label"], ct = ["x", "y", "width", "height"], ot = { key: 1 }, ht = { class: "vue-ui-xy-grid" }, ut = ["stroke", "x1", "x2", "y1", "y2"], dt = ["stroke", "x1", "x2", "y1", "y2"], gt = { key: 1 }, ft = ["x1", "x2", "y1", "y2", "stroke"], It = ["x1", "x2", "y1", "y2", "stroke"], Nt = ["x1", "x2", "y1", "y2", "stroke"], mt = { key: 3 }, xt = ["x1", "x2", "y1", "y2", "stroke"], bt = ["id"], Ft = ["stop-color"], _t = ["stop-color"], yt = ["stop-color"], At = ["id"], Lt = ["stop-color"], Ct = ["stop-color"], St = ["stop-color"], kt = ["id"], wt = ["stop-color"], Ot = ["stop-color"], Gt = ["id"], vt = ["stop-color"], pt = ["stop-color"], zt = ["id"], Mt = ["stop-color"], Tt = ["stop-color"], Pt = ["x", "y", "height", "width", "fill"], Vt = ["x", "y", "width"], Rt = ["x", "y", "height", "width", "fill"], Ht = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Dt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Wt = ["width", "x", "y"], Bt = { key: 0 }, Et = ["id"], Yt = ["fill"], qt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Xt = ["x", "y", "font-size", "fill"], Ut = ["stroke", "x1", "x2", "y1", "y2"], Zt = { key: 2 }, Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Kt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Qt = { key: 4 }, jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $t = ["fill", "font-size", "transform"], el = ["x1", "x2", "y1", "y2", "stroke"], tl = ["x", "y", "font-size", "fill"], ll = ["x1", "x2", "y1", "y2", "stroke"], al = ["x", "y", "font-size", "fill"], rl = ["width", "x", "y"], il = { style: { width: "100%" } }, sl = { key: 0 }, nl = ["id"], cl = ["fill"], ol = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], hl = ["x", "y", "font-size", "fill"], ul = ["d", "stroke", "stroke-width", "stroke-dasharray"], dl = ["d", "stroke", "stroke-width", "stroke-dasharray"], gl = { key: 5 }, fl = { key: 0 }, Il = ["d", "fill"], Nl = ["d", "fill"], ml = ["d", "fill"], xl = ["d", "fill"], bl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fl = ["d", "stroke", "stroke-width", "stroke-dasharray"], _l = ["width", "x", "y"], yl = { style: { width: "100%" } }, Al = { key: 3 }, Ll = ["id"], Cl = ["fill"], Sl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], kl = ["x", "y", "font-size", "fill"], wl = { key: 6 }, Ol = ["x", "y", "font-size", "fill"], Gl = ["x", "y", "font-size", "fill", "font-weight"], vl = { key: 7 }, pl = ["x", "y", "font-size", "fill"], zl = { key: 8 }, Ml = ["x", "y"], Tl = ["innerHTML"], Pl = ["x", "y"], Vl = ["innerHTML"], Rl = ["x1", "x2", "y1", "y2", "stroke"], Hl = { key: 9 }, Dl = ["x", "y", "font-size", "fill"], Wl = { key: 10 }, Bl = ["x", "y"], El = ["innerHTML"], Yl = ["x", "y"], ql = ["innerHTML"], Xl = ["x1", "x2", "y1", "y2", "stroke"], Ul = ["x", "y", "font-size", "fill", "innerHTML"], Zl = ["x", "y", "font-size", "fill", "innerHTML"], Jl = ["x", "y", "font-size", "fill", "innerHTML"], Kl = ["x", "y", "font-size", "fill", "innerHTML"], Ql = ["id"], jl = ["stop-color"], $l = ["stop-color"], ea = ["x", "y", "width", "height", "fill", "onMouseenter"], ta = ["font-size", "fill", "transform"], la = ["x", "y", "font-size", "fill"], aa = { key: 12 }, ra = ["text-anchor", "font-size", "fill", "transform", "onClick"], ia = ["x", "y", "height", "width", "onMouseenter", "onClick"], sa = {
1160
+ }, je = ["viewBox", "aria-label"], $e = ["x", "y", "width", "height"], et = { key: 1 }, tt = { class: "vue-ui-xy-grid" }, lt = ["stroke", "x1", "x2", "y1", "y2"], rt = ["stroke", "x1", "x2", "y1", "y2"], at = { key: 1 }, it = ["x1", "x2", "y1", "y2", "stroke"], st = ["x1", "x2", "y1", "y2", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke"], ct = { key: 3 }, ot = ["x1", "x2", "y1", "y2", "stroke"], ht = ["id"], ut = ["stop-color"], dt = ["stop-color"], gt = ["stop-color"], ft = ["id"], It = ["stop-color"], Nt = ["stop-color"], mt = ["stop-color"], bt = ["id"], xt = ["stop-color"], Ft = ["stop-color"], _t = ["id"], yt = ["stop-color"], At = ["stop-color"], Lt = ["id"], Ct = ["stop-color"], St = ["stop-color"], kt = ["x", "y", "height", "width", "fill"], wt = ["x", "y", "width"], Ot = ["x", "y", "height", "width", "fill"], Gt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], pt = ["width", "x", "y"], zt = { key: 0 }, Mt = ["id"], Tt = ["fill"], Pt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Vt = ["x", "y", "font-size", "fill"], Rt = ["stroke", "x1", "x2", "y1", "y2"], Ht = { key: 2 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Et = { key: 4 }, Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = ["fill", "font-size", "transform"], qt = ["x1", "x2", "y1", "y2", "stroke"], Xt = ["x", "y", "font-size", "fill"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Zt = ["x", "y", "font-size", "fill"], Jt = ["width", "x", "y"], Kt = { style: { width: "100%" } }, Qt = { key: 0 }, jt = ["id"], $t = ["fill"], el = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], tl = ["x", "y", "font-size", "fill"], ll = ["d", "stroke", "stroke-width", "stroke-dasharray"], rl = ["d", "stroke", "stroke-width", "stroke-dasharray"], al = { key: 5 }, il = { key: 0 }, sl = ["d", "fill"], nl = ["d", "fill"], cl = ["d", "fill"], ol = ["d", "fill"], hl = ["d", "stroke", "stroke-width", "stroke-dasharray"], ul = ["d", "stroke", "stroke-width", "stroke-dasharray"], dl = ["width", "x", "y"], gl = { style: { width: "100%" } }, fl = { key: 3 }, Il = ["id"], Nl = ["fill"], ml = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], bl = ["x", "y", "font-size", "fill"], xl = { key: 6 }, Fl = ["x", "y", "font-size", "fill"], _l = ["x", "y", "font-size", "fill", "font-weight"], yl = { key: 7 }, Al = ["x", "y", "font-size", "fill"], Ll = { key: 8 }, Cl = ["x", "y"], Sl = ["innerHTML"], kl = ["x", "y"], wl = ["innerHTML"], Ol = ["x1", "x2", "y1", "y2", "stroke"], Gl = { key: 9 }, vl = ["x", "y", "font-size", "fill"], pl = { key: 10 }, zl = ["x", "y"], Ml = ["innerHTML"], Tl = ["x", "y"], Pl = ["innerHTML"], Vl = ["x1", "x2", "y1", "y2", "stroke"], Rl = ["x", "y", "font-size", "fill", "innerHTML"], Hl = ["x", "y", "font-size", "fill", "innerHTML"], Dl = ["x", "y", "font-size", "fill", "innerHTML"], Wl = ["x", "y", "font-size", "fill", "innerHTML"], El = ["id"], Bl = ["stop-color"], Yl = ["stop-color"], ql = ["x", "y", "width", "height", "fill", "onMouseenter"], Xl = ["font-size", "fill", "transform"], Ul = ["x", "y", "font-size", "fill"], Zl = { key: 12 }, Jl = ["text-anchor", "font-size", "fill", "transform", "onClick"], Kl = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ql = {
1162
1161
  key: 13,
1163
1162
  style: { "pointer-events": "none" }
1164
- }, na = ["x", "y"], ca = ["cx", "cy", "r", "fill"], oa = {
1163
+ }, jl = ["x", "y"], $l = ["cx", "cy", "r", "fill"], er = {
1165
1164
  key: 5,
1166
1165
  class: "vue-data-ui-watermark"
1167
- }, ha = {
1166
+ }, tr = {
1168
1167
  class: "vue-ui-xy-tag-arrow",
1169
1168
  height: "20",
1170
1169
  viewBox: "0 0 10 20",
1171
1170
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1172
- }, ua = ["fill"], da = ["innerHTML"], ga = {
1171
+ }, lr = ["fill"], rr = ["innerHTML"], ar = {
1173
1172
  class: "vue-ui-xy-tag-arrow",
1174
1173
  height: "100%",
1175
1174
  viewBox: "0 0 10 20",
1176
1175
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1177
- }, fa = ["fill"], Ia = ["innerHTML"], Na = {
1176
+ }, ir = ["fill"], sr = ["innerHTML"], nr = {
1178
1177
  class: "vue-ui-xy-tag-arrow",
1179
1178
  height: "20",
1180
1179
  viewBox: "0 0 10 20",
1181
1180
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1182
- }, ma = ["fill"], xa = ["innerHTML"], ba = {
1181
+ }, cr = ["fill"], or = ["innerHTML"], hr = {
1183
1182
  class: "vue-ui-xy-tag-arrow",
1184
1183
  height: "100%",
1185
1184
  viewBox: "0 0 10 20",
1186
1185
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1187
- }, Fa = ["fill"], _a = ["innerHTML"], ya = ["onClick"], Aa = {
1186
+ }, ur = ["fill"], dr = ["innerHTML"], gr = ["onClick"], fr = {
1188
1187
  key: 0,
1189
1188
  viewBox: "0 0 20 12",
1190
1189
  height: "14",
1191
1190
  width: "20"
1192
- }, La = ["stroke", "fill"], Ca = {
1191
+ }, Ir = ["stroke", "fill"], Nr = {
1193
1192
  key: 1,
1194
1193
  viewBox: "0 0 40 40",
1195
1194
  height: "14",
1196
1195
  width: "14"
1197
- }, Sa = ["fill"], ka = ["fill"], wa = {
1196
+ }, mr = ["fill"], br = ["fill"], xr = {
1198
1197
  key: 2,
1199
1198
  viewBox: "0 0 12 12",
1200
1199
  height: "14",
1201
1200
  width: "14"
1202
- }, Oa = {
1201
+ }, Fr = {
1203
1202
  key: 9,
1204
1203
  ref: "chartLegend"
1205
- }, Ga = {
1204
+ }, _r = {
1206
1205
  key: 10,
1207
1206
  ref: "source",
1208
1207
  dir: "auto"
1209
- }, va = {
1208
+ }, yr = {
1210
1209
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
1211
1210
  "data-dom-to-png-ignore": ""
1212
- }, pa = ["innerHTML"];
1213
- function za(t, n, o, g, l, e) {
1214
- const A = R("PenAndPaper"), x = R("Title"), N = R("UserOptions"), L = R("PackageVersion"), G = R("Shape"), k = R("Skeleton"), v = R("Slicer"), w = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), O = R("DataTable"), p = R("Accordion");
1215
- return r(), i("div", {
1211
+ }, Ar = ["innerHTML"];
1212
+ function Lr(t, s, o, g, l, e) {
1213
+ const A = R("PenAndPaper"), b = R("Title"), N = R("UserOptions"), L = R("PackageVersion"), v = R("Shape"), k = R("Skeleton"), w = R("Slicer"), O = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), G = R("DataTable"), p = R("Accordion");
1214
+ return a(), i("div", {
1216
1215
  id: `vue-ui-xy_${l.uniqueId}`,
1217
1216
  class: B(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
1218
1217
  ref: "chart",
1219
- style: b(`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%" : ""}`),
1220
- onMouseenter: n[7] || (n[7] = () => e.setUserOptionsVisibility(!0)),
1221
- onMouseleave: n[8] || (n[8] = () => e.setUserOptionsVisibility(!1))
1218
+ style: x(`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%" : ""}`),
1219
+ onMouseenter: s[7] || (s[7] = () => e.setUserOptionsVisibility(!0)),
1220
+ onMouseleave: s[8] || (s[8] = () => e.setUserOptionsVisibility(!1))
1222
1221
  }, [
1223
- e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (r(), W(A, {
1222
+ e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), E(A, {
1224
1223
  key: 0,
1225
1224
  svgRef: l.svgRef,
1226
1225
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1228,14 +1227,14 @@ function za(t, n, o, g, l, e) {
1228
1227
  active: l.isAnnotator,
1229
1228
  onClose: e.toggleAnnotator
1230
1229
  }, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : d("", !0),
1231
- e.hasOptionsNoTitle ? (r(), i("div", st, null, 512)) : d("", !0),
1232
- e.FINAL_CONFIG.chart.title.show ? (r(), i("div", {
1230
+ e.hasOptionsNoTitle ? (a(), i("div", Qe, null, 512)) : d("", !0),
1231
+ e.FINAL_CONFIG.chart.title.show ? (a(), i("div", {
1233
1232
  key: 2,
1234
1233
  ref: "chartTitle",
1235
1234
  class: "vue-ui-xy-title",
1236
- style: b(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1235
+ style: x(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1237
1236
  }, [
1238
- (r(), W(x, {
1237
+ (a(), E(b, {
1239
1238
  key: `title_${l.titleStep}`,
1240
1239
  config: {
1241
1240
  title: {
@@ -1249,7 +1248,7 @@ function za(t, n, o, g, l, e) {
1249
1248
  }
1250
1249
  }, null, 8, ["config"]))
1251
1250
  ], 4)) : d("", !0),
1252
- e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (r(), W(N, {
1251
+ e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (a(), E(N, {
1253
1252
  ref: "defails",
1254
1253
  key: `user_options_${l.step}`,
1255
1254
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1282,14 +1281,14 @@ function za(t, n, o, g, l, e) {
1282
1281
  onToggleStack: e.toggleStack,
1283
1282
  onToggleTooltip: e.toggleTooltip,
1284
1283
  onToggleAnnotator: e.toggleAnnotator,
1285
- style: b({
1284
+ style: x({
1286
1285
  visibility: l.keepUserOptionState ? l.userOptionsVisible ? "visible" : "hidden" : "visible"
1287
1286
  })
1288
- }, $e({ _: 2 }, [
1287
+ }, Ye({ _: 2 }, [
1289
1288
  t.$slots.menuIcon ? {
1290
1289
  name: "menuIcon",
1291
- fn: V(({ isOpen: a, color: c }) => [
1292
- S(t.$slots, "menuIcon", E(Y({ isOpen: a, color: c })), void 0, !0)
1290
+ fn: V(({ isOpen: r, color: c }) => [
1291
+ S(t.$slots, "menuIcon", Y(q({ isOpen: r, color: c })), void 0, !0)
1293
1292
  ]),
1294
1293
  key: "0"
1295
1294
  } : void 0,
@@ -1344,33 +1343,33 @@ function za(t, n, o, g, l, e) {
1344
1343
  } : void 0,
1345
1344
  t.$slots.optionFullscreen ? {
1346
1345
  name: "optionFullscreen",
1347
- fn: V(({ toggleFullscreen: a, isFullscreen: c }) => [
1348
- S(t.$slots, "optionFullscreen", E(Y({ toggleFullscreen: a, isFullscreen: c })), void 0, !0)
1346
+ fn: V(({ toggleFullscreen: r, isFullscreen: c }) => [
1347
+ S(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: r, isFullscreen: c })), void 0, !0)
1349
1348
  ]),
1350
1349
  key: "8"
1351
1350
  } : void 0,
1352
1351
  t.$slots.optionAnnotator ? {
1353
1352
  name: "optionAnnotator",
1354
- fn: V(({ toggleAnnotator: a, isAnnotator: c }) => [
1355
- S(t.$slots, "optionAnnotator", E(Y({ toggleAnnotator: a, isAnnotator: c })), void 0, !0)
1353
+ fn: V(({ toggleAnnotator: r, isAnnotator: c }) => [
1354
+ S(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: r, isAnnotator: c })), void 0, !0)
1356
1355
  ]),
1357
1356
  key: "9"
1358
1357
  } : void 0
1359
1358
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : d("", !0),
1360
- e.isDataset ? (r(), i("svg", {
1359
+ e.isDataset ? (a(), i("svg", {
1361
1360
  key: 4,
1362
1361
  ref: "svgRef",
1363
1362
  xmlns: "http://www.w3.org/2000/svg",
1364
1363
  class: B([{ "vue-data-ui-fullscreen--on": l.isFullscreen, "vue-data-ui-fulscreen--off": !l.isFullscreen }, "vue-ui-xy-svg"]),
1365
1364
  width: "100%",
1366
1365
  viewBox: l.viewBox,
1367
- style: b(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
1366
+ style: x(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
1368
1367
  "aria-label": e.chartAriaLabel,
1369
1368
  role: "img",
1370
1369
  "aria-live": "polite"
1371
1370
  }, [
1372
- X(L),
1373
- t.$slots["chart-background"] ? (r(), i("foreignObject", {
1371
+ U(L),
1372
+ t.$slots["chart-background"] ? (a(), i("foreignObject", {
1374
1373
  key: 0,
1375
1374
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
1376
1375
  y: e.drawingArea.top,
@@ -1381,10 +1380,10 @@ function za(t, n, o, g, l, e) {
1381
1380
  }
1382
1381
  }, [
1383
1382
  S(t.$slots, "chart-background", {}, void 0, !0)
1384
- ], 8, ct)) : d("", !0),
1385
- e.maxSeries > 0 ? (r(), i("g", ot, [
1386
- f("g", ht, [
1387
- e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), i("line", {
1383
+ ], 8, $e)) : d("", !0),
1384
+ e.maxSeries > 0 ? (a(), i("g", et, [
1385
+ f("g", tt, [
1386
+ e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), i("line", {
1388
1387
  key: 0,
1389
1388
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1390
1389
  "stroke-width": "1",
@@ -1393,17 +1392,17 @@ function za(t, n, o, g, l, e) {
1393
1392
  y1: e.forceValidValue(e.drawingArea.bottom),
1394
1393
  y2: e.forceValidValue(e.drawingArea.bottom),
1395
1394
  "stroke-linecap": "round"
1396
- }, null, 8, ut)) : d("", !0),
1397
- l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), i(u, { key: 2 }, I(e.allScales, (a) => (r(), i("g", null, [
1398
- a.id === l.selectedScale && a.yLabels.length ? (r(!0), i(u, { key: 0 }, I(a.yLabels, (c) => (r(), i("line", {
1395
+ }, null, 8, lt)) : d("", !0),
1396
+ l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), i(u, { key: 2 }, I(e.allScales, (r) => (a(), i("g", null, [
1397
+ r.id === l.selectedScale && r.yLabels.length ? (a(!0), i(u, { key: 0 }, I(r.yLabels, (c) => (a(), i("line", {
1399
1398
  x1: e.drawingArea.left + e.xPadding,
1400
1399
  x2: e.drawingArea.right - e.xPadding,
1401
1400
  y1: e.forceValidValue(c.y),
1402
1401
  y2: e.forceValidValue(c.y),
1403
- stroke: a.color,
1402
+ stroke: r.color,
1404
1403
  "stroke-width": 0.5,
1405
1404
  "stroke-linecap": "round"
1406
- }, null, 8, It))), 256)) : a.yLabels.length ? (r(!0), i(u, { key: 1 }, I(a.yLabels, (c) => (r(), i("line", {
1405
+ }, null, 8, st))), 256)) : r.yLabels.length ? (a(!0), i(u, { key: 1 }, I(r.yLabels, (c) => (a(), i("line", {
1407
1406
  x1: e.drawingArea.left + e.xPadding,
1408
1407
  x2: e.drawingArea.right - e.xPadding,
1409
1408
  y1: e.forceValidValue(c.y),
@@ -1411,9 +1410,9 @@ function za(t, n, o, g, l, e) {
1411
1410
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1412
1411
  "stroke-width": 0.5,
1413
1412
  "stroke-linecap": "round"
1414
- }, null, 8, Nt))), 256)) : d("", !0)
1415
- ]))), 256)) : d("", !0) : (r(), i(u, { key: 1 }, [
1416
- e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (r(), i("line", {
1413
+ }, null, 8, nt))), 256)) : d("", !0)
1414
+ ]))), 256)) : d("", !0) : (a(), i(u, { key: 1 }, [
1415
+ e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), i("line", {
1417
1416
  key: 0,
1418
1417
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1419
1418
  "stroke-width": "1",
@@ -1422,21 +1421,21 @@ function za(t, n, o, g, l, e) {
1422
1421
  y1: e.forceValidValue(e.drawingArea.top),
1423
1422
  y2: e.forceValidValue(e.drawingArea.bottom),
1424
1423
  "stroke-linecap": "round"
1425
- }, null, 8, dt)) : d("", !0),
1426
- e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), i("g", gt, [
1427
- (r(!0), i(u, null, I(e.yLabels, (a) => (r(), i("line", {
1424
+ }, null, 8, rt)) : d("", !0),
1425
+ e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), i("g", at, [
1426
+ (a(!0), i(u, null, I(e.yLabels, (r) => (a(), i("line", {
1428
1427
  x1: e.drawingArea.left + e.xPadding,
1429
1428
  x2: e.drawingArea.right - e.xPadding,
1430
- y1: e.forceValidValue(a.y),
1431
- y2: e.forceValidValue(a.y),
1429
+ y1: e.forceValidValue(r.y),
1430
+ y2: e.forceValidValue(r.y),
1432
1431
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1433
1432
  "stroke-width": 0.5,
1434
1433
  "stroke-linecap": "round"
1435
- }, null, 8, ft))), 256))
1434
+ }, null, 8, it))), 256))
1436
1435
  ])) : d("", !0)
1437
1436
  ], 64)),
1438
- e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), i("g", mt, [
1439
- (r(!0), i(u, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a, c) => (r(), i("line", {
1437
+ e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), i("g", ct, [
1438
+ (a(!0), i(u, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (r, c) => (a(), i("line", {
1440
1439
  key: `grid_vertical_line_${c}`,
1441
1440
  x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
1442
1441
  x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
@@ -1444,10 +1443,10 @@ function za(t, n, o, g, l, e) {
1444
1443
  y2: e.forceValidValue(e.drawingArea.bottom),
1445
1444
  "stroke-width": "0.5",
1446
1445
  stroke: e.FINAL_CONFIG.chart.grid.stroke
1447
- }, null, 8, xt))), 128))
1446
+ }, null, 8, ot))), 128))
1448
1447
  ])) : d("", !0)
1449
1448
  ]),
1450
- (r(!0), i(u, null, I(e.barSet, (a, c) => (r(), i("defs", {
1449
+ (a(!0), i(u, null, I(e.barSet, (r, c) => (a(), i("defs", {
1451
1450
  key: `def_rect_${c}`
1452
1451
  }, [
1453
1452
  f("linearGradient", {
@@ -1457,17 +1456,17 @@ function za(t, n, o, g, l, e) {
1457
1456
  }, [
1458
1457
  f("stop", {
1459
1458
  offset: "0%",
1460
- "stop-color": a.color
1461
- }, null, 8, Ft),
1459
+ "stop-color": r.color
1460
+ }, null, 8, ut),
1462
1461
  f("stop", {
1463
1462
  offset: "62%",
1464
- "stop-color": `${e.shiftHue(a.color, 0.02)}`
1465
- }, null, 8, _t),
1463
+ "stop-color": `${e.shiftHue(r.color, 0.02)}`
1464
+ }, null, 8, dt),
1466
1465
  f("stop", {
1467
1466
  offset: "100%",
1468
- "stop-color": `${e.shiftHue(a.color, 0.05)}`
1469
- }, null, 8, yt)
1470
- ], 8, bt),
1467
+ "stop-color": `${e.shiftHue(r.color, 0.05)}`
1468
+ }, null, 8, gt)
1469
+ ], 8, ht),
1471
1470
  f("linearGradient", {
1472
1471
  id: `rectGradient_neg_${c}_${l.uniqueId}`,
1473
1472
  x2: "0%",
@@ -1475,19 +1474,19 @@ function za(t, n, o, g, l, e) {
1475
1474
  }, [
1476
1475
  f("stop", {
1477
1476
  offset: "0%",
1478
- "stop-color": `${e.shiftHue(a.color, 0.05)}`
1479
- }, null, 8, Lt),
1477
+ "stop-color": `${e.shiftHue(r.color, 0.05)}`
1478
+ }, null, 8, It),
1480
1479
  f("stop", {
1481
1480
  offset: "38%",
1482
- "stop-color": `${e.shiftHue(a.color, 0.02)}`
1483
- }, null, 8, Ct),
1481
+ "stop-color": `${e.shiftHue(r.color, 0.02)}`
1482
+ }, null, 8, Nt),
1484
1483
  f("stop", {
1485
1484
  offset: "100%",
1486
- "stop-color": a.color
1487
- }, null, 8, St)
1488
- ], 8, At)
1485
+ "stop-color": r.color
1486
+ }, null, 8, mt)
1487
+ ], 8, ft)
1489
1488
  ]))), 128)),
1490
- (r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i("defs", {
1489
+ (a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i("defs", {
1491
1490
  key: `def_plot_${c}`
1492
1491
  }, [
1493
1492
  f("radialGradient", {
@@ -1500,15 +1499,15 @@ function za(t, n, o, g, l, e) {
1500
1499
  }, [
1501
1500
  f("stop", {
1502
1501
  offset: "0%",
1503
- "stop-color": `${e.shiftHue(a.color, 0.05)}`
1504
- }, null, 8, wt),
1502
+ "stop-color": `${e.shiftHue(r.color, 0.05)}`
1503
+ }, null, 8, xt),
1505
1504
  f("stop", {
1506
1505
  offset: "100%",
1507
- "stop-color": a.color
1508
- }, null, 8, Ot)
1509
- ], 8, kt)
1506
+ "stop-color": r.color
1507
+ }, null, 8, Ft)
1508
+ ], 8, bt)
1510
1509
  ]))), 128)),
1511
- (r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i("defs", {
1510
+ (a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i("defs", {
1512
1511
  key: `def_line_${c}`
1513
1512
  }, [
1514
1513
  f("radialGradient", {
@@ -1521,13 +1520,13 @@ function za(t, n, o, g, l, e) {
1521
1520
  }, [
1522
1521
  f("stop", {
1523
1522
  offset: "0%",
1524
- "stop-color": `${e.shiftHue(a.color, 0.05)}`
1525
- }, null, 8, vt),
1523
+ "stop-color": `${e.shiftHue(r.color, 0.05)}`
1524
+ }, null, 8, yt),
1526
1525
  f("stop", {
1527
1526
  offset: "100%",
1528
- "stop-color": a.color
1529
- }, null, 8, pt)
1530
- ], 8, Gt),
1527
+ "stop-color": r.color
1528
+ }, null, 8, At)
1529
+ ], 8, _t),
1531
1530
  f("linearGradient", {
1532
1531
  id: `areaGradient_${c}_${l.uniqueId}`,
1533
1532
  x1: "0%",
@@ -1537,46 +1536,46 @@ function za(t, n, o, g, l, e) {
1537
1536
  }, [
1538
1537
  f("stop", {
1539
1538
  offset: "0%",
1540
- "stop-color": `${e.setOpacity(e.shiftHue(a.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
1541
- }, null, 8, Mt),
1539
+ "stop-color": `${e.setOpacity(e.shiftHue(r.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
1540
+ }, null, 8, Ct),
1542
1541
  f("stop", {
1543
1542
  offset: "100%",
1544
- "stop-color": `${e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)}`
1545
- }, null, 8, Tt)
1546
- ], 8, zt)
1543
+ "stop-color": `${e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)}`
1544
+ }, null, 8, St)
1545
+ ], 8, Lt)
1547
1546
  ]))), 128)),
1548
- (r(!0), i(u, null, I(e.highlightAreas, (a) => (r(), i("g", null, [
1549
- a.show ? (r(!0), i(u, { key: 0 }, I(a.span, (c, s) => (r(), i("g", null, [
1547
+ (a(!0), i(u, null, I(e.highlightAreas, (r) => (a(), i("g", null, [
1548
+ r.show ? (a(!0), i(u, { key: 0 }, I(r.span, (c, n) => (a(), i("g", null, [
1550
1549
  f("rect", {
1551
- style: b({
1550
+ style: x({
1552
1551
  transition: "none",
1553
- opacity: a.from + s >= l.slicer.start && a.from + s <= l.slicer.end - 1 ? 1 : 0
1552
+ opacity: r.from + n >= l.slicer.start && r.from + n <= l.slicer.end - 1 ? 1 : 0
1554
1553
  }),
1555
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from + s - l.slicer.start),
1554
+ x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (r.from + n - l.slicer.start),
1556
1555
  y: e.drawingArea.top,
1557
1556
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1558
1557
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1559
- fill: e.setOpacity(a.color, a.opacity)
1560
- }, null, 12, Pt),
1561
- a.caption.text && s === 0 ? (r(), i("foreignObject", {
1558
+ fill: e.setOpacity(r.color, r.opacity)
1559
+ }, null, 12, kt),
1560
+ r.caption.text && n === 0 ? (a(), i("foreignObject", {
1562
1561
  key: 0,
1563
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from + s - l.slicer.start) - (a.caption.width === "auto" ? 0 : a.caption.width / 2 - e.drawingArea.width / e.maxSeries * a.span / 2),
1564
- y: e.drawingArea.top + a.caption.offsetY,
1565
- style: b({
1562
+ x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (r.from + n - l.slicer.start) - (r.caption.width === "auto" ? 0 : r.caption.width / 2 - e.drawingArea.width / e.maxSeries * r.span / 2),
1563
+ y: e.drawingArea.top + r.caption.offsetY,
1564
+ style: x({
1566
1565
  overflow: "visible",
1567
- opacity: a.to >= l.slicer.start && a.from < l.slicer.end ? 1 : 0
1566
+ opacity: r.to >= l.slicer.start && r.from < l.slicer.end ? 1 : 0
1568
1567
  }),
1569
1568
  height: "1",
1570
- width: a.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * a.span : a.caption.width
1569
+ width: r.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * r.span : r.caption.width
1571
1570
  }, [
1572
1571
  f("div", {
1573
- style: b(`padding:${a.caption.padding}px;text-align:${a.caption.textAlign};font-size:${a.caption.fontSize}px;color:${a.caption.color};font-weight:${a.caption.bold ? "bold" : "normal"}`)
1574
- }, T(a.caption.text), 5)
1575
- ], 12, Vt)) : d("", !0)
1572
+ style: x(`padding:${r.caption.padding}px;text-align:${r.caption.textAlign};font-size:${r.caption.fontSize}px;color:${r.caption.color};font-weight:${r.caption.bold ? "bold" : "normal"}`)
1573
+ }, T(r.caption.text), 5)
1574
+ ], 12, wt)) : d("", !0)
1576
1575
  ]))), 256)) : d("", !0)
1577
1576
  ]))), 256)),
1578
1577
  f("g", null, [
1579
- (r(!0), i(u, null, I(e.maxSeries, (a, c) => (r(), i("g", {
1578
+ (a(!0), i(u, null, I(e.maxSeries, (r, c) => (a(), i("g", {
1580
1579
  key: `tooltip_trap_highlighter_${c}`
1581
1580
  }, [
1582
1581
  f("rect", {
@@ -1585,53 +1584,53 @@ function za(t, n, o, g, l, e) {
1585
1584
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1586
1585
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1587
1586
  fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(c) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
1588
- }, null, 8, Rt)
1587
+ }, null, 8, Ot)
1589
1588
  ]))), 128))
1590
1589
  ]),
1591
- e.barSet.length ? (r(!0), i(u, { key: 0 }, I(e.barSet, (a, c) => (r(), i("g", {
1590
+ e.barSet.length ? (a(!0), i(u, { key: 0 }, I(e.barSet, (r, c) => (a(), i("g", {
1592
1591
  key: `serie_bar_${c}`,
1593
1592
  class: B(`serie_bar_${c}`),
1594
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1593
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1595
1594
  }, [
1596
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i("g", {
1595
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i("g", {
1597
1596
  key: `bar_plot_${c}_${h}`
1598
1597
  }, [
1599
- e.canShowValue(s.value) ? (r(), i("rect", {
1598
+ e.canShowValue(n.value) ? (a(), i("rect", {
1600
1599
  key: 0,
1601
- x: e.calcRectX(s),
1602
- y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(s) : e.calcRectY(s),
1603
- height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
1600
+ x: e.calcRectX(n),
1601
+ y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
1602
+ height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
1604
1603
  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),
1605
1604
  rx: e.FINAL_CONFIG.bar.borderRadius,
1606
- fill: e.FINAL_CONFIG.bar.useGradient ? s.value >= 0 ? `url(#rectGradient_pos_${c}_${l.uniqueId})` : `url(#rectGradient_neg_${c}_${l.uniqueId})` : a.color,
1607
- stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
1605
+ fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${l.uniqueId})` : `url(#rectGradient_neg_${c}_${l.uniqueId})` : r.color,
1606
+ stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? r.color : e.FINAL_CONFIG.bar.border.stroke,
1608
1607
  "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1609
- }, null, 8, Ht)) : d("", !0),
1610
- e.canShowValue(s.value) && t.$slots.pattern ? (r(), i("rect", {
1608
+ }, null, 8, Gt)) : d("", !0),
1609
+ e.canShowValue(n.value) && t.$slots.pattern ? (a(), i("rect", {
1611
1610
  key: 1,
1612
- x: e.calcRectX(s),
1613
- y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(s) : e.calcRectY(s),
1614
- height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
1611
+ x: e.calcRectX(n),
1612
+ y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
1613
+ height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
1615
1614
  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),
1616
1615
  rx: e.FINAL_CONFIG.bar.borderRadius,
1617
- fill: `url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`,
1618
- stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
1616
+ fill: `url(#pattern_${l.uniqueId}_${r.slotAbsoluteIndex})`,
1617
+ stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? r.color : e.FINAL_CONFIG.bar.border.stroke,
1619
1618
  "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1620
- }, null, 8, Dt)) : d("", !0),
1621
- s.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
1619
+ }, null, 8, vt)) : d("", !0),
1620
+ n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
1622
1621
  key: 2,
1623
1622
  style: { overflow: "visible" },
1624
1623
  height: "12",
1625
1624
  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) / 2) + e.FINAL_CONFIG.chart.comments.width,
1626
- x: e.calcRectX(s) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1627
- y: e.checkNaN(s.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
1625
+ x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1626
+ y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
1628
1627
  }, [
1629
1628
  S(t.$slots, "plot-comment", {
1630
- plot: { ...s, color: a.color, seriesIndex: c, datapointIndex: h }
1629
+ plot: { ...n, color: r.color, seriesIndex: c, datapointIndex: h }
1631
1630
  }, void 0, !0)
1632
- ], 8, Wt)) : d("", !0)
1631
+ ], 8, pt)) : d("", !0)
1633
1632
  ]))), 128)),
1634
- Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", Bt, [
1633
+ Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), i("g", zt, [
1635
1634
  f("defs", null, [
1636
1635
  f("marker", {
1637
1636
  id: `bar_arrow_${c}`,
@@ -1643,36 +1642,36 @@ function za(t, n, o, g, l, e) {
1643
1642
  }, [
1644
1643
  f("polygon", {
1645
1644
  points: `0 0, 7 ${7 / 2}, 0 7`,
1646
- fill: a.color
1647
- }, null, 8, Yt)
1648
- ], 8, Et)
1645
+ fill: r.color
1646
+ }, null, 8, Tt)
1647
+ ], 8, Mt)
1649
1648
  ]),
1650
- a.plots.length > 1 ? (r(), i("line", {
1649
+ r.plots.length > 1 ? (a(), i("line", {
1651
1650
  key: 0,
1652
- x1: e.calcLinearProgression(a.plots).x1 + e.calcRectWidth(),
1653
- x2: e.calcLinearProgression(a.plots).x2 + e.calcRectWidth(),
1654
- y1: e.forceValidValue(e.calcLinearProgression(a.plots).y1),
1655
- y2: e.forceValidValue(e.calcLinearProgression(a.plots).y2),
1651
+ x1: e.calcLinearProgression(r.plots).x1 + e.calcRectWidth(),
1652
+ x2: e.calcLinearProgression(r.plots).x2 + e.calcRectWidth(),
1653
+ y1: e.forceValidValue(e.calcLinearProgression(r.plots).y1),
1654
+ y2: e.forceValidValue(e.calcLinearProgression(r.plots).y2),
1656
1655
  "stroke-width": 1,
1657
- stroke: a.color,
1656
+ stroke: r.color,
1658
1657
  "stroke-dasharray": 2,
1659
1658
  "marker-end": `url(#bar_arrow_${c})`
1660
- }, null, 8, qt)) : d("", !0),
1661
- a.plots.length > 1 ? (r(), i("text", {
1659
+ }, null, 8, Pt)) : d("", !0),
1660
+ r.plots.length > 1 ? (a(), i("text", {
1662
1661
  key: 1,
1663
1662
  "text-anchor": "middle",
1664
- x: e.calcLinearProgression(a.plots).x2 + e.calcRectWidth(),
1665
- y: e.calcLinearProgression(a.plots).y2 - 6,
1663
+ x: e.calcLinearProgression(r.plots).x2 + e.calcRectWidth(),
1664
+ y: e.calcLinearProgression(r.plots).y2 - 6,
1666
1665
  "font-size": l.fontSizes.plotLabels,
1667
- fill: a.color
1666
+ fill: r.color
1668
1667
  }, T(e.dataLabel({
1669
- v: e.calcLinearProgression(a.plots).trend * 100,
1668
+ v: e.calcLinearProgression(r.plots).trend * 100,
1670
1669
  s: "%",
1671
1670
  r: 2
1672
- })), 9, Xt)) : d("", !0)
1671
+ })), 9, Vt)) : d("", !0)
1673
1672
  ])) : d("", !0)
1674
1673
  ], 6))), 128)) : d("", !0),
1675
- !l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (r(), i("line", {
1674
+ !l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), i("line", {
1676
1675
  key: 1,
1677
1676
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1678
1677
  "stroke-width": "1",
@@ -1681,8 +1680,8 @@ function za(t, n, o, g, l, e) {
1681
1680
  y1: e.forceValidValue(e.zero),
1682
1681
  y2: e.forceValidValue(e.zero),
1683
1682
  "stroke-linecap": "round"
1684
- }, null, 8, Ut)) : d("", !0),
1685
- e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), i("g", Zt, [
1683
+ }, null, 8, Rt)) : d("", !0),
1684
+ e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), i("g", Ht, [
1686
1685
  f("line", {
1687
1686
  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,
1688
1687
  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,
@@ -1693,9 +1692,9 @@ function za(t, n, o, g, l, e) {
1693
1692
  "stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
1694
1693
  "stroke-linecap": "round",
1695
1694
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1696
- }, null, 8, Jt)
1695
+ }, null, 8, Dt)
1697
1696
  ])) : d("", !0),
1698
- e.FINAL_CONFIG.chart.grid.frame.show ? (r(), i("rect", {
1697
+ e.FINAL_CONFIG.chart.grid.frame.show ? (a(), i("rect", {
1699
1698
  key: 3,
1700
1699
  style: { pointerEvents: "none", transition: "none" },
1701
1700
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
@@ -1708,45 +1707,45 @@ function za(t, n, o, g, l, e) {
1708
1707
  "stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
1709
1708
  "stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
1710
1709
  "stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
1711
- }, null, 8, Kt)) : d("", !0),
1712
- e.FINAL_CONFIG.chart.grid.labels.show ? (r(), i("g", Qt, [
1713
- l.mutableConfig.useIndividualScale ? (r(), i(u, { key: 0 }, [
1714
- (r(!0), i(u, null, I(e.allScales, (a) => (r(), i("g", null, [
1710
+ }, null, 8, Wt)) : d("", !0),
1711
+ e.FINAL_CONFIG.chart.grid.labels.show ? (a(), i("g", Et, [
1712
+ l.mutableConfig.useIndividualScale ? (a(), i(u, { key: 0 }, [
1713
+ (a(!0), i(u, null, I(e.allScales, (r) => (a(), i("g", null, [
1715
1714
  f("line", {
1716
- x1: a.x + e.xPadding,
1717
- x2: a.x + e.xPadding,
1718
- y1: l.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - a.yOffset - a.individualHeight) : e.forceValidValue(e.drawingArea.top),
1719
- y2: l.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - a.yOffset) : e.forceValidValue(e.drawingArea.bottom),
1720
- stroke: a.color,
1715
+ x1: r.x + e.xPadding,
1716
+ x2: r.x + e.xPadding,
1717
+ y1: l.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - r.yOffset - r.individualHeight) : e.forceValidValue(e.drawingArea.top),
1718
+ y2: l.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - r.yOffset) : e.forceValidValue(e.drawingArea.bottom),
1719
+ stroke: r.color,
1721
1720
  "stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
1722
1721
  "stroke-linecap": "round",
1723
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1724
- }, null, 12, jt)
1722
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1723
+ }, null, 12, Bt)
1725
1724
  ]))), 256)),
1726
- (r(!0), i(u, null, I(e.allScales, (a) => (r(), i("g", {
1727
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1725
+ (a(!0), i(u, null, I(e.allScales, (r) => (a(), i("g", {
1726
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1728
1727
  }, [
1729
1728
  f("text", {
1730
- fill: a.color,
1729
+ fill: r.color,
1731
1730
  "font-size": l.fontSizes.dataLabels,
1732
1731
  "text-anchor": "middle",
1733
- transform: `translate(${a.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 - a.yOffset - a.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
1734
- }, T(a.name) + " " + T(a.scaleLabel && a.unique && a.scaleLabel !== a.id ? `- ${a.scaleLabel}` : ""), 9, $t),
1735
- (r(!0), i(u, null, I(a.yLabels, (c, s) => (r(), i("line", {
1736
- x1: a.x - 3 + e.xPadding,
1737
- x2: a.x + e.xPadding,
1732
+ transform: `translate(${r.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 - r.yOffset - r.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
1733
+ }, T(r.name) + " " + T(r.scaleLabel && r.unique && r.scaleLabel !== r.id ? `- ${r.scaleLabel}` : ""), 9, Yt),
1734
+ (a(!0), i(u, null, I(r.yLabels, (c, n) => (a(), i("line", {
1735
+ x1: r.x - 3 + e.xPadding,
1736
+ x2: r.x + e.xPadding,
1738
1737
  y1: e.forceValidValue(c.y),
1739
1738
  y2: e.forceValidValue(c.y),
1740
- stroke: a.color,
1739
+ stroke: r.color,
1741
1740
  "stroke-width": 1,
1742
1741
  "stroke-linecap": "round"
1743
- }, null, 8, el))), 256)),
1744
- (r(!0), i(u, null, I(a.yLabels, (c, s) => (r(), i("text", {
1745
- x: a.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
1742
+ }, null, 8, qt))), 256)),
1743
+ (a(!0), i(u, null, I(r.yLabels, (c, n) => (a(), i("text", {
1744
+ x: r.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
1746
1745
  y: e.forceValidValue(c.y) + l.fontSizes.dataLabels / 3,
1747
1746
  "font-size": l.fontSizes.dataLabels,
1748
1747
  "text-anchor": "end",
1749
- fill: a.color
1748
+ fill: r.color
1750
1749
  }, T(e.applyDataLabel(
1751
1750
  e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
1752
1751
  c.value,
@@ -1756,74 +1755,74 @@ function za(t, n, o, g, l, e) {
1756
1755
  s: c.suffix,
1757
1756
  r: 1
1758
1757
  }),
1759
- { datapoint: c.datapoint, seriesIndex: s }
1760
- )), 9, tl))), 256))
1758
+ { datapoint: c.datapoint, seriesIndex: n }
1759
+ )), 9, Xt))), 256))
1761
1760
  ], 4))), 256))
1762
- ], 64)) : (r(!0), i(u, { key: 1 }, I(e.yLabels, (a, c) => (r(), i("g", {
1761
+ ], 64)) : (a(!0), i(u, { key: 1 }, I(e.yLabels, (r, c) => (a(), i("g", {
1763
1762
  key: `yLabel_${c}`
1764
1763
  }, [
1765
- e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("line", {
1764
+ e.canShowValue(r) && r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), i("line", {
1766
1765
  key: 0,
1767
1766
  x1: e.drawingArea.left + e.xPadding,
1768
1767
  x2: e.drawingArea.left - 5 + e.xPadding,
1769
- y1: e.forceValidValue(a.y),
1770
- y2: e.forceValidValue(a.y),
1768
+ y1: e.forceValidValue(r.y),
1769
+ y2: e.forceValidValue(r.y),
1771
1770
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1772
1771
  "stroke-width": "1",
1773
1772
  "stroke-linecap": "round"
1774
- }, null, 8, ll)) : d("", !0),
1775
- a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("text", {
1773
+ }, null, 8, Ut)) : d("", !0),
1774
+ r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), i("text", {
1776
1775
  key: 1,
1777
1776
  x: e.drawingArea.left - 7 + e.xPadding,
1778
- y: e.checkNaN(a.y + l.fontSizes.dataLabels / 3),
1777
+ y: e.checkNaN(r.y + l.fontSizes.dataLabels / 3),
1779
1778
  "font-size": l.fontSizes.dataLabels,
1780
1779
  "text-anchor": "end",
1781
1780
  fill: e.FINAL_CONFIG.chart.grid.labels.color
1782
- }, T(e.canShowValue(a.value) ? e.applyDataLabel(
1781
+ }, T(e.canShowValue(r.value) ? e.applyDataLabel(
1783
1782
  e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
1784
- a.value,
1783
+ r.value,
1785
1784
  e.dataLabel({
1786
- p: a.prefix,
1787
- v: a.value,
1788
- s: a.suffix,
1785
+ p: r.prefix,
1786
+ v: r.value,
1787
+ s: r.suffix,
1789
1788
  r: 1
1790
1789
  })
1791
- ) : ""), 9, al)) : d("", !0)
1790
+ ) : ""), 9, Zt)) : d("", !0)
1792
1791
  ]))), 128))
1793
1792
  ])) : d("", !0),
1794
- (r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i("g", {
1793
+ (a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i("g", {
1795
1794
  key: `serie_plot_${c}`,
1796
1795
  class: B(`serie_plot_${c}`),
1797
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1796
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1798
1797
  }, [
1799
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i("g", {
1798
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i("g", {
1800
1799
  key: `circle_plot_${c}_${h}`
1801
1800
  }, [
1802
- s && e.canShowValue(s.value) ? (r(), W(G, {
1801
+ n && e.canShowValue(n.value) ? (a(), E(v, {
1803
1802
  key: 0,
1804
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
1805
- color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? a.color : e.FINAL_CONFIG.plot.dot.fill,
1806
- plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
1803
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
1804
+ color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? r.color : e.FINAL_CONFIG.plot.dot.fill,
1805
+ plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
1807
1806
  radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
1808
- stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
1807
+ stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
1809
1808
  strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
1810
1809
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
1811
- s.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
1810
+ n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
1812
1811
  key: 1,
1813
1812
  style: { overflow: "visible" },
1814
1813
  height: "12",
1815
1814
  width: e.FINAL_CONFIG.chart.comments.width,
1816
- x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1817
- y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1815
+ x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1816
+ y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1818
1817
  }, [
1819
- f("div", il, [
1818
+ f("div", Kt, [
1820
1819
  S(t.$slots, "plot-comment", {
1821
- plot: { ...s, color: a.color, seriesIndex: c, datapointIndex: h }
1820
+ plot: { ...n, color: r.color, seriesIndex: c, datapointIndex: h }
1822
1821
  }, void 0, !0)
1823
1822
  ])
1824
- ], 8, rl)) : d("", !0)
1823
+ ], 8, Jt)) : d("", !0)
1825
1824
  ]))), 128)),
1826
- Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", sl, [
1825
+ Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), i("g", Qt, [
1827
1826
  f("defs", null, [
1828
1827
  f("marker", {
1829
1828
  id: `plot_arrow_${c}`,
@@ -1835,137 +1834,137 @@ function za(t, n, o, g, l, e) {
1835
1834
  }, [
1836
1835
  f("polygon", {
1837
1836
  points: `0 0, 7 ${7 / 2}, 0 7`,
1838
- fill: a.color
1839
- }, null, 8, cl)
1840
- ], 8, nl)
1837
+ fill: r.color
1838
+ }, null, 8, $t)
1839
+ ], 8, jt)
1841
1840
  ]),
1842
- a.plots.length > 1 ? (r(), i("line", {
1841
+ r.plots.length > 1 ? (a(), i("line", {
1843
1842
  key: 0,
1844
- x1: e.calcLinearProgression(a.plots).x1,
1845
- x2: e.calcLinearProgression(a.plots).x2,
1846
- y1: e.forceValidValue(e.calcLinearProgression(a.plots).y1),
1847
- y2: e.forceValidValue(e.calcLinearProgression(a.plots).y2),
1843
+ x1: e.calcLinearProgression(r.plots).x1,
1844
+ x2: e.calcLinearProgression(r.plots).x2,
1845
+ y1: e.forceValidValue(e.calcLinearProgression(r.plots).y1),
1846
+ y2: e.forceValidValue(e.calcLinearProgression(r.plots).y2),
1848
1847
  "stroke-width": 1,
1849
- stroke: a.color,
1848
+ stroke: r.color,
1850
1849
  "stroke-dasharray": 2,
1851
1850
  "marker-end": `url(#plot_arrow_${c})`
1852
- }, null, 8, ol)) : d("", !0),
1853
- a.plots.length > 1 ? (r(), i("text", {
1851
+ }, null, 8, el)) : d("", !0),
1852
+ r.plots.length > 1 ? (a(), i("text", {
1854
1853
  key: 1,
1855
1854
  "text-anchor": "middle",
1856
- x: e.calcLinearProgression(a.plots).x2,
1857
- y: e.calcLinearProgression(a.plots).y2 - 6,
1855
+ x: e.calcLinearProgression(r.plots).x2,
1856
+ y: e.calcLinearProgression(r.plots).y2 - 6,
1858
1857
  "font-size": l.fontSizes.plotLabels,
1859
- fill: a.color
1858
+ fill: r.color
1860
1859
  }, T(e.dataLabel({
1861
- v: e.calcLinearProgression(a.plots).trend * 100,
1860
+ v: e.calcLinearProgression(r.plots).trend * 100,
1862
1861
  s: "%",
1863
1862
  r: 2
1864
- })), 9, hl)) : d("", !0)
1863
+ })), 9, tl)) : d("", !0)
1865
1864
  ])) : d("", !0)
1866
1865
  ], 6))), 128)),
1867
- (r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i("g", {
1866
+ (a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i("g", {
1868
1867
  key: `serie_line_${c}`,
1869
1868
  class: B(`serie_line_${c}`),
1870
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1869
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1871
1870
  }, [
1872
- a.smooth && a.plots.length > 1 ? (r(), i("path", {
1871
+ r.smooth && r.plots.length > 1 ? (a(), i("path", {
1873
1872
  key: 0,
1874
- d: `M${a.curve}`,
1873
+ d: `M${r.curve}`,
1875
1874
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
1876
1875
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1877
- "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1876
+ "stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1878
1877
  fill: "none"
1879
- }, null, 8, ul)) : a.plots.length > 1 ? (r(), i("path", {
1878
+ }, null, 8, ll)) : r.plots.length > 1 ? (a(), i("path", {
1880
1879
  key: 1,
1881
- d: `M${a.straight}`,
1880
+ d: `M${r.straight}`,
1882
1881
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
1883
1882
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1884
- "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1883
+ "stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1885
1884
  fill: "none",
1886
1885
  "stroke-linecap": "round",
1887
1886
  "stroke-linejoin": "round"
1888
- }, null, 8, dl)) : d("", !0)
1887
+ }, null, 8, rl)) : d("", !0)
1889
1888
  ], 6))), 128)),
1890
- t.$slots.pattern ? (r(), i("defs", gl, [
1891
- (r(!0), i(u, null, I(e.safeDataset, (a, c) => S(t.$slots, "pattern", $({
1889
+ t.$slots.pattern ? (a(), i("defs", al, [
1890
+ (a(!0), i(u, null, I(e.safeDataset, (r, c) => S(t.$slots, "pattern", ee({
1892
1891
  key: `serie_pattern_slot_${c}`
1893
- }, { ref_for: !0 }, { ...a, seriesIndex: a.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${c}` }), void 0, !0)), 128))
1892
+ }, { ref_for: !0 }, { ...r, seriesIndex: r.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${c}` }), void 0, !0)), 128))
1894
1893
  ])) : d("", !0),
1895
- (r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i("g", {
1894
+ (a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i("g", {
1896
1895
  key: `serie_line_${c}`,
1897
1896
  class: B(`serie_line_${c}`),
1898
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1897
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1899
1898
  }, [
1900
- a.useArea && a.plots.length > 1 ? (r(), i("g", fl, [
1901
- a.smooth ? (r(!0), i(u, { key: 0 }, I(a.curveAreas, (s, h) => (r(), i(u, { key: h }, [
1899
+ r.useArea && r.plots.length > 1 ? (a(), i("g", il, [
1900
+ r.smooth ? (a(!0), i(u, { key: 0 }, I(r.curveAreas, (n, h) => (a(), i(u, { key: h }, [
1902
1901
  f("path", {
1903
- d: s,
1904
- fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
1905
- }, null, 8, Il),
1906
- t.$slots.pattern ? (r(), i("path", {
1902
+ d: n,
1903
+ fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
1904
+ }, null, 8, sl),
1905
+ t.$slots.pattern ? (a(), i("path", {
1907
1906
  key: 0,
1908
- d: s,
1909
- fill: `url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`
1910
- }, null, 8, Nl)) : d("", !0)
1911
- ], 64))), 128)) : (r(!0), i(u, { key: 1 }, I(a.area.split(";"), (s, h) => (r(), i(u, { key: h }, [
1907
+ d: n,
1908
+ fill: `url(#pattern_${l.uniqueId}_${r.slotAbsoluteIndex})`
1909
+ }, null, 8, nl)) : d("", !0)
1910
+ ], 64))), 128)) : (a(!0), i(u, { key: 1 }, I(r.area.split(";"), (n, h) => (a(), i(u, { key: h }, [
1912
1911
  f("path", {
1913
- d: `M${s}Z`,
1914
- fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
1915
- }, null, 8, ml),
1916
- t.$slots.pattern ? (r(), i("path", {
1912
+ d: `M${n}Z`,
1913
+ fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
1914
+ }, null, 8, cl),
1915
+ t.$slots.pattern ? (a(), i("path", {
1917
1916
  key: 0,
1918
- d: `M${s}Z`,
1919
- fill: `url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`
1920
- }, null, 8, xl)) : d("", !0)
1917
+ d: `M${n}Z`,
1918
+ fill: `url(#pattern_${l.uniqueId}_${r.slotAbsoluteIndex})`
1919
+ }, null, 8, ol)) : d("", !0)
1921
1920
  ], 64))), 128))
1922
1921
  ])) : d("", !0),
1923
- a.smooth && a.plots.length > 1 ? (r(), i("path", {
1922
+ r.smooth && r.plots.length > 1 ? (a(), i("path", {
1924
1923
  key: 1,
1925
- d: `M${a.curve}`,
1926
- stroke: a.color,
1924
+ d: `M${r.curve}`,
1925
+ stroke: r.color,
1927
1926
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth,
1928
- "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1927
+ "stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1929
1928
  fill: "none",
1930
1929
  "stroke-linecap": "round"
1931
- }, null, 8, bl)) : a.plots.length > 1 ? (r(), i("path", {
1930
+ }, null, 8, hl)) : r.plots.length > 1 ? (a(), i("path", {
1932
1931
  key: 2,
1933
- d: `M${a.straight}`,
1934
- stroke: a.color,
1932
+ d: `M${r.straight}`,
1933
+ stroke: r.color,
1935
1934
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth,
1936
- "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1935
+ "stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1937
1936
  fill: "none",
1938
1937
  "stroke-linecap": "round",
1939
1938
  "stroke-linejoin": "round"
1940
- }, null, 8, Fl)) : d("", !0),
1941
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
1939
+ }, null, 8, ul)) : d("", !0),
1940
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
1942
1941
  key: `circle_line_${c}_${h}`
1943
1942
  }, [
1944
- !e.optimize.linePlot && s && e.canShowValue(s.value) || e.optimize.linePlot && s && e.canShowValue(s.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h) ? (r(), W(G, {
1943
+ !e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h) ? (a(), E(v, {
1945
1944
  key: 0,
1946
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
1947
- color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? a.color : e.FINAL_CONFIG.line.dot.fill,
1948
- plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
1945
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
1946
+ color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? r.color : e.FINAL_CONFIG.line.dot.fill,
1947
+ plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
1949
1948
  radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
1950
- stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
1949
+ stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
1951
1950
  strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
1952
1951
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
1953
- s.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
1952
+ n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
1954
1953
  key: 1,
1955
1954
  style: { overflow: "visible" },
1956
1955
  height: "12",
1957
1956
  width: e.FINAL_CONFIG.chart.comments.width,
1958
- x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1959
- y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1957
+ x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1958
+ y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1960
1959
  }, [
1961
- f("div", yl, [
1960
+ f("div", gl, [
1962
1961
  S(t.$slots, "plot-comment", {
1963
- plot: { ...s, color: a.color, seriesIndex: c, datapointIndex: h }
1962
+ plot: { ...n, color: r.color, seriesIndex: c, datapointIndex: h }
1964
1963
  }, void 0, !0)
1965
1964
  ])
1966
- ], 8, _l)) : d("", !0)
1965
+ ], 8, dl)) : d("", !0)
1967
1966
  ], 64))), 128)),
1968
- Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", Al, [
1967
+ Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), i("g", fl, [
1969
1968
  f("defs", null, [
1970
1969
  f("marker", {
1971
1970
  id: `line_arrow_${c}`,
@@ -1977,364 +1976,364 @@ function za(t, n, o, g, l, e) {
1977
1976
  }, [
1978
1977
  f("polygon", {
1979
1978
  points: `0 0, 7 ${7 / 2}, 0 7`,
1980
- fill: a.color
1981
- }, null, 8, Cl)
1982
- ], 8, Ll)
1979
+ fill: r.color
1980
+ }, null, 8, Nl)
1981
+ ], 8, Il)
1983
1982
  ]),
1984
- a.plots.length > 1 ? (r(), i("line", {
1983
+ r.plots.length > 1 ? (a(), i("line", {
1985
1984
  key: 0,
1986
- x1: e.calcLinearProgression(a.plots).x1,
1987
- x2: e.calcLinearProgression(a.plots).x2,
1988
- y1: e.forceValidValue(e.calcLinearProgression(a.plots).y1),
1989
- y2: e.forceValidValue(e.calcLinearProgression(a.plots).y2),
1985
+ x1: e.calcLinearProgression(r.plots).x1,
1986
+ x2: e.calcLinearProgression(r.plots).x2,
1987
+ y1: e.forceValidValue(e.calcLinearProgression(r.plots).y1),
1988
+ y2: e.forceValidValue(e.calcLinearProgression(r.plots).y2),
1990
1989
  "stroke-width": 1,
1991
- stroke: a.color,
1990
+ stroke: r.color,
1992
1991
  "stroke-dasharray": 2,
1993
1992
  "marker-end": `url(#line_arrow_${c})`
1994
- }, null, 8, Sl)) : d("", !0),
1995
- a.plots.length > 1 ? (r(), i("text", {
1993
+ }, null, 8, ml)) : d("", !0),
1994
+ r.plots.length > 1 ? (a(), i("text", {
1996
1995
  key: 1,
1997
1996
  "text-anchor": "middle",
1998
- x: e.calcLinearProgression(a.plots).x2,
1999
- y: e.calcLinearProgression(a.plots).y2 - 6,
1997
+ x: e.calcLinearProgression(r.plots).x2,
1998
+ y: e.calcLinearProgression(r.plots).y2 - 6,
2000
1999
  "font-size": l.fontSizes.plotLabels,
2001
- fill: a.color
2000
+ fill: r.color
2002
2001
  }, T(e.dataLabel({
2003
- v: e.calcLinearProgression(a.plots).trend * 100,
2002
+ v: e.calcLinearProgression(r.plots).trend * 100,
2004
2003
  s: "%",
2005
2004
  r: 2
2006
- })), 9, kl)) : d("", !0)
2005
+ })), 9, bl)) : d("", !0)
2007
2006
  ])) : d("", !0)
2008
2007
  ], 6))), 128)),
2009
- (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (r(), i("g", wl, [
2010
- (r(!0), i(u, null, I(e.barSet, (a, c) => (r(), i(u, {
2008
+ (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (a(), i("g", xl, [
2009
+ (a(!0), i(u, null, I(e.barSet, (r, c) => (a(), i(u, {
2011
2010
  key: `xLabel_bar_${c}`
2012
2011
  }, [
2013
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
2012
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
2014
2013
  key: `xLabel_bar_${c}_${h}`
2015
2014
  }, [
2016
- s && (!Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h) && e.FINAL_CONFIG.bar.labels.show ? (r(), i("text", {
2015
+ n && (!Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h) && e.FINAL_CONFIG.bar.labels.show ? (a(), i("text", {
2017
2016
  key: 0,
2018
- x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? s.x + e.slot.line / 2 : e.calcRectX(s) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
2019
- y: e.checkNaN(s.y) + (s.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
2017
+ x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
2018
+ y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
2020
2019
  "text-anchor": "middle",
2021
2020
  "font-size": l.fontSizes.plotLabels,
2022
2021
  fill: e.FINAL_CONFIG.bar.labels.color,
2023
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2024
- }, T(e.canShowValue(s.value) ? e.applyDataLabel(
2022
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2023
+ }, T(e.canShowValue(n.value) ? e.applyDataLabel(
2025
2024
  e.FINAL_CONFIG.bar.labels.formatter,
2026
- s.value,
2025
+ n.value,
2027
2026
  e.dataLabel({
2028
- p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2029
- v: s.value,
2030
- s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2027
+ p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2028
+ v: n.value,
2029
+ s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2031
2030
  r: e.FINAL_CONFIG.bar.labels.rounding
2032
2031
  }),
2033
2032
  {
2034
- datapoint: s,
2035
- serie: a
2033
+ datapoint: n,
2034
+ serie: r
2036
2035
  }
2037
- ) : ""), 13, Ol)) : d("", !0),
2038
- s && e.FINAL_CONFIG.bar.serieName.show ? (r(), i("text", {
2036
+ ) : ""), 13, Fl)) : d("", !0),
2037
+ n && e.FINAL_CONFIG.bar.serieName.show ? (a(), i("text", {
2039
2038
  key: 1,
2040
- x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? s.x + e.slot.line / 2 : s.x + e.calcRectWidth() * 1.1,
2041
- y: s.y + (s.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
2039
+ x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
2040
+ y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
2042
2041
  "text-anchor": "middle",
2043
2042
  "font-size": l.fontSizes.plotLabels,
2044
- fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? a.color : e.FINAL_CONFIG.bar.serieName.color,
2043
+ fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? r.color : e.FINAL_CONFIG.bar.serieName.color,
2045
2044
  "font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
2046
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2047
- }, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: a.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : a.name), 13, Gl)) : d("", !0)
2045
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2046
+ }, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: r.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : r.name), 13, _l)) : d("", !0)
2048
2047
  ], 64))), 128))
2049
2048
  ], 64))), 128))
2050
2049
  ])) : d("", !0),
2051
- e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (r(), i("g", vl, [
2052
- (r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i(u, {
2050
+ e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), i("g", yl, [
2051
+ (a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i(u, {
2053
2052
  key: `xLabel_plot_${c}`
2054
2053
  }, [
2055
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
2054
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
2056
2055
  key: `xLabel_plot_${c}_${h}`
2057
2056
  }, [
2058
- s && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (r(), i("text", {
2057
+ n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (a(), i("text", {
2059
2058
  key: 0,
2060
- x: s.x,
2061
- y: s.y + e.FINAL_CONFIG.plot.labels.offsetY,
2059
+ x: n.x,
2060
+ y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
2062
2061
  "text-anchor": "middle",
2063
2062
  "font-size": l.fontSizes.plotLabels,
2064
2063
  fill: e.FINAL_CONFIG.plot.labels.color,
2065
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2066
- }, T(e.canShowValue(s.value) ? e.applyDataLabel(
2064
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2065
+ }, T(e.canShowValue(n.value) ? e.applyDataLabel(
2067
2066
  e.FINAL_CONFIG.plot.labels.formatter,
2068
- s.value,
2067
+ n.value,
2069
2068
  e.dataLabel({
2070
- p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2071
- v: s.value,
2072
- s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2069
+ p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2070
+ v: n.value,
2071
+ s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2073
2072
  r: e.FINAL_CONFIG.plot.labels.rounding
2074
2073
  }),
2075
2074
  {
2076
- datapoint: s,
2077
- serie: a
2075
+ datapoint: n,
2076
+ serie: r
2078
2077
  }
2079
- ) : ""), 13, pl)) : d("", !0)
2078
+ ) : ""), 13, Al)) : d("", !0)
2080
2079
  ], 64))), 128))
2081
2080
  ], 64))), 128))
2082
- ])) : (r(), i("g", zl, [
2083
- (r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i(u, {
2081
+ ])) : (a(), i("g", Ll, [
2082
+ (a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i(u, {
2084
2083
  key: `xLabel_plot_${c}`
2085
2084
  }, [
2086
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
2085
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
2087
2086
  key: `xLabel_plot_${c}_${h}`
2088
2087
  }, [
2089
- e.FINAL_CONFIG.plot.tag.followValue ? (r(), i(u, { key: 1 }, [
2090
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag ? (r(), i("line", {
2088
+ e.FINAL_CONFIG.plot.tag.followValue ? (a(), i(u, { key: 1 }, [
2089
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag ? (a(), i("line", {
2091
2090
  key: 0,
2092
2091
  class: "vue-ui-xy-tag-plot",
2093
2092
  x1: e.drawingArea.left,
2094
2093
  x2: e.drawingArea.right,
2095
- y1: s.y,
2096
- y2: s.y,
2094
+ y1: n.y,
2095
+ y2: n.y,
2097
2096
  "stroke-width": 1,
2098
2097
  "stroke-linecap": "round",
2099
2098
  "stroke-dasharray": "2",
2100
- stroke: a.color
2101
- }, null, 8, Rl)) : d("", !0)
2102
- ], 64)) : (r(), i(u, { key: 0 }, [
2103
- s && h === 0 && a.useTag && a.useTag === "start" ? (r(), i("foreignObject", {
2099
+ stroke: r.color
2100
+ }, null, 8, Ol)) : d("", !0)
2101
+ ], 64)) : (a(), i(u, { key: 0 }, [
2102
+ n && h === 0 && r.useTag && r.useTag === "start" ? (a(), i("foreignObject", {
2104
2103
  key: 0,
2105
- x: s.x,
2106
- y: s.y - 20,
2104
+ x: n.x,
2105
+ y: n.y - 20,
2107
2106
  height: 24,
2108
2107
  width: "150",
2109
- style: b(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2108
+ style: x(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2110
2109
  }, [
2111
2110
  f("div", {
2112
- style: b(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
2111
+ style: x(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
2113
2112
  innerHTML: e.applyDataLabel(
2114
2113
  e.FINAL_CONFIG.plot.tag.formatter,
2115
- s.value,
2116
- a.name,
2114
+ n.value,
2115
+ r.name,
2117
2116
  {
2118
- datapoint: s,
2117
+ datapoint: n,
2119
2118
  seriesIndex: h,
2120
- serieName: a.name
2119
+ serieName: r.name
2121
2120
  }
2122
2121
  )
2123
- }, null, 12, Tl)
2124
- ], 12, Ml)) : d("", !0),
2125
- s && h === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), i("foreignObject", {
2122
+ }, null, 12, Sl)
2123
+ ], 12, Cl)) : d("", !0),
2124
+ n && h === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), i("foreignObject", {
2126
2125
  key: 1,
2127
- x: s.x - a.name.length * (l.fontSizes.plotLabels / 2),
2128
- y: s.y - 20,
2126
+ x: n.x - r.name.length * (l.fontSizes.plotLabels / 2),
2127
+ y: n.y - 20,
2129
2128
  height: 24,
2130
2129
  width: "150",
2131
- style: b(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2130
+ style: x(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2132
2131
  }, [
2133
2132
  f("div", {
2134
- style: b(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
2133
+ style: x(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
2135
2134
  innerHTML: e.applyDataLabel(
2136
2135
  e.FINAL_CONFIG.plot.tag.formatter,
2137
- s.value,
2138
- a.name,
2136
+ n.value,
2137
+ r.name,
2139
2138
  {
2140
- datapoint: s,
2139
+ datapoint: n,
2141
2140
  seriesIndex: h,
2142
- serieName: a.name
2141
+ serieName: r.name
2143
2142
  }
2144
2143
  )
2145
- }, null, 12, Vl)
2146
- ], 12, Pl)) : d("", !0)
2144
+ }, null, 12, wl)
2145
+ ], 12, kl)) : d("", !0)
2147
2146
  ], 64))
2148
2147
  ], 64))), 128))
2149
2148
  ], 64))), 128))
2150
2149
  ])),
2151
- e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (r(), i("g", Hl, [
2152
- (r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i(u, {
2150
+ e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (a(), i("g", Gl, [
2151
+ (a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i(u, {
2153
2152
  key: `xLabel_line_${c}`
2154
2153
  }, [
2155
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
2154
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
2156
2155
  key: `xLabel_line_${c}_${h}`
2157
2156
  }, [
2158
- s && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (r(), i("text", {
2157
+ n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (a(), i("text", {
2159
2158
  key: 0,
2160
- x: s.x,
2161
- y: s.y + (s.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
2159
+ x: n.x,
2160
+ y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
2162
2161
  "text-anchor": "middle",
2163
2162
  "font-size": l.fontSizes.plotLabels,
2164
2163
  fill: e.FINAL_CONFIG.line.labels.color,
2165
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2166
- }, T(e.canShowValue(s.value) ? e.applyDataLabel(
2164
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2165
+ }, T(e.canShowValue(n.value) ? e.applyDataLabel(
2167
2166
  e.FINAL_CONFIG.line.labels.formatter,
2168
- s.value,
2167
+ n.value,
2169
2168
  e.dataLabel({
2170
- p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2171
- v: s.value,
2172
- s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2169
+ p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2170
+ v: n.value,
2171
+ s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2173
2172
  r: e.FINAL_CONFIG.line.labels.rounding
2174
2173
  }),
2175
2174
  {
2176
- datapoint: s,
2177
- serie: a
2175
+ datapoint: n,
2176
+ serie: r
2178
2177
  }
2179
- ) : ""), 13, Dl)) : d("", !0)
2178
+ ) : ""), 13, vl)) : d("", !0)
2180
2179
  ], 64))), 128))
2181
2180
  ], 64))), 128))
2182
- ])) : (r(), i("g", Wl, [
2183
- (r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i(u, {
2181
+ ])) : (a(), i("g", pl, [
2182
+ (a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i(u, {
2184
2183
  key: `xLabel_line_${c}`
2185
2184
  }, [
2186
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
2185
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
2187
2186
  key: `xLabel_line_${c}_${h}`
2188
2187
  }, [
2189
- e.FINAL_CONFIG.line.tag.followValue ? (r(), i(u, { key: 1 }, [
2190
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag ? (r(), i("line", {
2188
+ e.FINAL_CONFIG.line.tag.followValue ? (a(), i(u, { key: 1 }, [
2189
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag ? (a(), i("line", {
2191
2190
  key: 0,
2192
2191
  class: "vue-ui-xy-tag-line",
2193
2192
  x1: e.drawingArea.left,
2194
2193
  x2: e.drawingArea.right,
2195
- y1: s.y,
2196
- y2: s.y,
2194
+ y1: n.y,
2195
+ y2: n.y,
2197
2196
  "stroke-width": 1,
2198
2197
  "stroke-linecap": "round",
2199
2198
  "stroke-dasharray": "2",
2200
- stroke: a.color
2201
- }, null, 8, Xl)) : d("", !0)
2202
- ], 64)) : (r(), i(u, { key: 0 }, [
2203
- s && h === 0 && a.useTag && a.useTag === "start" ? (r(), i("foreignObject", {
2199
+ stroke: r.color
2200
+ }, null, 8, Vl)) : d("", !0)
2201
+ ], 64)) : (a(), i(u, { key: 0 }, [
2202
+ n && h === 0 && r.useTag && r.useTag === "start" ? (a(), i("foreignObject", {
2204
2203
  key: 0,
2205
- x: s.x,
2206
- y: s.y - 20,
2204
+ x: n.x,
2205
+ y: n.y - 20,
2207
2206
  height: 24,
2208
2207
  width: "150",
2209
- style: b(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2208
+ style: x(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2210
2209
  }, [
2211
2210
  f("div", {
2212
- style: b(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
2211
+ style: x(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
2213
2212
  innerHTML: e.applyDataLabel(
2214
2213
  e.FINAL_CONFIG.line.tag.formatter,
2215
- s.value,
2216
- a.name,
2214
+ n.value,
2215
+ r.name,
2217
2216
  {
2218
- datapoint: s,
2217
+ datapoint: n,
2219
2218
  seriesIndex: h,
2220
- serieName: a.name
2219
+ serieName: r.name
2221
2220
  }
2222
2221
  )
2223
- }, null, 12, El)
2224
- ], 12, Bl)) : d("", !0),
2225
- s && h === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), i("foreignObject", {
2222
+ }, null, 12, Ml)
2223
+ ], 12, zl)) : d("", !0),
2224
+ n && h === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), i("foreignObject", {
2226
2225
  key: 1,
2227
- x: s.x,
2228
- y: s.y - 20,
2226
+ x: n.x,
2227
+ y: n.y - 20,
2229
2228
  height: 24,
2230
2229
  width: "150",
2231
- style: b(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2230
+ style: x(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2232
2231
  }, [
2233
2232
  f("div", {
2234
- style: b(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
2233
+ style: x(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
2235
2234
  innerHTML: e.applyDataLabel(
2236
2235
  e.FINAL_CONFIG.line.tag.formatter,
2237
- s.value,
2238
- a.name,
2236
+ n.value,
2237
+ r.name,
2239
2238
  {
2240
- datapoint: s,
2239
+ datapoint: n,
2241
2240
  seriesIndex: h,
2242
- serieName: a.name
2241
+ serieName: r.name
2243
2242
  }
2244
2243
  )
2245
- }, null, 12, ql)
2246
- ], 12, Yl)) : d("", !0)
2244
+ }, null, 12, Pl)
2245
+ ], 12, Tl)) : d("", !0)
2247
2246
  ], 64))
2248
2247
  ], 64))), 128))
2249
2248
  ], 64))), 128))
2250
2249
  ])),
2251
- (r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i(u, {
2250
+ (a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i(u, {
2252
2251
  key: `xLabel_line_${c}`
2253
2252
  }, [
2254
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
2253
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
2255
2254
  key: `xLabel_line_${c}_${h}`
2256
2255
  }, [
2257
- s && h === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), i("text", {
2256
+ n && h === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), i("text", {
2258
2257
  key: 0,
2259
- x: s.x - l.fontSizes.plotLabels,
2260
- y: s.y,
2258
+ x: n.x - l.fontSizes.plotLabels,
2259
+ y: n.y,
2261
2260
  "font-size": l.fontSizes.plotLabels,
2262
2261
  "text-anchor": "end",
2263
- fill: a.color,
2262
+ fill: r.color,
2264
2263
  innerHTML: e.createTSpans({
2265
- content: a.name,
2264
+ content: r.name,
2266
2265
  fontSize: l.fontSizes.plotLabels,
2267
- fill: a.color,
2268
- x: s.x - l.fontSizes.plotLabels,
2269
- y: s.y,
2266
+ fill: r.color,
2267
+ x: n.x - l.fontSizes.plotLabels,
2268
+ y: n.y,
2270
2269
  maxWords: 2
2271
2270
  }),
2272
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2273
- }, null, 12, Ul)) : d("", !0),
2274
- s && h === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), i("text", {
2271
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2272
+ }, null, 12, Rl)) : d("", !0),
2273
+ n && h === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), i("text", {
2275
2274
  key: 1,
2276
- x: s.x + l.fontSizes.plotLabels,
2277
- y: s.y,
2275
+ x: n.x + l.fontSizes.plotLabels,
2276
+ y: n.y,
2278
2277
  "font-size": l.fontSizes.plotLabels,
2279
2278
  "text-anchor": "start",
2280
- fill: a.color,
2279
+ fill: r.color,
2281
2280
  innerHTML: e.createTSpans({
2282
- content: a.name,
2281
+ content: r.name,
2283
2282
  fontSize: l.fontSizes.plotLabels,
2284
- fill: a.color,
2285
- x: s.x + l.fontSizes.plotLabels,
2286
- y: s.y,
2283
+ fill: r.color,
2284
+ x: n.x + l.fontSizes.plotLabels,
2285
+ y: n.y,
2287
2286
  maxWords: 2
2288
2287
  }),
2289
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2290
- }, null, 12, Zl)) : d("", !0)
2288
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2289
+ }, null, 12, Hl)) : d("", !0)
2291
2290
  ], 64))), 128))
2292
2291
  ], 64))), 128)),
2293
- (r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i(u, {
2292
+ (a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i(u, {
2294
2293
  key: `xLabel_plot_${c}`
2295
2294
  }, [
2296
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
2295
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
2297
2296
  key: `xLabel_plot_${c}_${h}`
2298
2297
  }, [
2299
- s && h === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), i("text", {
2298
+ n && h === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), i("text", {
2300
2299
  key: 0,
2301
- x: s.x - l.fontSizes.plotLabels,
2302
- y: s.y,
2300
+ x: n.x - l.fontSizes.plotLabels,
2301
+ y: n.y,
2303
2302
  "font-size": l.fontSizes.plotLabels,
2304
2303
  "text-anchor": "end",
2305
- fill: a.color,
2304
+ fill: r.color,
2306
2305
  innerHTML: e.createTSpans({
2307
- content: a.name,
2306
+ content: r.name,
2308
2307
  fontSize: l.fontSizes.plotLabels,
2309
- fill: a.color,
2310
- x: s.x - l.fontSizes.plotLabels,
2311
- y: s.y,
2308
+ fill: r.color,
2309
+ x: n.x - l.fontSizes.plotLabels,
2310
+ y: n.y,
2312
2311
  maxWords: 2
2313
2312
  }),
2314
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2315
- }, null, 12, Jl)) : d("", !0),
2316
- s && h === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), i("text", {
2313
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2314
+ }, null, 12, Dl)) : d("", !0),
2315
+ n && h === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), i("text", {
2317
2316
  key: 1,
2318
- x: s.x + l.fontSizes.plotLabels,
2319
- y: s.y,
2317
+ x: n.x + l.fontSizes.plotLabels,
2318
+ y: n.y,
2320
2319
  "font-size": l.fontSizes.plotLabels,
2321
2320
  "text-anchor": "start",
2322
- fill: a.color,
2321
+ fill: r.color,
2323
2322
  innerHTML: e.createTSpans({
2324
- content: a.name,
2323
+ content: r.name,
2325
2324
  fontSize: l.fontSizes.plotLabels,
2326
- fill: a.color,
2327
- x: s.x + l.fontSizes.plotLabels,
2328
- y: s.y,
2325
+ fill: r.color,
2326
+ x: n.x + l.fontSizes.plotLabels,
2327
+ y: n.y,
2329
2328
  maxWords: 2
2330
2329
  }),
2331
- style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2332
- }, null, 12, Kl)) : d("", !0)
2330
+ style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2331
+ }, null, 12, Wl)) : d("", !0)
2333
2332
  ], 64))), 128))
2334
2333
  ], 64))), 128)),
2335
- l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (r(), i(u, { key: 11 }, [
2334
+ l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), i(u, { key: 11 }, [
2336
2335
  f("defs", null, [
2337
- (r(!0), i(u, null, I(e.allScales, (a, c) => (r(), i("linearGradient", {
2336
+ (a(!0), i(u, null, I(e.allScales, (r, c) => (a(), i("linearGradient", {
2338
2337
  id: `individual_scale_gradient_${l.uniqueId}_${c}`,
2339
2338
  x1: "0%",
2340
2339
  x2: "100%",
@@ -2345,45 +2344,45 @@ function za(t, n, o, g, l, e) {
2345
2344
  offset: "0%",
2346
2345
  "stop-color": e.FINAL_CONFIG.chart.backgroundColor,
2347
2346
  "stop-opacity": "0"
2348
- }, null, 8, jl),
2347
+ }, null, 8, Bl),
2349
2348
  f("stop", {
2350
2349
  offset: "100%",
2351
- "stop-color": a.color,
2350
+ "stop-color": r.color,
2352
2351
  "stop-opacity": "0.2"
2353
- }, null, 8, $l)
2354
- ], 8, Ql))), 256))
2352
+ }, null, 8, Yl)
2353
+ ], 8, El))), 256))
2355
2354
  ]),
2356
- (r(!0), i(u, null, I(e.allScales, (a, c) => (r(), i("rect", {
2357
- x: a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
2355
+ (a(!0), i(u, null, I(e.allScales, (r, c) => (a(), i("rect", {
2356
+ x: r.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
2358
2357
  y: e.drawingArea.top,
2359
2358
  width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
2360
2359
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2361
- fill: l.selectedScale === a.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${c})` : "transparent",
2362
- onMouseenter: (s) => l.selectedScale = a.groupId,
2363
- onMouseleave: n[0] || (n[0] = (s) => l.selectedScale = null)
2364
- }, null, 40, ea))), 256))
2360
+ fill: l.selectedScale === r.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${c})` : "transparent",
2361
+ onMouseenter: (n) => l.selectedScale = r.groupId,
2362
+ onMouseleave: s[0] || (s[0] = (n) => l.selectedScale = null)
2363
+ }, null, 40, ql))), 256))
2365
2364
  ], 64)) : d("", !0),
2366
2365
  f("g", null, [
2367
- e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (r(), i("text", {
2366
+ e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (a(), i("text", {
2368
2367
  key: 0,
2369
2368
  "font-size": l.fontSizes.yAxis,
2370
2369
  fill: e.FINAL_CONFIG.chart.grid.labels.color,
2371
2370
  transform: `translate(${l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
2372
2371
  "text-anchor": "middle",
2373
2372
  style: { transition: "none" }
2374
- }, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, ta)) : d("", !0),
2375
- e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (r(), i("text", {
2373
+ }, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Xl)) : d("", !0),
2374
+ e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), i("text", {
2376
2375
  key: 1,
2377
2376
  "text-anchor": "middle",
2378
2377
  x: l.width / 2,
2379
2378
  y: e.drawingArea.bottom + l.fontSizes.yAxis + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
2380
2379
  "font-size": l.fontSizes.yAxis,
2381
2380
  fill: e.FINAL_CONFIG.chart.grid.labels.color
2382
- }, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, la)) : d("", !0)
2381
+ }, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Ul)) : d("", !0)
2383
2382
  ]),
2384
- n[9] || (n[9] = j('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),
2385
- e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), i("g", aa, [
2386
- t.$slots["time-label"] ? (r(!0), i(u, { key: 0 }, I(e.timeLabels, (a, c) => S(t.$slots, "time-label", $({
2383
+ s[9] || (s[9] = $('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),
2384
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g", Zl, [
2385
+ t.$slots["time-label"] ? (a(!0), i(u, { key: 0 }, I(e.timeLabels, (r, c) => S(t.$slots, "time-label", ee({
2387
2386
  key: `time_label_${c}`,
2388
2387
  ref_for: !0
2389
2388
  }, {
@@ -2392,14 +2391,14 @@ function za(t, n, o, g, l, e) {
2392
2391
  fontSize: l.fontSizes.xAxis,
2393
2392
  fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2394
2393
  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})`,
2395
- absoluteIndex: a.absoluteIndex,
2396
- content: a.text,
2394
+ absoluteIndex: r.absoluteIndex,
2395
+ content: r.text,
2397
2396
  textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2398
- show: a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && !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
2399
- }), void 0, !0)), 128)) : (r(!0), i(u, { key: 1 }, I(e.timeLabels, (a, c) => (r(), i("g", {
2397
+ show: r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !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
2398
+ }), void 0, !0)), 128)) : (a(!0), i(u, { key: 1 }, I(e.timeLabels, (r, c) => (a(), i("g", {
2400
2399
  key: `time_label_${c}`
2401
2400
  }, [
2402
- a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && !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 ? (r(), i("text", {
2401
+ r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), i("text", {
2403
2402
  key: 0,
2404
2403
  "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2405
2404
  "font-size": l.fontSizes.xAxis,
@@ -2408,25 +2407,25 @@ function za(t, n, o, g, l, e) {
2408
2407
  style: {
2409
2408
  cursor: "pointer"
2410
2409
  },
2411
- onClick: () => e.selectTimeLabel(a, c)
2412
- }, T(a.text || ""), 9, ra)) : d("", !0)
2410
+ onClick: () => e.selectTimeLabel(r, c)
2411
+ }, T(r.text || ""), 9, Jl)) : d("", !0)
2413
2412
  ]))), 128))
2414
2413
  ])) : d("", !0),
2415
2414
  f("g", null, [
2416
- (r(!0), i(u, null, I(e.maxSeries, (a, c) => (r(), i("rect", {
2415
+ (a(!0), i(u, null, I(e.maxSeries, (r, c) => (a(), i("rect", {
2417
2416
  key: `tooltip_trap_${c}`,
2418
2417
  x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
2419
2418
  y: e.drawingArea.top,
2420
2419
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2421
2420
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
2422
2421
  fill: "transparent",
2423
- onMouseenter: (s) => e.toggleTooltipVisibility(!0, c),
2424
- onMouseleave: n[1] || (n[1] = (s) => e.toggleTooltipVisibility(!1)),
2425
- onClick: (s) => e.selectX(c)
2426
- }, null, 40, ia))), 128))
2422
+ onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
2423
+ onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
2424
+ onClick: (n) => e.selectX(c)
2425
+ }, null, 40, Kl))), 128))
2427
2426
  ]),
2428
- e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), i("g", sa, [
2429
- (r(), i("foreignObject", {
2427
+ e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), i("g", Ql, [
2428
+ (a(), i("foreignObject", {
2430
2429
  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,
2431
2430
  y: e.drawingArea.bottom,
2432
2431
  width: "200",
@@ -2435,247 +2434,247 @@ function za(t, n, o, g, l, e) {
2435
2434
  }, [
2436
2435
  f("div", {
2437
2436
  class: "vue-ui-xy-time-tag",
2438
- style: b(`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`)
2437
+ style: x(`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`)
2439
2438
  }, T(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)
2440
- ], 8, na)),
2439
+ ], 8, jl)),
2441
2440
  f("circle", {
2442
2441
  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,
2443
2442
  cy: e.drawingArea.bottom,
2444
2443
  r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
2445
2444
  fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
2446
- }, null, 8, ca)
2445
+ }, null, 8, $l)
2447
2446
  ])) : d("", !0)
2448
2447
  ])) : d("", !0),
2449
2448
  S(t.$slots, "svg", { svg: e.svg }, void 0, !0)
2450
- ], 14, nt)) : d("", !0),
2451
- t.$slots.watermark ? (r(), i("div", oa, [
2452
- S(t.$slots, "watermark", E(Y({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
2449
+ ], 14, je)) : d("", !0),
2450
+ t.$slots.watermark ? (a(), i("div", er, [
2451
+ S(t.$slots, "watermark", Y(q({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
2453
2452
  ])) : d("", !0),
2454
- (r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i(u, {
2453
+ (a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i(u, {
2455
2454
  key: `tag_line_${c}`
2456
2455
  }, [
2457
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
2456
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
2458
2457
  key: `tag_line_${c}_${h}`
2459
2458
  }, [
2460
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag && a.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (r(), i("div", {
2459
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag && r.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
2461
2460
  key: 0,
2462
2461
  ref_for: !0,
2463
2462
  ref: (y) => e.setTagRef(c, h, y, "right", "line"),
2464
2463
  class: "vue-ui-xy-tag",
2465
2464
  "data-tag": "right",
2466
- style: b({
2465
+ style: x({
2467
2466
  position: "fixed",
2468
2467
  top: e.placeXYTag({
2469
2468
  svgElement: l.svgRef,
2470
2469
  x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2471
- y: s.y,
2470
+ y: n.y,
2472
2471
  element: l.tagRefs[`${c}_${h}_right_line`],
2473
2472
  position: "right"
2474
2473
  }).top + "px",
2475
2474
  left: e.placeXYTag({
2476
2475
  svgElement: l.svgRef,
2477
2476
  x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2478
- y: s.y,
2477
+ y: n.y,
2479
2478
  element: l.tagRefs[`${c}_${h}_right_line`],
2480
2479
  position: "right"
2481
2480
  }).left + "px",
2482
2481
  height: "fit-content",
2483
2482
  width: "fit-content",
2484
- background: a.color,
2485
- color: e.adaptColorToBackground(a.color),
2483
+ background: r.color,
2484
+ color: e.adaptColorToBackground(r.color),
2486
2485
  padding: "0 6px",
2487
2486
  fontSize: e.FINAL_CONFIG.line.tag.fontSize + "px",
2488
2487
  opacity: 1
2489
2488
  })
2490
2489
  }, [
2491
- (r(), i("svg", ha, [
2490
+ (a(), i("svg", tr, [
2492
2491
  f("path", {
2493
2492
  d: "M 0,10 10,0 10,20 Z",
2494
- fill: a.color,
2493
+ fill: r.color,
2495
2494
  stroke: "none"
2496
- }, null, 8, ua)
2495
+ }, null, 8, lr)
2497
2496
  ])),
2498
2497
  f("div", {
2499
2498
  class: "vue-ui-xy-tag-content",
2500
2499
  innerHTML: e.applyDataLabel(
2501
2500
  e.FINAL_CONFIG.line.tag.formatter,
2502
- s.value,
2503
- a.name,
2501
+ n.value,
2502
+ r.name,
2504
2503
  {
2505
- datapoint: s,
2504
+ datapoint: n,
2506
2505
  seriesIndex: h,
2507
- serieName: a.name
2506
+ serieName: r.name
2508
2507
  }
2509
2508
  )
2510
- }, null, 8, da)
2509
+ }, null, 8, rr)
2511
2510
  ], 4)) : d("", !0),
2512
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag && a.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (r(), i("div", {
2511
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag && r.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
2513
2512
  key: 1,
2514
2513
  ref_for: !0,
2515
2514
  ref: (y) => e.setTagRef(c, h, y, "left", "line"),
2516
2515
  class: "vue-ui-xy-tag",
2517
2516
  "data-tag": "left",
2518
- style: b({
2517
+ style: x({
2519
2518
  position: "fixed",
2520
2519
  top: e.placeXYTag({
2521
2520
  svgElement: l.svgRef,
2522
2521
  x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2523
- y: s.y,
2522
+ y: n.y,
2524
2523
  element: l.tagRefs[`${c}_${h}_left_line`],
2525
2524
  position: "left"
2526
2525
  }).top + "px",
2527
2526
  left: e.placeXYTag({
2528
2527
  svgElement: l.svgRef,
2529
2528
  x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2530
- y: s.y,
2529
+ y: n.y,
2531
2530
  element: l.tagRefs[`${c}_${h}_left_line`],
2532
2531
  position: "left"
2533
2532
  }).left + "px",
2534
2533
  height: "fit-content",
2535
2534
  width: "fit-content",
2536
- background: a.color,
2537
- color: e.adaptColorToBackground(a.color),
2535
+ background: r.color,
2536
+ color: e.adaptColorToBackground(r.color),
2538
2537
  padding: "0 6px",
2539
2538
  fontSize: e.FINAL_CONFIG.line.tag.fontSize + "px",
2540
2539
  opacity: 1
2541
2540
  })
2542
2541
  }, [
2543
- (r(), i("svg", ga, [
2542
+ (a(), i("svg", ar, [
2544
2543
  f("path", {
2545
2544
  d: "M 0,0 10,10 0,20 Z",
2546
- fill: a.color,
2545
+ fill: r.color,
2547
2546
  stroke: "none"
2548
- }, null, 8, fa)
2547
+ }, null, 8, ir)
2549
2548
  ])),
2550
2549
  f("div", {
2551
2550
  class: "vue-ui-xy-tag-content",
2552
2551
  innerHTML: e.applyDataLabel(
2553
2552
  e.FINAL_CONFIG.line.tag.formatter,
2554
- s.value,
2555
- a.name,
2553
+ n.value,
2554
+ r.name,
2556
2555
  {
2557
- datapoint: s,
2556
+ datapoint: n,
2558
2557
  seriesIndex: h,
2559
- serieName: a.name
2558
+ serieName: r.name
2560
2559
  }
2561
2560
  )
2562
- }, null, 8, Ia)
2561
+ }, null, 8, sr)
2563
2562
  ], 4)) : d("", !0)
2564
2563
  ], 64))), 128))
2565
2564
  ], 64))), 128)),
2566
- (r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i(u, {
2565
+ (a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i(u, {
2567
2566
  key: `tag_plot_${c}`
2568
2567
  }, [
2569
- (r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
2568
+ (a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
2570
2569
  key: `tag_plot_${c}_${h}`
2571
2570
  }, [
2572
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag && a.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (r(), i("div", {
2571
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag && r.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
2573
2572
  key: 0,
2574
2573
  ref_for: !0,
2575
2574
  ref: (y) => e.setTagRef(c, h, y, "right", "plot"),
2576
2575
  class: "vue-ui-xy-tag",
2577
2576
  "data-tag": "right",
2578
- style: b({
2577
+ style: x({
2579
2578
  position: "fixed",
2580
2579
  top: e.placeXYTag({
2581
2580
  svgElement: l.svgRef,
2582
2581
  x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2583
- y: s.y,
2582
+ y: n.y,
2584
2583
  element: l.tagRefs[`${c}_${h}_right_plot`],
2585
2584
  position: "right"
2586
2585
  }).top + "px",
2587
2586
  left: e.placeXYTag({
2588
2587
  svgElement: l.svgRef,
2589
2588
  x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2590
- y: s.y,
2589
+ y: n.y,
2591
2590
  element: l.tagRefs[`${c}_${h}_right_plot`],
2592
2591
  position: "right"
2593
2592
  }).left + "px",
2594
2593
  height: "fit-content",
2595
2594
  width: "fit-content",
2596
- background: a.color,
2597
- color: e.adaptColorToBackground(a.color),
2595
+ background: r.color,
2596
+ color: e.adaptColorToBackground(r.color),
2598
2597
  padding: "0 6px",
2599
2598
  fontSize: e.FINAL_CONFIG.plot.tag.fontSize + "px",
2600
2599
  opacity: 1
2601
2600
  })
2602
2601
  }, [
2603
- (r(), i("svg", Na, [
2602
+ (a(), i("svg", nr, [
2604
2603
  f("path", {
2605
2604
  d: "M 0,10 10,0 10,20 Z",
2606
- fill: a.color,
2605
+ fill: r.color,
2607
2606
  stroke: "none"
2608
- }, null, 8, ma)
2607
+ }, null, 8, cr)
2609
2608
  ])),
2610
2609
  f("div", {
2611
2610
  class: "vue-ui-xy-tag-content",
2612
2611
  innerHTML: e.applyDataLabel(
2613
2612
  e.FINAL_CONFIG.plot.tag.formatter,
2614
- s.value,
2615
- a.name,
2613
+ n.value,
2614
+ r.name,
2616
2615
  {
2617
- datapoint: s,
2616
+ datapoint: n,
2618
2617
  seriesIndex: h,
2619
- serieName: a.name
2618
+ serieName: r.name
2620
2619
  }
2621
2620
  )
2622
- }, null, 8, xa)
2621
+ }, null, 8, or)
2623
2622
  ], 4)) : d("", !0),
2624
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag && a.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (r(), i("div", {
2623
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag && r.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
2625
2624
  key: 1,
2626
2625
  ref_for: !0,
2627
2626
  ref: (y) => e.setTagRef(c, h, y, "left", "plot"),
2628
2627
  class: "vue-ui-xy-tag",
2629
2628
  "data-tag": "left",
2630
- style: b({
2629
+ style: x({
2631
2630
  position: "fixed",
2632
2631
  top: e.placeXYTag({
2633
2632
  svgElement: l.svgRef,
2634
2633
  x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2635
- y: s.y,
2634
+ y: n.y,
2636
2635
  element: l.tagRefs[`${c}_${h}_left_plot`],
2637
2636
  position: "left"
2638
2637
  }).top + "px",
2639
2638
  left: e.placeXYTag({
2640
2639
  svgElement: l.svgRef,
2641
2640
  x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2642
- y: s.y,
2641
+ y: n.y,
2643
2642
  element: l.tagRefs[`${c}_${h}_left_plot`],
2644
2643
  position: "left"
2645
2644
  }).left + "px",
2646
2645
  height: "fit-content",
2647
2646
  width: "fit-content",
2648
- background: a.color,
2649
- color: e.adaptColorToBackground(a.color),
2647
+ background: r.color,
2648
+ color: e.adaptColorToBackground(r.color),
2650
2649
  padding: "0 6px",
2651
2650
  fontSize: e.FINAL_CONFIG.plot.tag.fontSize + "px",
2652
2651
  opacity: 1
2653
2652
  })
2654
2653
  }, [
2655
- (r(), i("svg", ba, [
2654
+ (a(), i("svg", hr, [
2656
2655
  f("path", {
2657
2656
  d: "M 0,0 10,10 0,20 Z",
2658
- fill: a.color,
2657
+ fill: r.color,
2659
2658
  stroke: "none"
2660
- }, null, 8, Fa)
2659
+ }, null, 8, ur)
2661
2660
  ])),
2662
2661
  f("div", {
2663
2662
  class: "vue-ui-xy-tag-content",
2664
2663
  innerHTML: e.applyDataLabel(
2665
2664
  e.FINAL_CONFIG.plot.tag.formatter,
2666
- s.value,
2667
- a.name,
2665
+ n.value,
2666
+ r.name,
2668
2667
  {
2669
- datapoint: s,
2668
+ datapoint: n,
2670
2669
  seriesIndex: h,
2671
- serieName: a.name
2670
+ serieName: r.name
2672
2671
  }
2673
2672
  )
2674
- }, null, 8, _a)
2673
+ }, null, 8, dr)
2675
2674
  ], 4)) : d("", !0)
2676
2675
  ], 64))), 128))
2677
2676
  ], 64))), 128)),
2678
- e.isDataset ? d("", !0) : (r(), W(k, {
2677
+ e.isDataset ? d("", !0) : (a(), E(k, {
2679
2678
  key: 6,
2680
2679
  config: {
2681
2680
  type: "line",
@@ -2693,7 +2692,7 @@ function za(t, n, o, g, l, e) {
2693
2692
  }
2694
2693
  }
2695
2694
  }, null, 8, ["config"])),
2696
- e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (r(), W(v, {
2695
+ e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (a(), E(w, {
2697
2696
  ref: "chartSlicer",
2698
2697
  key: `slicer_${l.slicerStep}`,
2699
2698
  background: e.FINAL_CONFIG.chart.zoom.color,
@@ -2719,33 +2718,33 @@ function za(t, n, o, g, l, e) {
2719
2718
  valueStart: l.slicer.start,
2720
2719
  valueEnd: l.slicer.end,
2721
2720
  start: l.slicer.start,
2722
- "onUpdate:start": n[2] || (n[2] = (a) => l.slicer.start = a),
2721
+ "onUpdate:start": s[2] || (s[2] = (r) => l.slicer.start = r),
2723
2722
  end: l.slicer.end,
2724
- "onUpdate:end": n[3] || (n[3] = (a) => l.slicer.end = a),
2723
+ "onUpdate:end": s[3] || (s[3] = (r) => l.slicer.end = r),
2725
2724
  refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
2726
- refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((a) => e.largestTriangleThreeBucketsArray({ data: a.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
2725
+ refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((r) => e.largestTriangleThreeBucketsArray({ data: r.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
2727
2726
  enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
2728
2727
  enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
2729
2728
  onReset: e.refreshSlicer,
2730
2729
  onTrapMouse: e.selectMinimapIndex
2731
2730
  }, {
2732
- "reset-action": V(({ reset: a }) => [
2733
- S(t.$slots, "reset-action", E(Y({ reset: a })), void 0, !0)
2731
+ "reset-action": V(({ reset: r }) => [
2732
+ S(t.$slots, "reset-action", Y(q({ reset: r })), void 0, !0)
2734
2733
  ]),
2735
2734
  _: 3
2736
2735
  }, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : d("", !0),
2737
- e.FINAL_CONFIG.chart.legend.show ? (r(), i("div", {
2736
+ e.FINAL_CONFIG.chart.legend.show ? (a(), i("div", {
2738
2737
  key: 8,
2739
2738
  ref: "chartLegend",
2740
2739
  class: "vue-ui-xy-legend",
2741
- style: b(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
2740
+ style: x(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
2742
2741
  }, [
2743
- (r(!0), i(u, null, I(e.absoluteDataset, (a, c) => (r(), i("div", {
2742
+ (a(!0), i(u, null, I(e.absoluteDataset, (r, c) => (a(), i("div", {
2744
2743
  key: `div_legend_item_${c}`,
2745
- onClick: (s) => e.segregate(a),
2746
- class: B({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(a.id) })
2744
+ onClick: (n) => e.segregate(r),
2745
+ class: B({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(r.id) })
2747
2746
  }, [
2748
- l.icons[a.type] === "line" ? (r(), i("svg", Aa, [
2747
+ l.icons[r.type] === "line" ? (a(), i("svg", fr, [
2749
2748
  f("rect", {
2750
2749
  x: "0",
2751
2750
  y: "7.5",
@@ -2754,18 +2753,18 @@ function za(t, n, o, g, l, e) {
2754
2753
  "stroke-width": 0.5,
2755
2754
  height: "3",
2756
2755
  width: "20",
2757
- fill: a.color
2758
- }, null, 8, La),
2759
- X(G, {
2756
+ fill: r.color
2757
+ }, null, 8, Ir),
2758
+ U(v, {
2760
2759
  plot: { x: 10, y: 9 },
2761
2760
  radius: 4,
2762
- color: a.color,
2763
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
2761
+ color: r.color,
2762
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
2764
2763
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
2765
2764
  strokeWidth: 0.5
2766
2765
  }, null, 8, ["color", "shape", "stroke"])
2767
- ])) : l.icons[a.type] === "bar" ? (r(), i("svg", Ca, [
2768
- l.icons[a.type] === "bar" && t.$slots.pattern ? (r(), i("rect", {
2766
+ ])) : l.icons[r.type] === "bar" ? (a(), i("svg", Nr, [
2767
+ l.icons[r.type] === "bar" && t.$slots.pattern ? (a(), i("rect", {
2769
2768
  key: 0,
2770
2769
  x: "0",
2771
2770
  y: "0",
@@ -2773,9 +2772,9 @@ function za(t, n, o, g, l, e) {
2773
2772
  height: "40",
2774
2773
  width: "40",
2775
2774
  stroke: "none",
2776
- fill: a.color
2777
- }, null, 8, Sa)) : d("", !0),
2778
- l.icons[a.type] === "bar" ? (r(), i("rect", {
2775
+ fill: r.color
2776
+ }, null, 8, mr)) : d("", !0),
2777
+ l.icons[r.type] === "bar" ? (a(), i("rect", {
2779
2778
  key: 1,
2780
2779
  x: "0",
2781
2780
  y: "0",
@@ -2783,27 +2782,27 @@ function za(t, n, o, g, l, e) {
2783
2782
  height: "40",
2784
2783
  width: "40",
2785
2784
  stroke: "none",
2786
- fill: t.$slots.pattern ? `url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})` : a.color
2787
- }, null, 8, ka)) : d("", !0)
2788
- ])) : (r(), i("svg", wa, [
2789
- X(G, {
2785
+ fill: t.$slots.pattern ? `url(#pattern_${l.uniqueId}_${r.slotAbsoluteIndex})` : r.color
2786
+ }, null, 8, br)) : d("", !0)
2787
+ ])) : (a(), i("svg", xr, [
2788
+ U(v, {
2790
2789
  plot: { x: 6, y: 6 },
2791
2790
  radius: 5,
2792
- color: a.color,
2793
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle"
2791
+ color: r.color,
2792
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle"
2794
2793
  }, null, 8, ["color", "shape"])
2795
2794
  ])),
2796
2795
  f("span", {
2797
- style: b(`color:${e.FINAL_CONFIG.chart.legend.color}`)
2798
- }, T(a.name), 5)
2799
- ], 10, ya))), 128))
2800
- ], 4)) : (r(), i("div", Oa, [
2796
+ style: x(`color:${e.FINAL_CONFIG.chart.legend.color}`)
2797
+ }, T(r.name), 5)
2798
+ ], 10, gr))), 128))
2799
+ ], 4)) : (a(), i("div", Fr, [
2801
2800
  S(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
2802
2801
  ], 512)),
2803
- t.$slots.source ? (r(), i("div", Ga, [
2802
+ t.$slots.source ? (a(), i("div", _r, [
2804
2803
  S(t.$slots, "source", {}, void 0, !0)
2805
2804
  ], 512)) : d("", !0),
2806
- X(w, {
2805
+ U(O, {
2807
2806
  show: l.mutableConfig.showTooltip && l.isTooltip,
2808
2807
  backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
2809
2808
  color: e.FINAL_CONFIG.chart.tooltip.color,
@@ -2820,14 +2819,14 @@ function za(t, n, o, g, l, e) {
2820
2819
  isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
2821
2820
  }, {
2822
2821
  "tooltip-before": V(() => [
2823
- S(t.$slots, "tooltip-before", E(Y({ ...e.dataTooltipSlot })), void 0, !0)
2822
+ S(t.$slots, "tooltip-before", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2824
2823
  ]),
2825
2824
  "tooltip-after": V(() => [
2826
- S(t.$slots, "tooltip-after", E(Y({ ...e.dataTooltipSlot })), void 0, !0)
2825
+ S(t.$slots, "tooltip-after", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2827
2826
  ]),
2828
2827
  _: 3
2829
2828
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2830
- e.isDataset ? (r(), W(p, {
2829
+ e.isDataset ? (a(), E(p, {
2831
2830
  key: 11,
2832
2831
  hideDetails: "",
2833
2832
  config: {
@@ -2845,46 +2844,46 @@ function za(t, n, o, g, l, e) {
2845
2844
  }, {
2846
2845
  content: V(() => [
2847
2846
  f("div", {
2848
- style: b(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2847
+ style: x(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2849
2848
  }, [
2850
- f("div", va, [
2851
- et(f("input", {
2849
+ f("div", yr, [
2850
+ qe(f("input", {
2852
2851
  type: "checkbox",
2853
- "onUpdate:modelValue": n[4] || (n[4] = (a) => l.showSparklineTable = a)
2852
+ "onUpdate:modelValue": s[4] || (s[4] = (r) => l.showSparklineTable = r)
2854
2853
  }, null, 512), [
2855
- [tt, l.showSparklineTable]
2854
+ [Xe, l.showSparklineTable]
2856
2855
  ]),
2857
2856
  f("div", {
2858
- onClick: n[5] || (n[5] = (a) => l.showSparklineTable = !l.showSparklineTable),
2857
+ onClick: s[5] || (s[5] = (r) => l.showSparklineTable = !l.showSparklineTable),
2859
2858
  style: { cursor: "pointer" }
2860
2859
  }, [
2861
- X(F, {
2860
+ U(F, {
2862
2861
  name: "chartLine",
2863
2862
  size: 20,
2864
2863
  stroke: e.FINAL_CONFIG.chart.color
2865
2864
  }, null, 8, ["stroke"])
2866
2865
  ])
2867
2866
  ]),
2868
- l.showSparklineTable ? (r(), W(C, {
2867
+ l.showSparklineTable ? (a(), E(C, {
2869
2868
  key: `sparkline_${l.segregateStep}`,
2870
2869
  dataset: e.tableSparklineDataset,
2871
2870
  config: e.tableSparklineConfig
2872
- }, null, 8, ["dataset", "config"])) : (r(), W(O, {
2871
+ }, null, 8, ["dataset", "config"])) : (a(), E(G, {
2873
2872
  key: `table_${l.tableStep}`,
2874
2873
  colNames: e.dataTable.colNames,
2875
2874
  head: e.dataTable.head,
2876
2875
  body: e.dataTable.body,
2877
2876
  config: e.dataTable.config,
2878
2877
  title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
2879
- onClose: n[6] || (n[6] = (a) => l.mutableConfig.showTable = !1)
2878
+ onClose: s[6] || (s[6] = (r) => l.mutableConfig.showTable = !1)
2880
2879
  }, {
2881
- th: V(({ th: a }) => [
2882
- f("div", { innerHTML: a }, null, 8, pa)
2880
+ th: V(({ th: r }) => [
2881
+ f("div", { innerHTML: r }, null, 8, Ar)
2883
2882
  ]),
2884
- td: V(({ td: a }) => [
2885
- j(T(isNaN(Number(a)) ? a : e.dataLabel({
2883
+ td: V(({ td: r }) => [
2884
+ $(T(isNaN(Number(r)) ? r : e.dataLabel({
2886
2885
  p: e.FINAL_CONFIG.chart.labels.prefix,
2887
- v: a,
2886
+ v: r,
2888
2887
  s: e.FINAL_CONFIG.chart.labels.suffix,
2889
2888
  r: e.FINAL_CONFIG.table.rounding
2890
2889
  })), 1)
@@ -2895,9 +2894,9 @@ function za(t, n, o, g, l, e) {
2895
2894
  ]),
2896
2895
  _: 1
2897
2896
  }, 8, ["config"])) : d("", !0)
2898
- ], 46, it);
2897
+ ], 46, Ke);
2899
2898
  }
2900
- const Ka = /* @__PURE__ */ lt(rt, [["render", za], ["__scopeId", "data-v-0ac0eb6b"]]);
2899
+ const pr = /* @__PURE__ */ Ue(Je, [["render", Lr], ["__scopeId", "data-v-a2d596ca"]]);
2901
2900
  export {
2902
- Ka as default
2901
+ pr as default
2903
2902
  };