vue-data-ui 3.4.8 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +88 -37
  2. package/dist/{PackageVersion-D-auaEEJ.js → PackageVersion-Cyx_s25h.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-dashboard.js +1 -1
  12. package/dist/components/vue-ui-donut-evolution.js +1 -1
  13. package/dist/components/vue-ui-donut.js +1 -1
  14. package/dist/components/vue-ui-dumbbell.js +1 -1
  15. package/dist/components/vue-ui-flow.js +1 -1
  16. package/dist/components/vue-ui-funnel.js +1 -1
  17. package/dist/components/vue-ui-galaxy.js +1 -1
  18. package/dist/components/vue-ui-gauge.js +1 -1
  19. package/dist/components/vue-ui-gizmo.js +1 -1
  20. package/dist/components/vue-ui-heatmap.js +1 -1
  21. package/dist/components/vue-ui-history-plot.js +1 -1
  22. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  23. package/dist/components/vue-ui-molecule.js +1 -1
  24. package/dist/components/vue-ui-mood-radar.js +1 -1
  25. package/dist/components/vue-ui-nested-donuts.js +1 -1
  26. package/dist/components/vue-ui-onion.js +1 -1
  27. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  28. package/dist/components/vue-ui-quadrant.js +1 -1
  29. package/dist/components/vue-ui-quick-chart.js +1 -1
  30. package/dist/components/vue-ui-radar.js +1 -1
  31. package/dist/components/vue-ui-relation-circle.js +1 -1
  32. package/dist/components/vue-ui-ridgeline.js +1 -1
  33. package/dist/components/vue-ui-rings.js +1 -1
  34. package/dist/components/vue-ui-scatter.js +1 -1
  35. package/dist/components/vue-ui-skeleton.js +1 -1
  36. package/dist/components/vue-ui-spark-trend.js +1 -1
  37. package/dist/components/vue-ui-sparkbar.js +1 -1
  38. package/dist/components/vue-ui-sparkgauge.js +1 -1
  39. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  40. package/dist/components/vue-ui-sparkline.js +1 -1
  41. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  42. package/dist/components/vue-ui-stackbar.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-sparkline.js +1 -1
  45. package/dist/components/vue-ui-table.js +1 -1
  46. package/dist/components/vue-ui-thermometer.js +1 -1
  47. package/dist/components/vue-ui-timer.js +1 -1
  48. package/dist/components/vue-ui-tiremarks.js +1 -1
  49. package/dist/components/vue-ui-treemap.js +1 -1
  50. package/dist/components/vue-ui-vertical-bar.js +1 -1
  51. package/dist/components/vue-ui-waffle.js +1 -1
  52. package/dist/components/vue-ui-wheel.js +1 -1
  53. package/dist/components/vue-ui-word-cloud.js +1 -1
  54. package/dist/components/vue-ui-world.js +1 -1
  55. package/dist/components/vue-ui-xy-canvas.js +1 -1
  56. package/dist/components/vue-ui-xy.js +1 -1
  57. package/dist/style.css +1 -1
  58. package/dist/{vue-data-ui-CzqHcPqG.js → vue-data-ui-DxgRqCAo.js} +104 -98
  59. package/dist/vue-data-ui.js +54 -54
  60. package/dist/{vue-ui-3d-bar-CwXiD8zD.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
  61. package/dist/{vue-ui-age-pyramid-DlEPlWmV.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
  62. package/dist/{vue-ui-bullet-DtzpeIu4.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
  63. package/dist/{vue-ui-candlestick-DzoiyaeB.js → vue-ui-candlestick-DewevWV_.js} +1 -1
  64. package/dist/{vue-ui-carousel-table-BqRERrjs.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
  65. package/dist/{vue-ui-chestnut-CzBGckif.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
  66. package/dist/{vue-ui-chord-B4waG93A.js → vue-ui-chord-BG4dxKNA.js} +1 -1
  67. package/dist/{vue-ui-circle-pack-DiTw_p5r.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
  68. package/dist/{vue-ui-dashboard-Bt-MUKqy.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
  69. package/dist/{vue-ui-donut-Bc492JeS.js → vue-ui-donut-BRGFcgxS.js} +542 -526
  70. package/dist/{vue-ui-donut-evolution-D6TaZK2x.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
  71. package/dist/{vue-ui-dumbbell-BlZr68Sq.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
  72. package/dist/{vue-ui-flow-ByEP18dA.js → vue-ui-flow-CTYFoib3.js} +1 -1
  73. package/dist/{vue-ui-funnel-BU7d_U6T.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
  74. package/dist/{vue-ui-galaxy-CpVrxaTr.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
  75. package/dist/{vue-ui-gauge-B9Z4EXoj.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
  76. package/dist/{vue-ui-gizmo-T1paJEJ3.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
  77. package/dist/{vue-ui-heatmap-Uw83eEMz.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
  78. package/dist/{vue-ui-history-plot-C93VwVCY.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
  79. package/dist/{vue-ui-molecule-CFMWwXFN.js → vue-ui-molecule-BALqwB8c.js} +1 -1
  80. package/dist/{vue-ui-mood-radar-FkVaaOVG.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
  81. package/dist/{vue-ui-nested-donuts-Cyi98NXq.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
  82. package/dist/{vue-ui-onion-BCENNhsY.js → vue-ui-onion-DAOCf3f8.js} +331 -309
  83. package/dist/{vue-ui-parallel-coordinate-plot-Dca9wkD0.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
  84. package/dist/{vue-ui-quadrant-CEtFEZT3.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
  85. package/dist/{vue-ui-quick-chart-bqcp6BIl.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
  86. package/dist/{vue-ui-radar-lgRCmyNP.js → vue-ui-radar-C5V4hhbW.js} +393 -374
  87. package/dist/{vue-ui-relation-circle-cRRrbaIT.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
  88. package/dist/{vue-ui-ridgeline-CaeFJq9a.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
  89. package/dist/{vue-ui-rings-DbsYfGjx.js → vue-ui-rings-BpUcyqo7.js} +285 -263
  90. package/dist/{vue-ui-scatter-DcMnoNrY.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
  91. package/dist/{vue-ui-skeleton-b5fdgyHv.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
  92. package/dist/{vue-ui-spark-trend-DrQ26BzL.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
  93. package/dist/{vue-ui-sparkbar-BlvXLcfO.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
  94. package/dist/{vue-ui-sparkgauge-CQmNePxu.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
  95. package/dist/{vue-ui-sparkhistogram-CJatqy8x.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
  96. package/dist/{vue-ui-sparkline-5m7hFiMq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
  97. package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
  98. package/dist/{vue-ui-stackbar-WrexTg8_.js → vue-ui-stackbar-CkBOjryQ.js} +438 -421
  99. package/dist/{vue-ui-strip-plot-DqX7yya9.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
  100. package/dist/{vue-ui-table-BhrP9BCp.js → vue-ui-table-7r02N9R9.js} +2 -2
  101. package/dist/{vue-ui-table-sparkline-BECa8n5_.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
  102. package/dist/{vue-ui-thermometer-BxBGrsSR.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
  103. package/dist/{vue-ui-timer-BbHY5Ed5.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
  104. package/dist/{vue-ui-tiremarks-DzL3Sc1f.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
  105. package/dist/{vue-ui-treemap-DoHoS5NK.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
  106. package/dist/{vue-ui-vertical-bar-D0N5btU-.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
  107. package/dist/{vue-ui-waffle-CTt7dxCY.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
  108. package/dist/{vue-ui-wheel--TIPvQ9I.js → vue-ui-wheel-BpirIgAG.js} +1 -1
  109. package/dist/{vue-ui-word-cloud-D5pZq4Jq.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
  110. package/dist/{vue-ui-world-BERHgePa.js → vue-ui-world-CdP4g_3_.js} +1 -1
  111. package/dist/{vue-ui-xy-BI5stV8f.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
  112. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
  113. package/package.json +1 -1
  114. package/dist/vue-ui-sparkstackbar-Z5g6L2Hj.js +0 -424
@@ -1,64 +1,64 @@
1
- import { defineAsyncComponent as Ye, useSlots as Eo, getCurrentInstance as Yo, ref as x, computed as b, onMounted as Ul, toRefs as Wo, watch as Al, watchEffect as Lt, onBeforeUnmount as ya, nextTick as Mt, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as ll, createBlock as Ae, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, createSlots as At, withCtx as Q, renderSlot as W, normalizeProps as We, guardReactiveProps as Xe, Fragment as d, renderList as w, mergeProps as al, toDisplayString as ae, Teleport as Xo, resolveDynamicComponent as Go, withDirectives as Uo, vModelCheckbox as qo, createTextVNode as Ct } from "vue";
2
- import { c as ka, f as _a, t as Zo, e as Jo, m as Cl, n as tl, h as Tt, p as zt, q as ql, r as E, u as wa, v as Ko, w as Qo, x as P, y as It, z as Ot, A as Nt, B as Vt, C as jo, D as Pt, E as Ft, a as se, F as es, G as Rt, H as ls, j as Bt, k as Ne, d as Ve, i as ol, s as Ce, I as as, J as Ge, K as Zl, L as _e, M as ts, N as Ue, O as fe, b as os, o as Ht, P as ss, Q as us, R as dl } from "./lib-C_mNZmhD.js";
3
- import { t as is } from "./useResponsive-DfdjqQps.js";
4
- import { u as ns, a as Jl } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as rs } from "./usePrinter-DTzqpYKF.js";
6
- import { u as cs, B as vs } from "./BaseScanner-BgWxam9d.js";
7
- import { u as Dt, a as ds, l as hs } from "./useTimeLabels-BGFjWgrv.js";
8
- import { u as fs } from "./useSvgExport-DrjCWun4.js";
9
- import { u as gs } from "./useTimeLabelCollider-CIsgDrl9.js";
10
- import ms from "./img-BecE5qXd.js";
11
- import bs from "./Title-l36lOBMx.js";
12
- import { t as xs } from "./themes-AUNCOb2G.js";
13
- import { _ as Kl } from "./Shape-CNXKB8O0.js";
14
- import { S as ps } from "./SlicerPreview-ij72TAs6.js";
15
- import ys from "./vue-ui-accordion-CZ0thhxa.js";
16
- import { _ as ks } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y", "width", "height"], Ls = { key: 1 }, Ms = { class: "vue-ui-xy-grid" }, As = ["stroke", "x1", "x2", "y1", "y2"], Cs = ["stroke", "x1", "x2", "y1", "y2"], Ts = { key: 1 }, zs = ["x1", "x2", "y1", "y2", "stroke"], Is = ["x1", "x2", "y1", "y2", "stroke"], Os = ["x1", "x2", "y1", "y2", "stroke"], Ns = { key: 3 }, Vs = ["d", "stroke"], Ps = { key: 4 }, Fs = ["d", "stroke"], Rs = ["id"], Bs = ["stop-color"], Hs = ["stop-color"], Ds = ["stop-color"], Es = ["id"], Ys = ["stop-color"], Ws = ["stop-color"], Xs = ["stop-color"], Gs = ["id"], Us = ["stop-color"], qs = ["stop-color"], Zs = ["id"], Js = ["stop-color"], Ks = ["stop-color"], Qs = ["id"], js = ["stop-color"], eu = ["stop-color"], lu = ["x", "y", "height", "width", "fill"], au = ["x", "y", "width"], tu = { key: 0 }, ou = ["x", "y", "height", "width", "fill"], su = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], uu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], iu = ["width", "x", "y"], nu = ["stroke", "x1", "x2", "y1", "y2"], ru = { key: 3 }, cu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], vu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], du = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hu = ["fill", "font-size", "transform"], fu = ["x1", "x2", "y1", "y2", "stroke"], gu = ["x", "y", "font-size", "fill"], mu = ["x1", "x2", "y1", "y2", "stroke"], bu = ["x", "y", "font-size", "fill"], xu = ["width", "x", "y"], pu = { style: { width: "100%" } }, yu = ["d", "stroke", "stroke-width", "stroke-dasharray"], ku = ["d", "stroke", "stroke-width", "stroke-dasharray"], _u = { key: 6 }, wu = { key: 7 }, Su = ["d", "fill", "fill-opacity"], $u = { key: 0 }, Lu = ["d", "fill"], Mu = ["d", "fill"], Au = ["d", "fill"], Cu = ["d", "fill"], Tu = ["d", "stroke", "stroke-width", "stroke-dasharray"], zu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Iu = ["width", "x", "y"], Ou = { style: { width: "100%" } }, Nu = { key: 8 }, Vu = ["x", "y", "font-size", "fill"], Pu = ["x", "y", "font-size", "fill", "font-weight"], Fu = { key: 9 }, Ru = ["x", "y", "font-size", "fill"], Bu = { key: 10 }, Hu = ["x", "y"], Du = ["innerHTML"], Eu = ["x", "y"], Yu = ["innerHTML"], Wu = ["x1", "x2", "y1", "y2", "stroke"], Xu = { key: 11 }, Gu = ["x", "y", "font-size", "fill"], Uu = { key: 12 }, qu = ["x", "y"], Zu = ["innerHTML"], Ju = ["x", "y"], Ku = ["innerHTML"], Qu = ["x1", "x2", "y1", "y2", "stroke"], ju = ["x", "y", "font-size", "fill", "innerHTML"], ei = ["x", "y", "font-size", "fill", "innerHTML"], li = ["x", "y", "font-size", "fill", "innerHTML"], ai = ["x", "y", "font-size", "fill", "innerHTML"], ti = { key: 0 }, oi = ["id"], si = ["fill", "stroke"], ui = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ii = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ni = ["x", "y", "font-size", "fill", "stroke"], ri = ["id"], ci = ["stop-color"], vi = ["stop-color"], di = ["x", "y", "width", "height", "fill", "onMouseenter"], hi = ["font-size", "fill", "transform"], fi = ["x", "y", "font-size", "fill"], gi = ["text-anchor", "font-size", "fill", "transform", "onClick"], mi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], bi = { key: 15 }, xi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], pi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], yi = ["y", "x", "width", "height", "fill"], ki = ["id", "x", "y", "font-size", "fill", "text-anchor"], _i = {
1
+ import { defineAsyncComponent as Ye, useSlots as Xo, getCurrentInstance as Go, ref as x, computed as b, onMounted as ql, toRefs as Uo, watch as Al, watchEffect as Ma, onBeforeUnmount as kt, nextTick as Aa, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as ll, createBlock as Ae, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, createSlots as Ca, withCtx as j, renderSlot as W, normalizeProps as We, guardReactiveProps as Xe, Fragment as d, renderList as w, mergeProps as tl, toDisplayString as te, Teleport as qo, resolveDynamicComponent as Zo, withDirectives as Jo, vModelCheckbox as Ko, createTextVNode as Ta } from "vue";
2
+ import { c as _t, f as wt, t as Qo, e as jo, m as Cl, n as al, h as za, p as Ia, q as Zl, r as E, u as St, v as es, w as ls, x as P, y as Oa, z as Na, A as Va, B as Pa, C as ts, D as Fa, E as Ra, a as se, F as as, G as Ba, H as os, j as Ha, k as Ne, d as Ve, i as ol, s as Ce, I as ss, J as Ge, K as Jl, L as we, M as us, N as Ue, O as fe, b as is, o as Da, P as ns, Q as rs, R as dl } from "./lib-C_mNZmhD.js";
3
+ import { t as cs } from "./useResponsive-DfdjqQps.js";
4
+ import { u as vs, a as Kl } from "./useNestedProp-BjZe1Y85.js";
5
+ import { u as ds } from "./usePrinter-DTzqpYKF.js";
6
+ import { u as hs, B as fs } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as Ea, a as gs, l as ms } from "./useTimeLabels-BGFjWgrv.js";
8
+ import { u as bs } from "./useSvgExport-DrjCWun4.js";
9
+ import { u as xs } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import ps from "./img-BecE5qXd.js";
11
+ import ys from "./Title-l36lOBMx.js";
12
+ import { t as ks } from "./themes-AUNCOb2G.js";
13
+ import { _ as Ql } from "./Shape-CNXKB8O0.js";
14
+ import { S as _s } from "./SlicerPreview-ij72TAs6.js";
15
+ import ws from "./vue-ui-accordion-CZ0thhxa.js";
16
+ import { _ as Ss } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y", "width", "height"], Cs = { key: 1 }, Ts = { class: "vue-ui-xy-grid" }, zs = ["stroke", "x1", "x2", "y1", "y2"], Is = ["stroke", "x1", "x2", "y1", "y2"], Os = { key: 1 }, Ns = ["x1", "x2", "y1", "y2", "stroke"], Vs = ["x1", "x2", "y1", "y2", "stroke"], Ps = ["x1", "x2", "y1", "y2", "stroke"], Fs = { key: 3 }, Rs = ["d", "stroke"], Bs = { key: 4 }, Hs = ["d", "stroke"], Ds = ["id"], Es = ["stop-color"], Ys = ["stop-color"], Ws = ["stop-color"], Xs = ["id"], Gs = ["stop-color"], Us = ["stop-color"], qs = ["stop-color"], Zs = ["id"], Js = ["stop-color"], Ks = ["stop-color"], Qs = ["id"], js = ["stop-color"], eu = ["stop-color"], lu = ["id"], tu = ["stop-color"], au = ["stop-color"], ou = ["x", "y", "height", "width", "fill"], su = ["x", "y", "width"], uu = { key: 0 }, iu = ["x", "y", "height", "width", "fill"], nu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ru = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], cu = ["width", "x", "y"], vu = ["stroke", "x1", "x2", "y1", "y2"], du = { key: 3 }, hu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], gu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mu = ["fill", "font-size", "transform"], bu = ["x1", "x2", "y1", "y2", "stroke"], xu = ["x", "y", "font-size", "fill"], pu = ["x1", "x2", "y1", "y2", "stroke"], yu = ["x", "y", "font-size", "fill"], ku = ["width", "x", "y"], _u = { style: { width: "100%" } }, wu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Su = ["d", "stroke", "stroke-width", "stroke-dasharray"], $u = { key: 6 }, Lu = { key: 7 }, Mu = ["d", "fill", "fill-opacity"], Au = { key: 0 }, Cu = ["d", "fill"], Tu = ["d", "fill"], zu = ["d", "fill"], Iu = ["d", "fill"], Ou = ["d", "stroke", "stroke-width", "stroke-dasharray"], Nu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Vu = ["width", "x", "y"], Pu = { style: { width: "100%" } }, Fu = { key: 8 }, Ru = ["x", "y", "font-size", "fill"], Bu = ["x", "y", "font-size", "fill", "font-weight"], Hu = { key: 9 }, Du = ["x", "y", "font-size", "fill"], Eu = { key: 10 }, Yu = ["x", "y"], Wu = ["innerHTML"], Xu = ["x", "y"], Gu = ["innerHTML"], Uu = ["x1", "x2", "y1", "y2", "stroke"], qu = { key: 11 }, Zu = ["x", "y", "font-size", "fill"], Ju = { key: 12 }, Ku = ["x", "y"], Qu = ["innerHTML"], ju = ["x", "y"], ei = ["innerHTML"], li = ["x1", "x2", "y1", "y2", "stroke"], ti = ["x", "y", "font-size", "fill", "innerHTML"], ai = ["x", "y", "font-size", "fill", "innerHTML"], oi = ["x", "y", "font-size", "fill", "innerHTML"], si = ["x", "y", "font-size", "fill", "innerHTML"], ui = { key: 0 }, ii = ["id"], ni = ["fill", "stroke"], ri = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ci = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], vi = ["x", "y", "font-size", "fill", "stroke"], di = ["id"], hi = ["stop-color"], fi = ["stop-color"], gi = ["x", "y", "width", "height", "fill", "onMouseenter"], mi = ["font-size", "fill", "transform"], bi = ["x", "y", "font-size", "fill"], xi = ["text-anchor", "font-size", "fill", "transform", "onClick"], pi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], yi = { key: 15 }, ki = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], _i = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], wi = ["y", "x", "width", "height", "fill"], Si = ["id", "x", "y", "font-size", "fill", "text-anchor"], $i = {
18
18
  key: 16,
19
19
  style: { "pointer-events": "none" }
20
- }, wi = ["x", "y"], Si = ["innerHTML"], $i = ["cx", "cy", "r", "fill"], Li = ["data-start", "data-end"], Mi = {
20
+ }, Li = ["x", "y"], Mi = ["innerHTML"], Ai = ["cx", "cy", "r", "fill"], Ci = ["data-start", "data-end"], Ti = {
21
21
  key: 4,
22
22
  class: "vue-data-ui-watermark"
23
- }, Ai = {
23
+ }, zi = {
24
24
  class: "vue-ui-xy-tag-arrow",
25
25
  height: "20",
26
26
  viewBox: "0 0 10 20",
27
27
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
28
- }, Ci = ["fill"], Ti = ["innerHTML"], zi = {
28
+ }, Ii = ["fill"], Oi = ["innerHTML"], Ni = {
29
29
  class: "vue-ui-xy-tag-arrow",
30
30
  height: "100%",
31
31
  viewBox: "0 0 10 20",
32
32
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
33
- }, Ii = ["fill"], Oi = ["innerHTML"], Ni = {
33
+ }, Vi = ["fill"], Pi = ["innerHTML"], Fi = {
34
34
  class: "vue-ui-xy-tag-arrow",
35
35
  height: "20",
36
36
  viewBox: "0 0 10 20",
37
37
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
38
- }, Vi = ["fill"], Pi = ["innerHTML"], Fi = {
38
+ }, Ri = ["fill"], Bi = ["innerHTML"], Hi = {
39
39
  class: "vue-ui-xy-tag-arrow",
40
40
  height: "100%",
41
41
  viewBox: "0 0 10 20",
42
42
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
43
- }, Ri = ["fill"], Bi = ["innerHTML"], Hi = ["id"], Di = ["onClick"], Ei = {
43
+ }, Di = ["fill"], Ei = ["innerHTML"], Yi = ["id"], Wi = ["onClick"], Xi = {
44
44
  key: 0,
45
45
  viewBox: "0 0 20 12",
46
46
  height: "1em",
47
47
  width: "1.43em"
48
- }, Yi = ["stroke", "fill"], Wi = {
48
+ }, Gi = ["stroke", "fill"], Ui = {
49
49
  key: 1,
50
50
  viewBox: "0 0 40 40",
51
51
  height: "1em",
52
52
  width: "1em"
53
- }, Xi = ["fill"], Gi = ["fill"], Ui = {
53
+ }, qi = ["fill"], Zi = ["fill"], Ji = {
54
54
  key: 2,
55
55
  viewBox: "0 0 12 12",
56
56
  height: "1em",
57
57
  width: "1em"
58
- }, qi = {
58
+ }, Ki = {
59
59
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
60
60
  "data-dom-to-png-ignore": ""
61
- }, Zi = ["innerHTML"], Ji = {
61
+ }, Qi = ["innerHTML"], ji = {
62
62
  __name: "vue-ui-xy",
63
63
  props: {
64
64
  config: {
@@ -79,26 +79,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
79
79
  }
80
80
  },
81
81
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
82
- setup(Ql, { expose: Et, emit: Yt }) {
83
- const g = Ql, Wt = Ye(() => import("./DataTable-BT7VF2ua.js")), Xt = Ye(() => import("./Tooltip-oWCO1HKy.js")), Gt = Ye(() => import("./UserOptions-CGnQt6Fd.js")), Sa = Ye(() => import("./BaseIcon-BmMbm4d0.js")), Ut = Ye(() => import("./vue-ui-table-sparkline-BECa8n5_.js")), qt = Ye(() => import("./PackageVersion-D-auaEEJ.js")), Zt = Ye(() => import("./PenAndPaper-DSvu9dwa.js")), Jt = Ye(() => import("./BaseDraggableDialog-ymf2sfB8.js")), jl = Yt, $a = Eo(), Kt = Yo(), { vue_ui_xy: hl } = ns(), Te = x(null), fl = x(null), ze = x(null), sl = x(null), gl = x(null), ml = x(null), Qt = x(null), ea = x(null), la = x(null), ul = x(null), aa = x(null), ta = x(null), Re = x(null), oa = x(null), jt = x(0), I = x(null), La = x(!0), ve = x(600), j = x(1e3), Tl = x("0 0 1000 600"), eo = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), Ma = x(!1), Ze = x(null), ee = x([]), D = x(ka()), Aa = x(0), Ca = x(0), Ta = x(0), pl = x(!0), sa = x(0), V = x(null), za = x(!1), ua = x(!0), zl = x(!0), ue = x(null), Pe = x({}), Il = x(null), Ia = x(!1), il = x(null), _ = x(null), lo = b(() => ({
82
+ setup(jl, { expose: Ya, emit: Wa }) {
83
+ const g = jl, Xa = Ye(() => import("./DataTable-BT7VF2ua.js")), Ga = Ye(() => import("./Tooltip-oWCO1HKy.js")), Ua = Ye(() => import("./UserOptions-CGnQt6Fd.js")), $t = Ye(() => import("./BaseIcon-BmMbm4d0.js")), qa = Ye(() => import("./vue-ui-table-sparkline-DZaAh10E.js")), Za = Ye(() => import("./PackageVersion-Cyx_s25h.js")), Ja = Ye(() => import("./PenAndPaper-DSvu9dwa.js")), Ka = Ye(() => import("./BaseDraggableDialog-ymf2sfB8.js")), et = Wa, Lt = Xo(), Qa = Go(), { vue_ui_xy: hl } = vs(), Te = x(null), fl = x(null), ze = x(null), sl = x(null), gl = x(null), ml = x(null), ja = x(null), lt = x(null), tt = x(null), ul = x(null), at = x(null), ot = x(null), Re = x(null), st = x(null), eo = x(0), I = x(null), Mt = x(!0), ve = x(600), ee = x(1e3), Tl = x("0 0 1000 600"), lo = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), At = x(!1), Ze = x(null), Z = x([]), D = x(_t()), Ct = x(0), Tt = x(0), zt = x(0), pl = x(!0), ut = x(0), V = x(null), It = x(!1), it = x(!0), zl = x(!0), ue = x(null), Pe = x({}), Il = x(null), Ot = x(!1), il = x(null), _ = x(null), to = b(() => ({
84
84
  height: ve.value,
85
- width: j.value
85
+ width: ee.value
86
86
  }));
87
- function Oa(a) {
88
- return Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 0;
87
+ function Nt(t) {
88
+ return Number.isFinite(t) ? Math.max(0, Math.floor(t)) : 0;
89
89
  }
90
- function ia(a, s, e = 0) {
91
- return Number.isFinite(a) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? a / s : e;
90
+ function nt(t, s, e = 0) {
91
+ return Number.isFinite(t) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? t / s : e;
92
92
  }
93
- const Na = x(!1), y = x({
93
+ const Vt = x(!1), y = x({
94
94
  xAxis: 18,
95
95
  yAxis: 12,
96
96
  dataLabels: 20,
97
97
  plotLabels: 10
98
- }), we = x({ plot: 3, line: 3 });
99
- Ul(() => {
100
- Ia.value = !0, g.dataset.length && g.dataset.forEach((a, s) => {
101
- [null, void 0].includes(a.series) && _a({
98
+ }), Se = x({ plot: 3, line: 3 });
99
+ ql(() => {
100
+ Ot.value = !0, g.dataset.length && g.dataset.forEach((t, s) => {
101
+ [null, void 0].includes(t.series) && wt({
102
102
  componentName: "VueUiXy",
103
103
  type: "datasetSerieAttribute",
104
104
  property: "series (number[])",
@@ -107,63 +107,63 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
107
107
  });
108
108
  });
109
109
  });
110
- function na() {
110
+ function rt() {
111
111
  if (!Object.keys(g.config || {}).length)
112
112
  return hl;
113
- const a = Jl({
113
+ const t = Kl({
114
114
  userConfig: g.config,
115
115
  defaultConfig: hl
116
116
  });
117
- return g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? a.chart.highlightArea = g.config.chart.highlightArea : a.chart.highlightArea = [g.config.chart.highlightArea]), g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = g.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = g.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, g.config && fe(g.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = g.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, g.config && fe(g.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = g.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, g.config && fe(g.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = g.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, g.config && fe(g.config, "chart.annotations") && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? a.chart.annotations = g.config.chart.annotations.map((s) => Jl({
117
+ return g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? t.chart.highlightArea = g.config.chart.highlightArea : t.chart.highlightArea = [g.config.chart.highlightArea]), g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMin") ? t.chart.grid.labels.yAxis.scaleMin = g.config.chart.grid.labels.yAxis.scaleMin : t.chart.grid.labels.yAxis.scaleMin = null, g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMax") ? t.chart.grid.labels.yAxis.scaleMax = g.config.chart.grid.labels.yAxis.scaleMax : t.chart.grid.labels.yAxis.scaleMax = null, g.config && fe(g.config, "chart.zoom.startIndex") ? t.chart.zoom.startIndex = g.config.chart.zoom.startIndex : t.chart.zoom.startIndex = null, g.config && fe(g.config, "chart.zoom.endIndex") ? t.chart.zoom.endIndex = g.config.chart.zoom.endIndex : t.chart.zoom.endIndex = null, g.config && fe(g.config, "chart.grid.labels.yAxis.groupColor") ? t.chart.grid.labels.yAxis.groupColor = g.config.chart.grid.labels.yAxis.groupColor : t.chart.grid.labels.yAxis.groupColor = null, g.config && fe(g.config, "chart.annotations") && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? t.chart.annotations = g.config.chart.annotations.map((s) => Kl({
118
118
  defaultConfig: hl.chart.annotations[0],
119
119
  userConfig: s
120
- })) : a.chart.annotations = [], g.config && fe(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((s) => s.type === "bar") && (a.chart.grid.position = "middle", fe(g.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), g.config && fe(g.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = g.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, g.config && fe(g.config, "events.datapointEnter") ? a.events.datapointEnter = g.config.events.datapointEnter : a.events.datapointEnter = null, g.config && fe(g.config, "events.datapointLeave") ? a.events.datapointLeave = g.config.events.datapointLeave : a.events.datapointLeave = null, g.config && fe(g.config, "events.datapointClick") ? a.events.datapointClick = g.config.events.datapointClick : a.events.datapointClick = null, g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? a.chart.highlightArea = g.config.chart.highlightArea.map((s) => Va({
120
+ })) : t.chart.annotations = [], g.config && fe(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((s) => s.type === "bar") && (t.chart.grid.position = "middle", fe(g.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), g.config && fe(g.config, "chart.grid.labels.yAxis.serieNameFormatter") ? t.chart.grid.labels.yAxis.serieNameFormatter = g.config.chart.grid.labels.yAxis.serieNameFormatter : t.chart.grid.labels.yAxis.serieNameFormatter = null, g.config && fe(g.config, "events.datapointEnter") ? t.events.datapointEnter = g.config.events.datapointEnter : t.events.datapointEnter = null, g.config && fe(g.config, "events.datapointLeave") ? t.events.datapointLeave = g.config.events.datapointLeave : t.events.datapointLeave = null, g.config && fe(g.config, "events.datapointClick") ? t.events.datapointClick = g.config.events.datapointClick : t.events.datapointClick = null, g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? t.chart.highlightArea = g.config.chart.highlightArea.map((s) => Pt({
121
121
  defaultConfig: hl.chart.highlightArea,
122
122
  userConfig: s
123
- })) : a.chart.highlightArea = Va({
123
+ })) : t.chart.highlightArea = Pt({
124
124
  defaultConfig: hl.chart.highlightArea,
125
125
  userConfig: g.config.chart.highlightArea
126
- })), a.theme ? {
127
- ...Jl({
128
- userConfig: xs.vue_ui_xy[a.theme] || g.config,
129
- defaultConfig: a
126
+ })), t.theme ? {
127
+ ...Kl({
128
+ userConfig: ks.vue_ui_xy[t.theme] || g.config,
129
+ defaultConfig: t
130
130
  }),
131
- customPalette: os[a.theme] || g.palette
132
- } : a;
131
+ customPalette: is[t.theme] || g.palette
132
+ } : t;
133
133
  }
134
- function Va({ defaultConfig: a, userConfig: s }) {
135
- return Jl({
136
- defaultConfig: a,
134
+ function Pt({ defaultConfig: t, userConfig: s }) {
135
+ return Kl({
136
+ defaultConfig: t,
137
137
  userConfig: s
138
138
  });
139
139
  }
140
- const ra = b({
140
+ const ct = b({
141
141
  get() {
142
142
  return !!g.dataset && g.dataset.length;
143
143
  },
144
- set(a) {
145
- return a;
144
+ set(t) {
145
+ return t;
146
146
  }
147
- }), l = x(na()), f = x({
147
+ }), l = x(rt()), f = x({
148
148
  dataLabels: { show: !0 },
149
149
  showTooltip: !0,
150
150
  showTable: !1,
151
151
  isStacked: !1,
152
152
  useIndividualScale: !1
153
153
  });
154
- function ca() {
155
- Na.value ? (f.value.isStacked = l.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
154
+ function vt() {
155
+ Vt.value ? (f.value.isStacked = l.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
156
156
  dataLabels: { show: !0 },
157
157
  showTooltip: l.value.chart.tooltip.show === !0,
158
158
  showTable: l.value.showTable === !0,
159
159
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
160
160
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
161
- }, Na.value = !0);
161
+ }, Vt.value = !0);
162
162
  }
163
- const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } = cs({
164
- ...Wo(g),
163
+ const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } = hs({
164
+ ...Uo(g),
165
165
  FINAL_CONFIG: l,
166
- prepareConfig: na,
166
+ prepareConfig: rt,
167
167
  callback: () => {
168
168
  Promise.resolve().then(async () => {
169
169
  await Rl(), f.value.showTable = l.value.showTable;
@@ -184,7 +184,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
184
184
  color: "#CACACA"
185
185
  }
186
186
  ],
187
- skeletonConfig: Zo({
187
+ skeletonConfig: Qo({
188
188
  defaultConfig: l.value,
189
189
  userConfig: {
190
190
  useCssAnimation: !1,
@@ -242,35 +242,35 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
242
242
  }
243
243
  })
244
244
  });
245
- function ao(a) {
245
+ function ao(t) {
246
246
  const s = /* @__PURE__ */ new WeakMap();
247
247
  return (e, ...u) => {
248
- let t = s.get(e);
248
+ let a = s.get(e);
249
249
  const i = JSON.stringify(u);
250
- if (t && t.has(i)) return t.get(i);
251
- const o = a(e, ...u);
252
- return t || (t = /* @__PURE__ */ new Map(), s.set(e, t)), t.set(i, o), o;
250
+ if (a && a.has(i)) return a.get(i);
251
+ const o = t(e, ...u);
252
+ return a || (a = /* @__PURE__ */ new Map(), s.set(e, a)), a.set(i, o), o;
253
253
  };
254
254
  }
255
- const to = ao((a, s) => wa({ data: a, threshold: s })), Be = (a) => to(a, l.value.downsample.threshold), Ie = b({
256
- get: () => Math.max(...ge.value.map((a) => Be(a.series).length)),
257
- set: (a) => a
258
- }), m = x({ start: 0, end: Ie.value }), Se = x({ start: 0, end: Ie.value }), Pa = b(() => l.value.chart.zoom.preview.enable && (Se.value.start !== m.value.start || Se.value.end !== m.value.end));
259
- function Fa(a, s) {
260
- Se.value[a] = s;
255
+ const oo = ao((t, s) => St({ data: t, threshold: s })), Be = (t) => oo(t, l.value.downsample.threshold), Ie = b({
256
+ get: () => Math.max(...ge.value.map((t) => Be(t.series).length)),
257
+ set: (t) => t
258
+ }), m = x({ start: 0, end: Ie.value }), $e = x({ start: 0, end: Ie.value }), Ft = b(() => l.value.chart.zoom.preview.enable && ($e.value.start !== m.value.start || $e.value.end !== m.value.end));
259
+ function Rt(t, s) {
260
+ $e.value[t] = s;
261
261
  }
262
262
  function nl() {
263
- const a = Math.max(
263
+ const t = Math.max(
264
264
  1,
265
265
  ...ge.value.map((u) => Be(u.series).length)
266
266
  );
267
- let s = Math.max(0, Math.min(m.value.start ?? 0, a - 1)), e = Math.max(s + 1, Math.min(m.value.end ?? a, a));
268
- (!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = a), m.value = { start: s, end: e }, Se.value.start = s, Se.value.end = e, ze.value && (ze.value.setStartValue(s), ze.value.setEndValue(e));
267
+ let s = Math.max(0, Math.min(m.value.start ?? 0, t - 1)), e = Math.max(s + 1, Math.min(m.value.end ?? t, t));
268
+ (!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = t), m.value = { start: s, end: e }, $e.value.start = s, $e.value.end = e, ze.value && (ze.value.setStartValue(s), ze.value.setEndValue(e));
269
269
  }
270
- const oo = b(() => {
271
- const { left: a, top: s, width: e, height: u } = c.value, t = m.value.start, o = m.value.end - t, A = e / o, C = Se.value.start - t, O = Se.value.end - t, S = Math.max(0, Math.min(o, C)), T = Math.max(0, Math.min(o, O));
270
+ const so = b(() => {
271
+ const { left: t, top: s, width: e, height: u } = c.value, a = m.value.start, o = m.value.end - a, A = e / o, C = $e.value.start - a, O = $e.value.end - a, S = Math.max(0, Math.min(o, C)), T = Math.max(0, Math.min(o, O));
272
272
  return {
273
- x: a + S * A,
273
+ x: t + S * A,
274
274
  y: s,
275
275
  width: (T - S) * A,
276
276
  height: u,
@@ -287,216 +287,216 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
287
287
  }
288
288
  };
289
289
  });
290
- Al(() => g.selectedXIndex, (a) => {
290
+ Al(() => g.selectedXIndex, (t) => {
291
291
  if ([null, void 0].includes(g.selectedXIndex)) {
292
292
  _.value = null;
293
293
  return;
294
294
  }
295
- const s = a - m.value.start;
296
- s < 0 || a >= m.value.end ? _.value = null : _.value = s ?? null;
295
+ const s = t - m.value.start;
296
+ s < 0 || t >= m.value.end ? _.value = null : _.value = s ?? null;
297
297
  }, { immediate: !0 });
298
- const { isPrinting: va, isImaging: Ra, generatePdf: Ba, generateImage: Ha } = rs({
298
+ const { isPrinting: dt, isImaging: Bt, generatePdf: Ht, generateImage: Dt } = ds({
299
299
  elementId: `vue-ui-xy_${D.value}`,
300
300
  fileName: l.value.chart.title.text || "vue-ui-xy",
301
301
  options: l.value.chart.userOptions.print
302
- }), so = x(!1), Nl = b(() => Jo(l.value.customPalette)), Vl = b(() => {
302
+ }), uo = x(!1), Nl = b(() => jo(l.value.customPalette)), Vl = b(() => {
303
303
  if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
304
304
  return l.value.chart.grid.labels.yAxis.scaleMin;
305
- const a = Math.min(...Fe.value.filter((s) => !ee.value.includes(s.id)).map((s) => Math.min(...s.series)));
306
- return a > 0 ? 0 : a;
305
+ const t = Math.min(...Fe.value.filter((s) => !Z.value.includes(s.id)).map((s) => Math.min(...s.series)));
306
+ return t > 0 ? 0 : t;
307
307
  }), Pl = b(() => {
308
308
  if (l.value.chart.grid.labels.yAxis.scaleMax)
309
309
  return l.value.chart.grid.labels.yAxis.scaleMax;
310
- const a = Math.max(...Fe.value.filter((s) => !ee.value.includes(s.id)).map((s) => Math.max(...s.series)));
311
- return Vl.value === a ? a + 1 : a;
312
- }), $e = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : tl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = b(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? $e.value.min >= 0 ? 0 : Math.abs($e.value.min) : -$e.value.min), Fe = b(() => La.value ? ge.value.map((a, s) => {
313
- const e = Be(a.series), u = `uniqueId_${s}`;
310
+ const t = Math.max(...Fe.value.filter((s) => !Z.value.includes(s.id)).map((s) => Math.max(...s.series)));
311
+ return Vl.value === t ? t + 1 : t;
312
+ }), Le = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : al(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = b(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Le.value.min >= 0 ? 0 : Math.abs(Le.value.min) : -Le.value.min), Fe = b(() => Mt.value ? ge.value.map((t, s) => {
313
+ const e = Be(t.series), u = `uniqueId_${s}`;
314
314
  return {
315
- ...a,
315
+ ...t,
316
316
  slotAbsoluteIndex: s,
317
- series: e.map((t) => ql(t) ? t : null).slice(m.value.start, m.value.end),
318
- color: Tt(a.color ? a.color : Nl.value[s] ? Nl.value[s] : zt[s]),
317
+ series: e.map((a) => Zl(a) ? a : null).slice(m.value.start, m.value.end),
318
+ color: za(t.color ? t.color : Nl.value[s] ? Nl.value[s] : Ia[s]),
319
319
  id: u,
320
- scaleLabel: a.scaleLabel || u
320
+ scaleLabel: t.scaleLabel || u
321
321
  };
322
- }) : ge.value), Le = b(() => Fe.value.map((a, s) => ({
322
+ }) : ge.value), me = b(() => Fe.value.map((t, s) => ({
323
323
  absoluteIndex: s,
324
- ...a,
325
- series: a.series.map((e) => e + kl.value),
326
- absoluteValues: a.series,
327
- segregate: () => ot(a),
328
- isSegregated: ee.value.includes(a.id)
329
- }))), ye = b(() => Fe.value.map((a, s) => ({
330
- ...a,
331
- series: a.series.map((e) => e + kl.value),
332
- absoluteValues: a.series
333
- })).filter((a) => !ee.value.includes(a.id)));
334
- function uo() {
335
- let a = 0;
336
- aa.value && (a = Array.from(aa.value.querySelectorAll("text")).reduce((t, i) => {
324
+ ...t,
325
+ series: t.series.map((e) => e + kl.value),
326
+ absoluteValues: t.series,
327
+ segregate: () => El(t),
328
+ isSegregated: Z.value.includes(t.id)
329
+ }))), ke = b(() => Fe.value.map((t, s) => ({
330
+ ...t,
331
+ series: t.series.map((e) => e + kl.value),
332
+ absoluteValues: t.series
333
+ })).filter((t) => !Z.value.includes(t.id)));
334
+ function io() {
335
+ let t = 0;
336
+ at.value && (t = Array.from(at.value.querySelectorAll("text")).reduce((a, i) => {
337
337
  const o = i.getComputedTextLength();
338
- return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
338
+ return (o > a ? o : a) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
339
339
  }, 0));
340
- const s = la.value ? la.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + y.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
341
- return a + s + e;
340
+ const s = tt.value ? tt.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + y.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
341
+ return t + s + e;
342
342
  }
343
- const da = x(0), io = is((a) => {
344
- da.value = a;
343
+ const ht = x(0), no = cs((t) => {
344
+ ht.value = t;
345
345
  }, 100);
346
- Lt((a) => {
346
+ Ma((t) => {
347
347
  const s = ul.value;
348
348
  if (!s) return;
349
349
  const e = new ResizeObserver((u) => {
350
- io(u[0].contentRect.height);
350
+ no(u[0].contentRect.height);
351
351
  });
352
- e.observe(s), a(() => e.disconnect());
353
- }), ya(() => {
354
- da.value = 0;
352
+ e.observe(s), t(() => e.disconnect());
353
+ }), kt(() => {
354
+ ht.value = 0;
355
355
  });
356
- const Da = b(() => {
357
- let a = 0;
358
- ea.value && (a = ea.value.getBBox().height);
356
+ const Et = b(() => {
357
+ let t = 0;
358
+ lt.value && (t = lt.value.getBBox().height);
359
359
  let s = 0;
360
- return ul.value && (s = da.value), a + s + y.value.xAxis;
361
- }), no = b(() => ge.value.some((a) => a.useProgression)), c = b(() => {
362
- let a = 0;
360
+ return ul.value && (s = ht.value), t + s + y.value.xAxis;
361
+ }), ro = b(() => ge.value.some((t) => t.useProgression)), c = b(() => {
362
+ let t = 0;
363
363
  const s = 36;
364
- l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (ge.value.length - ee.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + s) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + s : a = uo());
365
- const e = l.value.chart.labels.fontSize * 1.1, u = no.value ? 24 : 6;
364
+ l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? t = (ge.value.length - Z.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + s) : f.value.useIndividualScale && f.value.isStacked ? t = l.value.chart.grid.labels.yAxis.labelWidth + s : t = io());
365
+ const e = l.value.chart.labels.fontSize * 1.1, u = ro.value ? 24 : 6;
366
366
  if (ul.value) {
367
367
  const o = ul.value.getBBox().x;
368
- o < 0 && (a += Math.abs(o));
368
+ o < 0 && (t += Math.abs(o));
369
369
  }
370
- const t = j.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - u - l.value.chart.padding.left - l.value.chart.padding.right, i = l.value.chart.grid.position === "middle" ? 0 : t / L.value / 2;
370
+ const a = ee.value - t - l.value.chart.grid.labels.yAxis.crosshairSize - u - l.value.chart.padding.left - l.value.chart.padding.right, i = l.value.chart.grid.position === "middle" ? 0 : a / L.value / 2;
371
371
  return {
372
372
  top: l.value.chart.padding.top + e,
373
- right: j.value - u - l.value.chart.padding.right,
374
- bottom: ve.value - Da.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
375
- left: a + l.value.chart.grid.labels.yAxis.crosshairSize - i + l.value.chart.padding.left,
376
- height: ve.value - Da.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
377
- width: t,
378
- scaleLabelX: a,
373
+ right: ee.value - u - l.value.chart.padding.right,
374
+ bottom: ve.value - Et.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
375
+ left: t + l.value.chart.grid.labels.yAxis.crosshairSize - i + l.value.chart.padding.left,
376
+ height: ve.value - Et.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
377
+ width: a,
378
+ scaleLabelX: t,
379
379
  individualOffsetX: s
380
380
  };
381
- }), ro = b(() => {
382
- const a = l.value.chart.grid.position === "middle" ? 1 : 0, s = L.value + a, e = E(c.value.top), u = E(c.value.bottom);
383
- return Array.from({ length: s }).map((t, i) => {
381
+ }), co = b(() => {
382
+ const t = l.value.chart.grid.position === "middle" ? 1 : 0, s = L.value + t, e = E(c.value.top), u = E(c.value.bottom);
383
+ return Array.from({ length: s }).map((a, i) => {
384
384
  const o = c.value.width / L.value * i + c.value.left + G.value;
385
385
  return `M${o},${e} L${o},${u}`;
386
386
  }).join(" ");
387
- }), co = b(() => {
387
+ }), vo = b(() => {
388
388
  if (!l.value.chart.grid.labels.xAxis.showCrosshairs) return "";
389
- const a = c.value.width / L.value, s = l.value.chart.grid.labels.xAxis.crosshairSize, e = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
390
- return ga.value.map((u, t) => {
389
+ const t = c.value.width / L.value, s = l.value.chart.grid.labels.xAxis.crosshairSize, e = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
390
+ return mt.value.map((u, a) => {
391
391
  if (!u || !u.text) return null;
392
- const i = c.value.left + a * t + a / 2, o = e ? ne.value - (ne.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, A = e ? ne.value + s / (ne.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
392
+ const i = c.value.left + t * a + t / 2, o = e ? ne.value - (ne.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, A = e ? ne.value + s / (ne.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
393
393
  return `M${i},${o} L${i},${A}`;
394
394
  }).filter(Boolean).join(" ");
395
395
  });
396
- function Ea() {
397
- return !!Kt?.vnode.props?.onSelectTimeLabel;
396
+ function Yt() {
397
+ return !!Qa?.vnode.props?.onSelectTimeLabel;
398
398
  }
399
- function vo(a, s, e) {
399
+ function ho(t, s, e) {
400
400
  if (!Il.value) {
401
401
  const u = document.createElement("canvas");
402
402
  Il.value = u.getContext("2d");
403
403
  }
404
- return Il.value.font = `normal ${a}px sans-serif`, Il.value;
404
+ return Il.value.font = `normal ${t}px sans-serif`, Il.value;
405
405
  }
406
- function Ya() {
407
- const a = Te.value.querySelectorAll(".vue-ui-xy-tag");
408
- a.length && Array.from(a).forEach((s) => s.style.opacity = "0");
406
+ function Wt() {
407
+ const t = Te.value.querySelectorAll(".vue-ui-xy-tag");
408
+ t.length && Array.from(t).forEach((s) => s.style.opacity = "0");
409
409
  }
410
- function Fl(a, s, e, u, t) {
411
- e && (Pe.value[`${a}_${s}_${u}_${t}`] = e);
410
+ function Fl(t, s, e, u, a) {
411
+ e && (Pe.value[`${t}_${s}_${u}_${a}`] = e);
412
412
  }
413
- const Wa = x(!1);
414
- async function Xa(a = !1) {
415
- await Mt(), Wa.value = a, za.value && (zl.value = a);
413
+ const Xt = x(!1);
414
+ async function Gt(t = !1) {
415
+ await Aa(), Xt.value = t, It.value && (zl.value = t);
416
416
  }
417
- function ha() {
417
+ function ft() {
418
418
  xl.value = !xl.value;
419
419
  }
420
420
  const de = b(() => {
421
- const a = Math.max(...ge.value.map((s) => wa({ data: s.series, threshold: l.value.downsample.threshold }).length));
422
- return Dt({
421
+ const t = Math.max(...ge.value.map((s) => St({ data: s.series, threshold: l.value.downsample.threshold }).length));
422
+ return Ea({
423
423
  values: l.value.chart.grid.labels.xAxisLabels.values,
424
- maxDatapoints: a,
424
+ maxDatapoints: t,
425
425
  formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
426
426
  start: m.value.start,
427
427
  end: m.value.end
428
428
  });
429
- }), fa = b(() => {
430
- const a = Math.max(...ge.value.map((s) => wa({ data: s.series, threshold: l.value.downsample.threshold }).length));
431
- return Dt({
429
+ }), gt = b(() => {
430
+ const t = Math.max(...ge.value.map((s) => St({ data: s.series, threshold: l.value.downsample.threshold }).length));
431
+ return Ea({
432
432
  values: l.value.chart.grid.labels.xAxisLabels.values,
433
- maxDatapoints: a,
433
+ maxDatapoints: t,
434
434
  formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
435
435
  start: 0,
436
436
  end: Ie.value
437
437
  });
438
- }), ho = b(() => {
439
- const a = l.value.chart.grid.labels.xAxisLabels.modulo;
440
- return de.value.length ? Math.min(a, [...new Set(de.value.map((s) => s.text))].length) : a;
441
- }), ga = b(() => {
442
- const a = l.value.chart.grid.labels.xAxisLabels, s = de.value || [], e = fa.value || [], u = m.value.start ?? 0, t = _.value, i = L.value, o = s.map((C) => C?.text ?? ""), A = e.map((C) => C?.text ?? "");
443
- return Ko(
444
- !!a.showOnlyFirstAndLast,
445
- !!a.showOnlyAtModulo,
446
- Math.max(1, ho.value || 1),
438
+ }), fo = b(() => {
439
+ const t = l.value.chart.grid.labels.xAxisLabels.modulo;
440
+ return de.value.length ? Math.min(t, [...new Set(de.value.map((s) => s.text))].length) : t;
441
+ }), mt = b(() => {
442
+ const t = l.value.chart.grid.labels.xAxisLabels, s = de.value || [], e = gt.value || [], u = m.value.start ?? 0, a = _.value, i = L.value, o = s.map((C) => C?.text ?? ""), A = e.map((C) => C?.text ?? "");
443
+ return es(
444
+ !!t.showOnlyFirstAndLast,
445
+ !!t.showOnlyAtModulo,
446
+ Math.max(1, fo.value || 1),
447
447
  o,
448
448
  A,
449
449
  u,
450
- t,
450
+ a,
451
451
  i
452
452
  );
453
453
  });
454
- function Ga(a, s) {
455
- const e = ye.value.map((u) => ({
454
+ function Ut(t, s) {
455
+ const e = ke.value.map((u) => ({
456
456
  shape: u.shape || null,
457
457
  name: u.name,
458
458
  color: u.color,
459
459
  type: u.type,
460
- value: u.absoluteValues.find((t, i) => i === s),
460
+ value: u.absoluteValues.find((a, i) => i === s),
461
461
  comments: u.comments || [],
462
462
  prefix: u.prefix || l.value.chart.labels.prefix,
463
463
  suffix: u.suffix || l.value.chart.labels.suffix
464
464
  }));
465
- jl("selectTimeLabel", {
465
+ et("selectTimeLabel", {
466
466
  datapoint: e,
467
- absoluteIndex: a.absoluteIndex,
468
- label: a.text
467
+ absoluteIndex: t.absoluteIndex,
468
+ label: t.text
469
469
  });
470
470
  }
471
471
  const L = b(() => {
472
- const a = Oa((m.value.end ?? 0) - (m.value.start ?? 0));
473
- return Math.max(1, a);
472
+ const t = Nt((m.value.end ?? 0) - (m.value.start ?? 0));
473
+ return Math.max(1, t);
474
474
  });
475
- function fo(a) {
476
- V.value = a;
475
+ function go(t) {
476
+ V.value = t;
477
477
  }
478
- function Ua() {
478
+ function qt() {
479
479
  f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
480
480
  }
481
- function ma(a) {
482
- yl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
481
+ function bt(t) {
482
+ yl.value && t.autoScaling && (l.value.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`), l.value.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`));
483
483
  }
484
- function go(a, s) {
485
- const e = Oa(a), u = Array(e).fill(0);
486
- for (let t = 0; t < s.length && t < e; t += 1) u[t] = s[t] ?? 0;
484
+ function mo(t, s) {
485
+ const e = Nt(t), u = Array(e).fill(0);
486
+ for (let a = 0; a < s.length && a < e; a += 1) u[a] = s[a] ?? 0;
487
487
  return u;
488
488
  }
489
- function qa(a) {
489
+ function Zt(t) {
490
490
  const s = Math.max(...ge.value.map((e) => Be(e.series).length));
491
- return a > s ? s : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
491
+ return t > s ? s : t < 0 || l.value.chart.zoom.startIndex !== null && t < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : t;
492
492
  }
493
- const _l = x(!1), Za = x(!1);
493
+ const _l = x(!1), Jt = x(!1);
494
494
  function Rl() {
495
495
  if (!_l.value) {
496
496
  _l.value = !0;
497
497
  try {
498
- const { startIndex: a, endIndex: s } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) => Be(i.series).length)), u = a ?? 0, t = s != null ? Math.min(qa(s + 1), e) : e;
499
- Bl.value = !0, m.value.start = u, m.value.end = t, Se.value.start = u, Se.value.end = t, nl(), Za.value = !0;
498
+ const { startIndex: t, endIndex: s } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) => Be(i.series).length)), u = t ?? 0, a = s != null ? Math.min(Zt(s + 1), e) : e;
499
+ Bl.value = !0, m.value.start = u, m.value.end = a, $e.value.start = u, $e.value.end = a, nl(), Jt.value = !0;
500
500
  } finally {
501
501
  queueMicrotask(() => {
502
502
  Bl.value = !1;
@@ -505,132 +505,132 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
505
505
  }
506
506
  }
507
507
  const Bl = x(!1);
508
- function mo(a) {
509
- _l.value || Bl.value || a !== m.value.start && (m.value.start = a, Se.value.start = a, nl());
508
+ function bo(t) {
509
+ _l.value || Bl.value || t !== m.value.start && (m.value.start = t, $e.value.start = t, nl());
510
510
  }
511
- function bo(a) {
511
+ function xo(t) {
512
512
  if (_l.value || Bl.value) return;
513
- const s = qa(a);
514
- s !== m.value.end && (m.value.end = s, Se.value.end = s, nl());
513
+ const s = Zt(t);
514
+ s !== m.value.end && (m.value.end = s, $e.value.end = s, nl());
515
515
  }
516
- async function xo() {
516
+ async function po() {
517
517
  await Rl();
518
518
  }
519
- function me(a) {
520
- return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
519
+ function be(t) {
520
+ return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
521
521
  }
522
- const Ja = b(() => $e.value.max + kl.value);
523
- function Je(a) {
524
- return a / (me(Ja.value) ? Ja.value : 1);
522
+ const Kt = b(() => Le.value.max + kl.value);
523
+ function Je(t) {
524
+ return t / (be(Kt.value) ? Kt.value : 1);
525
525
  }
526
526
  const ne = b(() => isNaN(Je(kl.value)) ? c.value.bottom : c.value.bottom - c.value.height * Je(kl.value));
527
- function Ka(a) {
527
+ function Qt(t) {
528
528
  const s = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Vl.value >= 0 ? c.value.bottom : ne.value;
529
- return a.value >= 0 ? P(s - a.y <= 0 ? 1e-5 : s - a.y) : P(a.y - ne.value <= 0 ? 1e-5 : a.y - ne.value);
529
+ return t.value >= 0 ? P(s - t.y <= 0 ? 1e-5 : s - t.y) : P(t.y - ne.value <= 0 ? 1e-5 : t.y - ne.value);
530
530
  }
531
- function Qa(a) {
532
- return a.value >= 0 ? P(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : P(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
531
+ function jt(t) {
532
+ return t.value >= 0 ? P(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : P(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
533
533
  }
534
534
  const q = b(() => {
535
- const a = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Fe.value.filter((u) => u.type === "bar" && !ee.value.includes(u.id)).length);
535
+ const t = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Fe.value.filter((u) => u.type === "bar" && !Z.value.includes(u.id)).length);
536
536
  return {
537
- bar: ia(s, a * e, 1),
538
- plot: ia(s, a, 1),
539
- line: ia(s, a, 1)
537
+ bar: nt(s, t * e, 1),
538
+ plot: nt(s, t, 1),
539
+ line: nt(s, t, 1)
540
540
  };
541
541
  });
542
542
  function He() {
543
543
  return f.value.useIndividualScale && f.value.isStacked ? q.value.line - c.value.width / L.value * 0.1 : q.value.bar;
544
544
  }
545
- function Hl(a) {
546
- return f.value.useIndividualScale && f.value.isStacked ? a.x + c.value.width / L.value * 0.05 : a.x + q.value.bar / 2;
545
+ function Hl(t) {
546
+ return f.value.useIndividualScale && f.value.isStacked ? t.x + c.value.width / L.value * 0.05 : t.x + q.value.bar / 2;
547
547
  }
548
- function ja(a) {
549
- return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ne.value) ? c.bottom.value : ne.value;
548
+ function ea(t) {
549
+ return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ne.value) ? c.bottom.value : ne.value;
550
550
  }
551
- function et(a) {
552
- return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
551
+ function la(t) {
552
+ return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(t.zeroPosition) ? 0 : t.zeroPosition;
553
553
  }
554
554
  const wl = x(null);
555
- function lt(a) {
555
+ function ta(t) {
556
556
  const s = ue.value;
557
557
  if (!s) return null;
558
558
  if (s.createSVGPoint && s.getScreenCTM) {
559
559
  const T = s.createSVGPoint();
560
- T.x = a.clientX, T.y = a.clientY;
560
+ T.x = t.clientX, T.y = t.clientY;
561
561
  const Y = s.getScreenCTM();
562
562
  if (Y) {
563
563
  const k = T.matrixTransform(Y.inverse());
564
564
  return { x: k.x, y: k.y, ok: !0 };
565
565
  }
566
566
  }
567
- const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, t = Math.min(e.width / u.width, e.height / u.height), i = u.width * t, o = u.height * t, A = (e.width - i) / 2, C = (e.height - o) / 2, O = (a.clientX - e.left - A) / t + u.x, S = (a.clientY - e.top - C) / t + u.y;
567
+ const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, a = Math.min(e.width / u.width, e.height / u.height), i = u.width * a, o = u.height * a, A = (e.width - i) / 2, C = (e.height - o) / 2, O = (t.clientX - e.left - A) / a + u.x, S = (t.clientY - e.top - C) / a + u.y;
568
568
  return { x: O, y: S, ok: !0 };
569
569
  }
570
570
  let Ke = 0;
571
- function po(a) {
571
+ function yo(t) {
572
572
  xl.value || (Ke && cancelAnimationFrame(Ke), Ke = requestAnimationFrame(() => {
573
573
  Ke = 0;
574
- const s = lt(a);
574
+ const s = ta(t);
575
575
  if (!s || !ue.value) {
576
576
  Dl();
577
577
  return;
578
578
  }
579
- const { left: e, right: u, top: t, bottom: i, width: o } = c.value;
580
- if (s.x < e || s.x > u || s.y < t || s.y > i) {
579
+ const { left: e, right: u, top: a, bottom: i, width: o } = c.value;
580
+ if (s.x < e || s.x > u || s.y < a || s.y > i) {
581
581
  Dl();
582
582
  return;
583
583
  }
584
584
  const A = s.x - e, C = o / L.value, O = Math.floor(A / C);
585
- O >= 0 && O < L.value ? wl.value !== O && (wl.value = O, ft(!0, O)) : Dl();
585
+ O >= 0 && O < L.value ? wl.value !== O && (wl.value = O, ga(!0, O)) : Dl();
586
586
  }));
587
587
  }
588
588
  function Dl() {
589
- Ke && (cancelAnimationFrame(Ke), Ke = 0), wl.value = null, ft(!1, null);
589
+ Ke && (cancelAnimationFrame(Ke), Ke = 0), wl.value = null, ga(!1, null);
590
590
  }
591
- function at(a) {
592
- const s = lt(a);
591
+ function aa(t) {
592
+ const s = ta(t);
593
593
  if (s && ue.value) {
594
- const { left: e, right: u, top: t, bottom: i, width: o } = c.value;
595
- if (s.x >= e && s.x <= u && s.y >= t && s.y <= i) {
594
+ const { left: e, right: u, top: a, bottom: i, width: o } = c.value;
595
+ if (s.x >= e && s.x <= u && s.y >= a && s.y <= i) {
596
596
  const A = o / Math.max(1, L.value), C = Math.floor((s.x - e) / A);
597
597
  if (C >= 0 && C < L.value) {
598
- tt(C);
598
+ oa(C);
599
599
  return;
600
600
  }
601
601
  }
602
602
  }
603
- wl.value != null && tt(wl.value);
603
+ wl.value != null && oa(wl.value);
604
604
  }
605
- function tt(a) {
606
- const s = ye.value.map((e) => ({
605
+ function oa(t) {
606
+ const s = ke.value.map((e) => ({
607
607
  name: e.name,
608
- value: [null, void 0, NaN].includes(e.absoluteValues[a]) ? null : e.absoluteValues[a],
608
+ value: [null, void 0, NaN].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
609
609
  color: e.color,
610
610
  type: e.type
611
611
  }));
612
- jl(
612
+ et(
613
613
  "selectX",
614
614
  {
615
615
  dataset: s,
616
- index: a,
617
- indexLabel: l.value.chart.grid.labels.xAxisLabels.values[a]
616
+ index: t,
617
+ indexLabel: l.value.chart.grid.labels.xAxisLabels.values[t]
618
618
  }
619
- ), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: s, seriesIndex: a + m.value.start });
619
+ ), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: s, seriesIndex: t + m.value.start });
620
620
  }
621
- function yo() {
622
- return Le.value.map((a) => ({
623
- values: a.absoluteValues,
624
- color: a.color,
625
- name: a.name,
626
- type: a.type
621
+ function ko() {
622
+ return me.value.map((t) => ({
623
+ values: t.absoluteValues,
624
+ color: t.color,
625
+ name: t.name,
626
+ type: t.type
627
627
  }));
628
628
  }
629
- async function ko({ scale: a = 2 } = {}) {
629
+ async function _o({ scale: t = 2 } = {}) {
630
630
  if (!Te.value) return;
631
- const { width: s, height: e } = Te.value.getBoundingClientRect(), u = s / e, { imageUri: t, base64: i } = await ms({ domElement: Te.value, base64: !0, img: !0, scale: a });
631
+ const { width: s, height: e } = Te.value.getBoundingClientRect(), u = s / e, { imageUri: a, base64: i } = await ps({ domElement: Te.value, base64: !0, img: !0, scale: t });
632
632
  return {
633
- imageUri: t,
633
+ imageUri: a,
634
634
  base64: i,
635
635
  title: l.value.chart.title.text,
636
636
  width: s,
@@ -638,26 +638,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
638
638
  aspectRatio: u
639
639
  };
640
640
  }
641
- function ot(a) {
642
- if (ee.value.includes(a.id))
643
- ee.value = ee.value.filter((s) => s !== a.id);
641
+ function El(t) {
642
+ if (Z.value.includes(t.id))
643
+ Z.value = Z.value.filter((s) => s !== t.id);
644
644
  else {
645
- if (ee.value.length + 1 === Fe.value.length) return;
646
- ee.value.push(a.id);
645
+ if (Z.value.length + 1 === Fe.value.length) return;
646
+ Z.value.push(t.id);
647
647
  }
648
- jl("selectLegend", ye.value.map((s) => ({
648
+ et("selectLegend", ke.value.map((s) => ({
649
649
  name: s.name,
650
650
  values: s.absoluteValues,
651
651
  color: s.color,
652
652
  type: s.type
653
- }))), sa.value += 1;
653
+ }))), ut.value += 1;
654
654
  }
655
- const _o = b(() => {
656
- const a = l.value.chart.title.text || "Chart visualization", s = l.value.chart.title.subtitle.text || "";
657
- return `${a}. ${s}`;
658
- }), st = b(() => ({
655
+ function sa(t) {
656
+ if (!me.value.length)
657
+ return l.value.debug && console.warn("VueUiXy - There are no series to show."), null;
658
+ const s = me.value.find((e) => e.name === t);
659
+ return s || (l.value.debug && console.warn(`VueUiXy - Series name not found "${t}"`), null);
660
+ }
661
+ function wo(t) {
662
+ const s = sa(t);
663
+ s !== null && Z.value.includes(s.id) && El({ id: s.id });
664
+ }
665
+ function So(t) {
666
+ const s = sa(t);
667
+ s !== null && (Z.value.includes(s.id) || El({ id: s.id }));
668
+ }
669
+ const $o = b(() => {
670
+ const t = l.value.chart.title.text || "Chart visualization", s = l.value.chart.title.subtitle.text || "";
671
+ return `${t}. ${s}`;
672
+ }), ua = b(() => ({
659
673
  linePlot: L.value > l.value.line.dot.hideAboveMaxSerieLength
660
- })), wo = b(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), So = b(() => {
674
+ })), Lo = b(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Mo = b(() => {
661
675
  if (Array.isArray(l.value.chart.highlightArea))
662
676
  return l.value.chart.highlightArea.map((s) => {
663
677
  const e = Math.min(s.to, Ie.value - 1);
@@ -666,25 +680,25 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
666
680
  span: s.from === e ? 1 : e < s.from ? 0 : e - s.from + 1
667
681
  };
668
682
  });
669
- const a = {
683
+ const t = {
670
684
  ...l.value.chart.highlightArea,
671
685
  to: Math.min(l.value.chart.highlightArea.to, Ie.value - 1)
672
686
  };
673
- return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
674
- }), ut = b(() => La.value ? ge.value.map((a, s) => ({
675
- ...a,
676
- series: Be(a.series),
687
+ return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
688
+ }), ia = b(() => Mt.value ? ge.value.map((t, s) => ({
689
+ ...t,
690
+ series: Be(t.series),
677
691
  id: `uniqueId_${s}`,
678
- color: Tt(a.color ? a.color : Nl.value[s] ? Nl.value[s] : zt[s])
679
- })) : ge.value), $o = b(() => ye.value.map((a) => {
680
- const s = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
692
+ color: za(t.color ? t.color : Nl.value[s] ? Nl.value[s] : Ia[s])
693
+ })) : ge.value), Ao = b(() => ke.value.map((t) => {
694
+ const s = t.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
681
695
  return {
682
- id: a.id,
683
- name: a.name,
684
- color: a.color,
685
- values: go(L.value, s)
696
+ id: t.id,
697
+ name: t.name,
698
+ color: t.color,
699
+ values: mo(L.value, s)
686
700
  };
687
- })), Lo = b(() => ({
701
+ })), Co = b(() => ({
688
702
  responsiveBreakpoint: l.value.table.responsiveBreakpoint,
689
703
  roundingValues: l.value.table.rounding,
690
704
  showAverage: !1,
@@ -693,7 +707,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
693
707
  fontFamily: l.value.chart.fontFamily,
694
708
  prefix: l.value.chart.labels.prefix,
695
709
  suffix: l.value.chart.labels.suffix,
696
- colNames: de.value.map((a, s) => l.value.table.useDefaultTimeFormat ? a.text : rl.value(s + m.value.start, l.value.table.timeFormat)),
710
+ colNames: de.value.map((t, s) => l.value.table.useDefaultTimeFormat ? t.text : rl.value(s + m.value.start, l.value.table.timeFormat)),
697
711
  thead: {
698
712
  backgroundColor: l.value.table.th.backgroundColor,
699
713
  color: l.value.table.th.color,
@@ -710,66 +724,66 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
710
724
  sparkline: {
711
725
  animation: { show: !1 }
712
726
  }
713
- })), G = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Qe = b(() => Qo(Le.value.filter((a) => !ee.value.includes(a.id)))), M = b(() => {
714
- const a = Object.groupBy(Qe.value, (e) => e.scaleLabel), s = {};
715
- for (const [e, u] of Object.entries(a)) {
716
- const t = u.flatMap((i) => i.absoluteValues);
727
+ })), G = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Qe = b(() => ls(me.value.filter((t) => !Z.value.includes(t.id)))), M = b(() => {
728
+ const t = Object.groupBy(Qe.value, (e) => e.scaleLabel), s = {};
729
+ for (const [e, u] of Object.entries(t)) {
730
+ const a = u.flatMap((i) => i.absoluteValues);
717
731
  s[e] = {
718
- min: Math.min(...t) || 0,
719
- max: Math.max(...t) || 1,
720
- groupId: `scale_group_${ka()}`
732
+ min: Math.min(...a) || 0,
733
+ max: Math.max(...a) || 1,
734
+ groupId: `scale_group_${_t()}`
721
735
  };
722
736
  }
723
737
  return s;
724
- }), Mo = b(() => {
725
- const a = Fe.value.filter((s) => s.type === "bar").filter((s) => !ee.value.includes(s.id)).length;
726
- return c.value.width / L.value / a - El.value * a;
727
- }), El = b(() => q.value.line * l.value.bar.periodGap), Yl = b(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : El.value))), Wl = b(() => Yl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), Ao = b(() => {
738
+ }), To = b(() => {
739
+ const t = Fe.value.filter((s) => s.type === "bar").filter((s) => !Z.value.includes(s.id)).length;
740
+ return c.value.width / L.value / t - Yl.value * t;
741
+ }), Yl = b(() => q.value.line * l.value.bar.periodGap), Wl = b(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Yl.value))), Xl = b(() => Wl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), zo = b(() => {
728
742
  if (!l.value.chart.zoom.minimap.show) return [];
729
- const a = ut.value.filter((t) => !ee.value.includes(t.id)), s = Math.max(...a.map((t) => t.series.length)), e = [];
730
- for (let t = 0; t < s; t += 1)
731
- e.push(a.map((i) => i.series[t] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
743
+ const t = ia.value.filter((a) => !Z.value.includes(a.id)), s = Math.max(...t.map((a) => a.series.length)), e = [];
744
+ for (let a = 0; a < s; a += 1)
745
+ e.push(t.map((i) => i.series[a] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
732
746
  const u = Math.min(...e);
733
- return e.map((t) => t + (u < 0 ? Math.abs(u) : 0));
734
- }), Co = b(() => l.value.chart.zoom.minimap.show ? ut.value.map((s) => ({
747
+ return e.map((a) => a + (u < 0 ? Math.abs(u) : 0));
748
+ }), Io = b(() => l.value.chart.zoom.minimap.show ? ia.value.map((s) => ({
735
749
  ...s,
736
- isVisible: !ee.value.includes(s.id)
737
- })) : []), je = b(() => ye.value.map((a) => ({
738
- slotAbsoluteIndex: a.slotAbsoluteIndex,
739
- shape: a.shape || null,
740
- name: a.name,
741
- color: a.color,
742
- type: a.type,
743
- value: a.absoluteValues.find((s, e) => e === _.value),
744
- comments: a.comments || [],
745
- prefix: a.prefix || l.value.chart.labels.prefix,
746
- suffix: a.suffix || l.value.chart.labels.suffix
747
- }))), it = b(() => $e.value.ticks.map((a) => ({
748
- y: a >= 0 ? ne.value - c.value.height * Je(a) : ne.value + c.value.height * Je(Math.abs(a)),
749
- value: a,
750
+ isVisible: !Z.value.includes(s.id)
751
+ })) : []), je = b(() => ke.value.map((t) => ({
752
+ slotAbsoluteIndex: t.slotAbsoluteIndex,
753
+ shape: t.shape || null,
754
+ name: t.name,
755
+ color: t.color,
756
+ type: t.type,
757
+ value: t.absoluteValues.find((s, e) => e === _.value),
758
+ comments: t.comments || [],
759
+ prefix: t.prefix || l.value.chart.labels.prefix,
760
+ suffix: t.suffix || l.value.chart.labels.suffix
761
+ }))), na = b(() => Le.value.ticks.map((t) => ({
762
+ y: t >= 0 ? ne.value - c.value.height * Je(t) : ne.value + c.value.height * Je(Math.abs(t)),
763
+ value: t,
750
764
  prefix: l.value.chart.labels.prefix,
751
765
  suffix: l.value.chart.labels.suffix
752
- }))), nt = b(() => {
753
- const a = l.value.chart.annotations;
754
- if (!a || !Array.isArray(a) || a.every((S) => !S.show)) return [];
755
- const s = a.filter(
766
+ }))), ra = b(() => {
767
+ const t = l.value.chart.annotations;
768
+ if (!t || !Array.isArray(t) || t.every((S) => !S.show)) return [];
769
+ const s = t.filter(
756
770
  (S) => S.show && (S.yAxis.yTop != null || S.yAxis.yBottom != null)
757
771
  );
758
772
  if (!s.length) return [];
759
- const { left: e, right: u } = c.value, t = ne.value, i = c.value.height, o = $e.value.min, C = $e.value.max - o, O = (S) => {
773
+ const { left: e, right: u } = c.value, a = ne.value, i = c.value.height, o = Le.value.min, C = Le.value.max - o, O = (S) => {
760
774
  const T = (S - 0) / C;
761
- return t - T * i;
775
+ return a - T * i;
762
776
  };
763
777
  return s.map((S) => {
764
- const { yAxis: { yTop: T, yBottom: Y, label: k } } = S, F = T != null && Y != null && T !== Y, z = T == null ? null : O(T), le = Y == null ? null : O(Y), re = vo(k.fontSize);
778
+ const { yAxis: { yTop: T, yBottom: Y, label: k } } = S, F = T != null && Y != null && T !== Y, z = T == null ? null : O(T), le = Y == null ? null : O(Y), re = ho(k.fontSize);
765
779
  re.font = `${k.fontSize}px sans-serif`;
766
- const U = re.measureText(k.text).width, ke = k.fontSize, Oe = (k.position === "start" ? e + k.padding.left : u - k.padding.right) + k.offsetX, xe = (z != null && le != null ? Math.min(z, le) : z ?? le) - k.fontSize / 3 + k.offsetY - k.padding.top;
780
+ const U = re.measureText(k.text).width, _e = k.fontSize, Oe = (k.position === "start" ? e + k.padding.left : u - k.padding.right) + k.offsetX, pe = (z != null && le != null ? Math.min(z, le) : z ?? le) - k.fontSize / 3 + k.offsetY - k.padding.top;
767
781
  let B;
768
782
  k.textAnchor === "middle" ? B = Oe - U / 2 - k.padding.left : k.textAnchor === "end" ? B = Oe - U - k.padding.right : B = Oe - k.padding.left;
769
- const H = xe - ke * 0.75 - k.padding.top;
783
+ const H = pe - _e * 0.75 - k.padding.top;
770
784
  return {
771
785
  show: ![z, le, H].includes(NaN),
772
- id: `annotation_y_${ka()}`,
786
+ id: `annotation_y_${_t()}`,
773
787
  hasArea: F,
774
788
  areaHeight: F ? Math.abs(z - le) : 0,
775
789
  yTop: z,
@@ -777,12 +791,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
777
791
  config: S.yAxis,
778
792
  x1: e,
779
793
  x2: u,
780
- _text: { x: Oe, y: xe },
794
+ _text: { x: Oe, y: pe },
781
795
  _box: {
782
796
  x: B,
783
797
  y: H,
784
798
  width: U + k.padding.left + k.padding.right,
785
- height: ke + k.padding.top + k.padding.bottom,
799
+ height: _e + k.padding.top + k.padding.bottom,
786
800
  fill: k.backgroundColor,
787
801
  stroke: k.border.stroke,
788
802
  rx: k.border.rx,
@@ -792,15 +806,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
792
806
  };
793
807
  });
794
808
  });
795
- function rt(a, s) {
796
- const e = a[s - 1], u = a[s + 1];
797
- let t = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
798
- return me(a[s].value) && t && l.value.line.cutNullValues;
809
+ function ca(t, s) {
810
+ const e = t[s - 1], u = t[s + 1];
811
+ let a = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
812
+ return be(t[s].value) && a && l.value.line.cutNullValues;
799
813
  }
800
814
  const Me = b(() => {
801
- const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
802
- return a.filter((o) => o.type === "bar").map((o, A) => {
803
- ma(o);
815
+ const t = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, a = u ? e * (s - 1) : 0, i = c.value.height - a;
816
+ return t.filter((o) => o.type === "bar").map((o, A) => {
817
+ bt(o);
804
818
  const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
805
819
  o.absoluteValues.filter((R) => ![null, void 0].includes(R)).map((R) => (R - C) / (O - C));
806
820
  const S = {
@@ -809,63 +823,63 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
809
823
  }, T = {
810
824
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
811
825
  min: o.scaleMin || Math.min(...o.absoluteValues.filter((R) => ![void 0, null].includes(R))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((R) => ![null, void 0].includes(R)))
812
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + le, ke = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, xe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * xe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, Z = c.value.bottom - B - H * le / U, pe = c.value.bottom - B - H * re / ke, ce = Le.value.filter((R) => R.type === "bar").filter((R) => !ee.value.includes(R.id)).length, Ll = o.series.map((R, K) => {
813
- const Ee = f.value.useIndividualScale ? (o.absoluteValues[K] + le) / U : Je(R), el = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * K : c.value.left + q.value.bar * A + q.value.bar * K * ce - Mo.value / 2 - A * El.value;
826
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : al(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + le, _e = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, pe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * pe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, J = c.value.bottom - B - H * le / U, ye = c.value.bottom - B - H * re / _e, ce = me.value.filter((R) => R.type === "bar").filter((R) => !Z.value.includes(R.id)).length, Ll = o.series.map((R, Q) => {
827
+ const Ee = f.value.useIndividualScale ? (o.absoluteValues[Q] + le) / U : Je(R), el = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * Q : c.value.left + q.value.bar * A + q.value.bar * Q * ce - To.value / 2 - A * Yl.value;
814
828
  return {
815
829
  yOffset: P(B),
816
830
  individualHeight: P(H),
817
831
  x: P(el),
818
832
  y: c.value.bottom - B - H * Ee,
819
- value: o.absoluteValues[K],
820
- zeroPosition: P(Z),
833
+ value: o.absoluteValues[Q],
834
+ zeroPosition: P(J),
821
835
  individualMax: P(U),
822
- comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
836
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
823
837
  };
824
- }), he = o.absoluteValues.map((R) => z.min >= 0 ? (R - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (R + Math.abs(z.min)) / (z.max + Math.abs(z.min))), De = o.series.map((R, K) => {
825
- const Ee = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * K : c.value.left - q.value.bar / 2 + q.value.bar * A + q.value.bar * K * Le.value.filter((el) => el.type === "bar").filter((el) => !ee.value.includes(el.id)).length;
838
+ }), he = o.absoluteValues.map((R) => z.min >= 0 ? (R - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (R + Math.abs(z.min)) / (z.max + Math.abs(z.min))), De = o.series.map((R, Q) => {
839
+ const Ee = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * Q : c.value.left - q.value.bar / 2 + q.value.bar * A + q.value.bar * Q * me.value.filter((el) => el.type === "bar").filter((el) => !Z.value.includes(el.id)).length;
826
840
  return {
827
841
  yOffset: P(B),
828
842
  individualHeight: P(H),
829
843
  x: P(Ee),
830
- y: P(c.value.bottom - P(B) - (P(H) * he[K] || 0)),
831
- value: o.absoluteValues[K],
832
- zeroPosition: P(Z),
844
+ y: P(c.value.bottom - P(B) - (P(H) * he[Q] || 0)),
845
+ value: o.absoluteValues[Q],
846
+ zeroPosition: P(J),
833
847
  individualMax: P(U),
834
- comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
848
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
835
849
  };
836
850
  }), X = F.ticks.map((R) => ({
837
- y: R >= 0 ? Z - H * (R / U) : Z + H * Math.abs(R) / U,
851
+ y: R >= 0 ? J - H * (R / U) : J + H * Math.abs(R) / U,
838
852
  value: R,
839
853
  prefix: o.prefix || l.value.chart.labels.prefix,
840
854
  suffix: o.suffix || l.value.chart.labels.suffix,
841
855
  datapoint: o
842
- })), J = z.ticks.map((R) => {
843
- const K = (R - z.min) / (z.max - z.min);
856
+ })), K = z.ticks.map((R) => {
857
+ const Q = (R - z.min) / (z.max - z.min);
844
858
  return {
845
- y: R >= 0 ? pe - H * K : pe + H * K,
859
+ y: R >= 0 ? ye - H * Q : ye + H * Q,
846
860
  value: R,
847
861
  prefix: o.prefix || l.value.chart.labels.prefix,
848
862
  suffix: o.suffix || l.value.chart.labels.suffix,
849
863
  datapoint: o
850
864
  };
851
865
  });
852
- return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? J : X, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : Z, M.value[o.scaleLabel].individualMax = o.autoScaling ? ke : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = J, M.value[o.scaleLabel].unique = Qe.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
866
+ return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? K : X, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : J, M.value[o.scaleLabel].individualMax = o.autoScaling ? _e : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = K, M.value[o.scaleLabel].unique = Qe.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
853
867
  ...o,
854
868
  yOffset: B,
855
- autoScaleYLabels: J,
869
+ autoScaleYLabels: K,
856
870
  individualHeight: H,
857
- scaleYLabels: o.autoScaling ? J : X,
871
+ scaleYLabels: o.autoScaling ? K : X,
858
872
  individualScale: o.autoScaling ? z : F,
859
- individualMax: o.autoScaling ? ke : U,
860
- zeroPosition: o.autoScaling ? pe : Z,
873
+ individualMax: o.autoScaling ? _e : U,
874
+ zeroPosition: o.autoScaling ? ye : J,
861
875
  plots: o.autoScaling ? De : Ll,
862
876
  groupId: M.value[o.scaleLabel].groupId
863
877
  };
864
878
  });
865
- }), te = b(() => {
866
- const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
867
- return a.filter((o) => o.type === "line").map((o, A) => {
868
- ma(o);
879
+ }), ae = b(() => {
880
+ const t = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, a = u ? e * (s - 1) : 0, i = c.value.height - a;
881
+ return t.filter((o) => o.type === "line").map((o, A) => {
882
+ bt(o);
869
883
  const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
870
884
  o.absoluteValues.filter((N) => ![null, void 0].includes(N)).map((N) => (N - C) / (O - C));
871
885
  const S = {
@@ -874,17 +888,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
874
888
  }, T = {
875
889
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
876
890
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
877
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + Math.abs(le), ke = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, xe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * xe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, Z = c.value.bottom - B - H * le / U, pe = c.value.bottom - B - H * re / ke, ce = o.series.map((N, oe) => {
878
- const Do = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / U : Je(N);
891
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : al(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + Math.abs(le), _e = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, pe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * pe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, J = c.value.bottom - B - H * le / U, ye = c.value.bottom - B - H * re / _e, ce = o.series.map((N, oe) => {
892
+ const Wo = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / U : Je(N);
879
893
  return {
880
894
  x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
881
- y: P(c.value.bottom - B - H * Do),
895
+ y: P(c.value.bottom - B - H * Wo),
882
896
  value: o.absoluteValues[oe],
883
897
  comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
884
898
  };
885
899
  }), Ll = o.absoluteValues.map((N) => z.min >= 0 ? (N - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (N + Math.abs(z.min)) / (z.max + Math.abs(z.min))), he = o.series.map((N, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
886
900
  x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
887
- y: Z,
901
+ y: J,
888
902
  value: o.absoluteValues[oe],
889
903
  comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
890
904
  } : {
@@ -892,8 +906,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
892
906
  y: P(c.value.bottom - B - (H * Ll[oe] || 0)),
893
907
  value: o.absoluteValues[oe],
894
908
  comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
895
- }), De = l.value.line.cutNullValues ? It(ce) : Ot(ce.filter((N) => N.value !== null)), X = l.value.line.cutNullValues ? It(he) : Ot(he.filter((N) => N.value !== null)), J = l.value.line.cutNullValues ? Nt(ce) : Vt(ce.filter((N) => N.value !== null)), R = l.value.line.cutNullValues ? Nt(he) : Vt(he.filter((N) => N.value !== null)), K = F.ticks.map((N) => ({
896
- y: N >= 0 ? Z - H * (N / U) : Z + H * Math.abs(N) / U,
909
+ }), De = l.value.line.cutNullValues ? Oa(ce) : Na(ce.filter((N) => N.value !== null)), X = l.value.line.cutNullValues ? Oa(he) : Na(he.filter((N) => N.value !== null)), K = l.value.line.cutNullValues ? Va(ce) : Pa(ce.filter((N) => N.value !== null)), R = l.value.line.cutNullValues ? Va(he) : Pa(he.filter((N) => N.value !== null)), Q = F.ticks.map((N) => ({
910
+ y: N >= 0 ? J - H * (N / U) : J + H * Math.abs(N) / U,
897
911
  value: N,
898
912
  prefix: o.prefix || l.value.chart.labels.prefix,
899
913
  suffix: o.suffix || l.value.chart.labels.suffix,
@@ -901,46 +915,46 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
901
915
  })), Ee = z.ticks.map((N) => {
902
916
  const oe = (N - z.min) / (z.max - z.min);
903
917
  return {
904
- y: N >= 0 ? pe - H * oe : pe + H * oe,
918
+ y: N >= 0 ? ye - H * oe : ye + H * oe,
905
919
  value: N,
906
920
  prefix: o.prefix || l.value.chart.labels.prefix,
907
921
  suffix: o.suffix || l.value.chart.labels.suffix,
908
922
  datapoint: o
909
923
  };
910
924
  });
911
- M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ee : K, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : Z, M.value[o.scaleLabel].individualMax = o.autoScaling ? ke : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ee, M.value[o.scaleLabel].unique = Qe.value.filter((N) => N.scaleLabel === o.scaleLabel).length === 1;
912
- const el = f.value.useIndividualScale ? o.autoScaling ? pe : Z : ne.value, Ml = Math.max(Math.max(o.autoScaling ? pe : K.at(-1) ? K.at(-1).y : 0, c.value.top), el);
925
+ M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ee : Q, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : J, M.value[o.scaleLabel].individualMax = o.autoScaling ? _e : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ee, M.value[o.scaleLabel].unique = Qe.value.filter((N) => N.scaleLabel === o.scaleLabel).length === 1;
926
+ const el = f.value.useIndividualScale ? o.autoScaling ? ye : J : ne.value, Ml = Math.max(Math.max(o.autoScaling ? ye : Q.at(-1) ? Q.at(-1).y : 0, c.value.top), el);
913
927
  return {
914
928
  ...o,
915
929
  yOffset: B,
916
930
  autoScaleYLabels: Ee,
917
931
  individualHeight: H,
918
- scaleYLabels: o.autoScaling ? Ee : K,
932
+ scaleYLabels: o.autoScaling ? Ee : Q,
919
933
  individualScale: o.autoScaling ? z : F,
920
- individualMax: o.autoScaling ? ke : U,
921
- zeroPosition: o.autoScaling ? pe : Z,
934
+ individualMax: o.autoScaling ? _e : U,
935
+ zeroPosition: o.autoScaling ? ye : J,
922
936
  curve: o.autoScaling ? X : De,
923
937
  plots: o.autoScaling ? he : ce,
924
- area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Pt(
938
+ area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Fa(
925
939
  o.autoScaling ? he : ce,
926
940
  Ml
927
- ) : Ft(
941
+ ) : Ra(
928
942
  o.autoScaling ? he.filter((N) => N.value !== null) : ce.filter((N) => N.value !== null),
929
943
  Ml
930
- ) : l.value.line.cutNullValues ? Pt(ce, Ml) : Ft(ce.filter((N) => N.value !== null), Ml) : "",
931
- curveAreas: o.useArea ? jo(
944
+ ) : l.value.line.cutNullValues ? Fa(ce, Ml) : Ra(ce.filter((N) => N.value !== null), Ml) : "",
945
+ curveAreas: o.useArea ? ts(
932
946
  o.autoScaling ? l.value.line.cutNullValues ? he : he.filter((N) => N.value !== null) : l.value.line.cutNullValues ? ce : ce.filter((N) => N.value !== null),
933
947
  Ml,
934
948
  l.value.line.cutNullValues
935
949
  ) : [],
936
- straight: o.autoScaling ? R : J,
950
+ straight: o.autoScaling ? R : K,
937
951
  groupId: M.value[o.scaleLabel].groupId
938
952
  };
939
953
  });
940
- }), be = b(() => {
941
- const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
942
- return a.filter((o) => o.type === "plot").map((o) => {
943
- ma(o);
954
+ }), xe = b(() => {
955
+ const t = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, a = u ? e * (s - 1) : 0, i = c.value.height - a;
956
+ return t.filter((o) => o.type === "plot").map((o) => {
957
+ bt(o);
944
958
  const A = M.value[o.scaleLabel].min, C = M.value[o.scaleLabel].max;
945
959
  o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - A) / (C - A));
946
960
  const O = {
@@ -949,19 +963,19 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
949
963
  }, S = {
950
964
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
951
965
  min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
952
- }, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = tl(S.min, S.max === S.min ? S.max * Y : S.max, T), F = tl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * Y : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, U = F.max + Math.abs(le), ke = o.stackIndex, Oe = s - 1 - ke, cl = u ? 1 - o.cumulatedStackRatio : 0, xe = u ? i * cl + e * Oe : 0, B = u ? i * o.stackRatio : c.value.height, H = c.value.bottom - xe - B * z / re, Z = c.value.bottom - xe - B * le / U, pe = o.series.map((X, J) => {
953
- const R = f.value.useIndividualScale ? (o.absoluteValues[J] + Math.abs(z)) / re : Je(X);
966
+ }, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = al(S.min, S.max === S.min ? S.max * Y : S.max, T), F = al(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * Y : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, U = F.max + Math.abs(le), _e = o.stackIndex, Oe = s - 1 - _e, cl = u ? 1 - o.cumulatedStackRatio : 0, pe = u ? i * cl + e * Oe : 0, B = u ? i * o.stackRatio : c.value.height, H = c.value.bottom - pe - B * z / re, J = c.value.bottom - pe - B * le / U, ye = o.series.map((X, K) => {
967
+ const R = f.value.useIndividualScale ? (o.absoluteValues[K] + Math.abs(z)) / re : Je(X);
954
968
  return {
955
- x: P(c.value.left + q.value.plot / 2 + q.value.plot * J),
956
- y: P(c.value.bottom - xe - B * R),
957
- value: o.absoluteValues[J],
958
- comment: o.comments && o.comments.slice(m.value.start, m.value.end)[J] || ""
969
+ x: P(c.value.left + q.value.plot / 2 + q.value.plot * K),
970
+ y: P(c.value.bottom - pe - B * R),
971
+ value: o.absoluteValues[K],
972
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
959
973
  };
960
- }), ce = o.absoluteValues.map((X) => F.min >= 0 ? (X - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (X + Math.abs(F.min)) / (F.max + Math.abs(F.min))), Ll = o.series.map((X, J) => ({
961
- x: P(c.value.left + q.value.plot / 2 + q.value.plot * J),
962
- y: P(c.value.bottom - xe - (B * ce[J] || 0)),
963
- value: o.absoluteValues[J],
964
- comment: o.comments && o.comments.slice(m.value.start, m.value.end)[J] || ""
974
+ }), ce = o.absoluteValues.map((X) => F.min >= 0 ? (X - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (X + Math.abs(F.min)) / (F.max + Math.abs(F.min))), Ll = o.series.map((X, K) => ({
975
+ x: P(c.value.left + q.value.plot / 2 + q.value.plot * K),
976
+ y: P(c.value.bottom - pe - (B * ce[K] || 0)),
977
+ value: o.absoluteValues[K],
978
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
965
979
  })), he = k.ticks.map((X) => ({
966
980
  y: X >= 0 ? H - B * (X / re) : H + B * Math.abs(X) / re,
967
981
  value: X,
@@ -969,30 +983,30 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
969
983
  suffix: o.suffix || l.value.chart.labels.suffix,
970
984
  datapoint: o
971
985
  })), De = F.ticks.map((X) => {
972
- const J = (X - F.min) / (F.max - F.min);
986
+ const K = (X - F.min) / (F.max - F.min);
973
987
  return {
974
- y: X >= 0 ? Z - B * J : Z + B * J,
988
+ y: X >= 0 ? J - B * K : J + B * K,
975
989
  value: X,
976
990
  prefix: o.prefix || l.value.chart.labels.prefix,
977
991
  suffix: o.suffix || l.value.chart.labels.suffix,
978
992
  datapoint: o
979
993
  };
980
994
  });
981
- return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? De : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? Z : H, M.value[o.scaleLabel].individualMax = o.autoScaling ? U : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = xe, M.value[o.scaleLabel].individualHeight = B, M.value[o.scaleLabel].autoScaleYLabels = De, M.value[o.scaleLabel].unique = Qe.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
995
+ return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? De : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? J : H, M.value[o.scaleLabel].individualMax = o.autoScaling ? U : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = pe, M.value[o.scaleLabel].individualHeight = B, M.value[o.scaleLabel].autoScaleYLabels = De, M.value[o.scaleLabel].unique = Qe.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
982
996
  ...o,
983
- yOffset: xe,
997
+ yOffset: pe,
984
998
  autoScaleYLabels: De,
985
999
  individualHeight: B,
986
1000
  scaleYLabels: o.autoScaling ? De : he,
987
1001
  individualScale: o.autoScaling ? F : k,
988
1002
  individualMax: o.autoScaling ? U : re,
989
- zeroPosition: o.autoScaling ? Z : H,
990
- plots: o.autoScaling ? Ll : pe,
1003
+ zeroPosition: o.autoScaling ? J : H,
1004
+ plots: o.autoScaling ? Ll : ye,
991
1005
  groupId: M.value[o.scaleLabel].groupId
992
1006
  };
993
1007
  });
994
1008
  }), Sl = b(() => {
995
- const a = te.value.map((i) => ({
1009
+ const t = ae.value.map((i) => ({
996
1010
  name: i.name,
997
1011
  color: i.color,
998
1012
  scale: i.individualScale,
@@ -1015,7 +1029,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1015
1029
  id: i.id,
1016
1030
  yOffset: i.yOffset || 0,
1017
1031
  individualHeight: i.individualHeight || c.value.height
1018
- })), e = be.value.map((i) => ({
1032
+ })), e = xe.value.map((i) => ({
1019
1033
  name: i.name,
1020
1034
  color: i.color,
1021
1035
  scale: i.individualScale,
@@ -1027,10 +1041,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1027
1041
  id: i.id,
1028
1042
  yOffset: i.yOffset || 0,
1029
1043
  individualHeight: i.individualHeight || c.value.height
1030
- })), u = f.value.useIndividualScale && !f.value.isStacked ? Object.values(M.value) : [...a, ...s, ...e], t = u.flatMap((i) => i).length;
1044
+ })), u = f.value.useIndividualScale && !f.value.isStacked ? Object.values(M.value) : [...t, ...s, ...e], a = u.flatMap((i) => i).length;
1031
1045
  return u.flatMap((i, o) => {
1032
1046
  let A = 0;
1033
- A = f.value.isStacked ? c.value.left : c.value.left / t * (o + 1);
1047
+ A = f.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
1034
1048
  const C = f.value.useIndividualScale && !f.value.isStacked ? i.unique ? i.name : i.groupName : i.name;
1035
1049
  return {
1036
1050
  unique: i.unique,
@@ -1054,17 +1068,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1054
1068
  }))
1055
1069
  };
1056
1070
  });
1057
- }), ct = b(() => {
1058
- const a = l.value.line.interLine || {}, s = a.pairs || [], e = a.colors || [];
1071
+ }), va = b(() => {
1072
+ const t = l.value.line.interLine || {}, s = t.pairs || [], e = t.colors || [];
1059
1073
  if (!s.length) return [];
1060
1074
  const u = [];
1061
- return s.forEach((t, i) => {
1062
- const [o, A] = Array.isArray(t) ? t : [t.a, t.b];
1075
+ return s.forEach((a, i) => {
1076
+ const [o, A] = Array.isArray(a) ? a : [a.a, a.b];
1063
1077
  if (!o || !A) return;
1064
- const C = te.value.find((k) => k.name === o), O = te.value.find((k) => k.name === A);
1078
+ const C = ae.value.find((k) => k.name === o), O = ae.value.find((k) => k.name === A);
1065
1079
  if (!C || !O || C.type !== "line" || O.type !== "line") return;
1066
1080
  const S = e?.[i]?.[0] ?? C.color, T = e?.[i]?.[1] ?? O.color;
1067
- es({
1081
+ as({
1068
1082
  lineA: C.plots,
1069
1083
  lineB: O.plots,
1070
1084
  smoothA: !!C.smooth,
@@ -1077,135 +1091,135 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1077
1091
  u.push({ ...k, key: `inter_${o}_${A}_${i}_${F}` });
1078
1092
  });
1079
1093
  }), u;
1080
- }), vt = b(() => ({
1094
+ }), da = b(() => ({
1081
1095
  datapoint: je.value,
1082
1096
  seriesIndex: _.value,
1083
- series: Le.value,
1097
+ series: me.value,
1084
1098
  bars: Me.value,
1085
- lines: te.value,
1086
- plots: be.value,
1099
+ lines: ae.value,
1100
+ plots: xe.value,
1087
1101
  config: l.value
1088
1102
  })), rl = b(() => {
1089
- const a = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = ds({
1090
- useUTC: a.useUTC,
1091
- locale: hs[a.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
1092
- januaryAsYear: a.januaryAsYear
1103
+ const t = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = gs({
1104
+ useUTC: t.useUTC,
1105
+ locale: ms[t.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
1106
+ januaryAsYear: t.januaryAsYear
1093
1107
  });
1094
1108
  return (e, u) => {
1095
1109
  const i = l.value.chart.grid.labels.xAxisLabels.values?.[e];
1096
1110
  return i == null ? "" : s.formatDate(new Date(i), u);
1097
1111
  };
1098
- }), dt = b(() => (l.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
1112
+ }), ha = b(() => (l.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
1099
1113
  text: rl.value(e, l.value.chart.zoom.timeFormat),
1100
1114
  absoluteIndex: e
1101
- }))), To = b(() => {
1102
- let a = "", s = je.value.map((t) => t.value).filter((t) => ql(t) && t !== null).reduce((t, i) => Math.abs(t) + Math.abs(i), 0);
1115
+ }))), Oo = b(() => {
1116
+ let t = "", s = je.value.map((a) => a.value).filter((a) => Zl(a) && a !== null).reduce((a, i) => Math.abs(a) + Math.abs(i), 0);
1103
1117
  const e = de.value[_.value], u = l.value.chart.tooltip.customFormat;
1104
- if (Rt(u) && ls(() => u({
1118
+ if (Ba(u) && os(() => u({
1105
1119
  absoluteIndex: _.value + m.value.start,
1106
1120
  seriesIndex: _.value,
1107
1121
  datapoint: je.value,
1108
- series: Le.value,
1122
+ series: me.value,
1109
1123
  bars: Me.value,
1110
- lines: te.value,
1111
- plots: be.value,
1124
+ lines: ae.value,
1125
+ plots: xe.value,
1112
1126
  config: l.value
1113
1127
  })))
1114
1128
  return u({
1115
1129
  absoluteIndex: _.value + m.value.start,
1116
1130
  seriesIndex: _.value,
1117
1131
  datapoint: je.value,
1118
- series: Le.value,
1132
+ series: me.value,
1119
1133
  bars: Me.value,
1120
- lines: te.value,
1121
- plots: be.value,
1134
+ lines: ae.value,
1135
+ plots: xe.value,
1122
1136
  config: l.value
1123
1137
  });
1124
1138
  if (e && e.text && l.value.chart.tooltip.showTimeLabel) {
1125
- const t = rl.value(_.value + m.value.start, l.value.chart.tooltip.timeFormat);
1126
- a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.tooltip.useDefaultTimeFormat ? t : e.text}</div>`;
1139
+ const a = rl.value(_.value + m.value.start, l.value.chart.tooltip.timeFormat);
1140
+ t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
1127
1141
  }
1128
- return je.value.forEach((t) => {
1129
- if (ql(t.value)) {
1142
+ return je.value.forEach((a) => {
1143
+ if (Zl(a.value)) {
1130
1144
  let i = "", o = "";
1131
- switch (bl.value[t.type]) {
1145
+ switch (bl.value[a.type]) {
1132
1146
  case "bar":
1133
- i = `<svg viewBox="0 0 40 40" height="14" width="14">${$a.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${$a.pattern ? `url(#pattern_${D.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
1147
+ i = `<svg viewBox="0 0 40 40" height="14" width="14">${Lt.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Lt.pattern ? `url(#pattern_${D.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
1134
1148
  break;
1135
1149
  case "line":
1136
- !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${Bt({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
1150
+ !a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Ha({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
1137
1151
  break;
1138
1152
  case "plot":
1139
- if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
1140
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" /></svg>`;
1153
+ if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
1154
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
1141
1155
  break;
1142
1156
  }
1143
- if (t.shape === "star") {
1144
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Bt({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
1157
+ if (a.shape === "star") {
1158
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${Ha({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
1145
1159
  break;
1146
1160
  }
1147
- if (t.shape === "triangle") {
1148
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1161
+ if (a.shape === "triangle") {
1162
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1149
1163
  break;
1150
1164
  }
1151
- if (t.shape === "square") {
1152
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1165
+ if (a.shape === "square") {
1166
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1153
1167
  break;
1154
1168
  }
1155
- if (t.shape === "diamond") {
1156
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1169
+ if (a.shape === "diamond") {
1170
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1157
1171
  break;
1158
1172
  }
1159
- if (t.shape === "pentagon") {
1160
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1173
+ if (a.shape === "pentagon") {
1174
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1161
1175
  break;
1162
1176
  }
1163
- if (t.shape === "hexagon") {
1164
- i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1177
+ if (a.shape === "hexagon") {
1178
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1165
1179
  break;
1166
1180
  }
1167
1181
  }
1168
- a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? se(
1169
- t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1170
- t.value,
1182
+ t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${a.name}: <b>${l.value.chart.tooltip.showValue ? se(
1183
+ a.type === "line" ? l.value.line.labels.formatter : a.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1184
+ a.value,
1171
1185
  Ve({
1172
- p: t.prefix,
1173
- v: t.value,
1174
- s: t.suffix,
1186
+ p: a.prefix,
1187
+ v: a.value,
1188
+ s: a.suffix,
1175
1189
  r: l.value.chart.tooltip.roundingValue
1176
1190
  }),
1177
- { datapoint: t }
1191
+ { datapoint: a }
1178
1192
  ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Ve({
1179
- v: P(Math.abs(t.value) / s * 100),
1193
+ v: P(Math.abs(a.value) / s * 100),
1180
1194
  s: "%",
1181
1195
  r: l.value.chart.tooltip.roundingPercentage
1182
- })})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(m.value.start, m.value.end)[_.value] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(m.value.start, m.value.end)[_.value]}</div>`);
1196
+ })})` : ""}</div>`, l.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(m.value.start, m.value.end)[_.value] && (t += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(m.value.start, m.value.end)[_.value]}</div>`);
1183
1197
  }
1184
- }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`;
1185
- }), ht = b(() => {
1198
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${t}</div>`;
1199
+ }), fa = b(() => {
1186
1200
  if (Fe.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1187
- const a = ye.value.map((e) => ({
1201
+ const t = ke.value.map((e) => ({
1188
1202
  label: e.name,
1189
1203
  color: e.color,
1190
1204
  type: e.type
1191
1205
  })), s = [];
1192
1206
  return de.value.forEach((e, u) => {
1193
- const t = l.value.table.useDefaultTimeFormat ? [e.text] : [rl.value(u + m.value.start, l.value.table.timeFormat)];
1194
- ye.value.forEach((i) => {
1195
- t.push(me(i.absoluteValues[u]) ? Number(i.absoluteValues[u].toFixed(l.value.table.rounding)) : "");
1196
- }), s.push(t);
1197
- }), { head: a, body: s };
1198
- }), Xl = b(() => {
1199
- const a = l.value.table.showSum;
1200
- let s = [""].concat(ye.value.map((i) => i.name));
1201
- a && (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>'));
1207
+ const a = l.value.table.useDefaultTimeFormat ? [e.text] : [rl.value(u + m.value.start, l.value.table.timeFormat)];
1208
+ ke.value.forEach((i) => {
1209
+ a.push(be(i.absoluteValues[u]) ? Number(i.absoluteValues[u].toFixed(l.value.table.rounding)) : "");
1210
+ }), s.push(a);
1211
+ }), { head: t, body: s };
1212
+ }), Gl = b(() => {
1213
+ const t = l.value.table.showSum;
1214
+ let s = [""].concat(ke.value.map((i) => i.name));
1215
+ 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>'));
1202
1216
  let e = [];
1203
1217
  for (let i = 0; i < L.value; i += 1) {
1204
- const o = ye.value.map((A) => A.absoluteValues[i] ?? 0).reduce((A, C) => A + C, 0);
1218
+ const o = ke.value.map((A) => A.absoluteValues[i] ?? 0).reduce((A, C) => A + C, 0);
1205
1219
  e.push(
1206
1220
  [
1207
1221
  l.value.table.useDefaultTimeFormat ? de.value[i].text ?? "-" : rl.value(i + m.value.start, l.value.table.timeFormat)
1208
- ].concat(ye.value.map(
1222
+ ].concat(ke.value.map(
1209
1223
  (A) => se(
1210
1224
  A.type === "line" ? l.value.line.labels.formatter : A.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1211
1225
  A.absoluteValues[i] ?? 0,
@@ -1216,7 +1230,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1216
1230
  r: l.value.table.rounding
1217
1231
  })
1218
1232
  )
1219
- )).concat(a ? (o ?? 0).toFixed(l.value.table.rounding) : [])
1233
+ )).concat(t ? (o ?? 0).toFixed(l.value.table.rounding) : [])
1220
1234
  );
1221
1235
  }
1222
1236
  const u = {
@@ -1231,38 +1245,38 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1231
1245
  outline: l.value.table.td.outline
1232
1246
  },
1233
1247
  breakpoint: l.value.table.responsiveBreakpoint
1234
- }, t = [l.value.table.columnNames.period].concat(ye.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
1235
- return { head: s, body: e, config: u, colNames: t };
1248
+ }, a = [l.value.table.columnNames.period].concat(ke.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
1249
+ return { head: s, body: e, config: u, colNames: a };
1236
1250
  });
1237
- function ba(a = null) {
1238
- const s = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...ht.value.head.map((o) => o.label)], u = ht.value.body, t = s.concat([e]).concat(u), i = ss(t);
1239
- a ? a(i) : us({ csvContent: i, title: l.value.chart.title.text || "vue-ui-xy" });
1251
+ function xt(t = null) {
1252
+ const s = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...fa.value.head.map((o) => o.label)], u = fa.value.body, a = s.concat([e]).concat(u), i = ns(a);
1253
+ t ? t(i) : rs({ csvContent: i, title: l.value.chart.title.text || "vue-ui-xy" });
1240
1254
  }
1241
- function ft(a, s = null) {
1242
- Ma.value = a;
1243
- const e = ye.value.map((u) => ({
1255
+ function ga(t, s = null) {
1256
+ At.value = t;
1257
+ const e = ke.value.map((u) => ({
1244
1258
  name: u.name,
1245
1259
  value: [null, void 0, NaN].includes(u.absoluteValues[s]) ? null : u.absoluteValues[s],
1246
1260
  color: u.color,
1247
1261
  type: u.type
1248
1262
  }));
1249
- a ? (_.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s + m.value.start })) : (_.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s + m.value.start }));
1263
+ t ? (_.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s + m.value.start })) : (_.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s + m.value.start }));
1250
1264
  }
1251
- function gt() {
1265
+ function ma() {
1252
1266
  f.value.showTable = !f.value.showTable;
1253
1267
  }
1254
- function mt() {
1268
+ function ba() {
1255
1269
  f.value.dataLabels.show = !f.value.dataLabels.show;
1256
1270
  }
1257
- function bt() {
1271
+ function xa() {
1258
1272
  f.value.showTooltip = !f.value.showTooltip;
1259
1273
  }
1260
- function xt(a) {
1261
- qe.value = a, Aa.value += 1;
1274
+ function pa(t) {
1275
+ qe.value = t, Ct.value += 1;
1262
1276
  }
1263
- function pt() {
1277
+ function ya() {
1264
1278
  if (!l.value.responsiveProportionalSizing) {
1265
- y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, we.value.plot = l.value.plot.radius, we.value.line = l.value.line.radius;
1279
+ y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Se.value.plot = l.value.plot.radius, Se.value.line = l.value.line.radius;
1266
1280
  return;
1267
1281
  }
1268
1282
  y.value.dataLabels = dl({
@@ -1272,44 +1286,44 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1272
1286
  threshold: 10,
1273
1287
  fallback: 10
1274
1288
  }), y.value.yAxis = dl({
1275
- relator: j.value,
1289
+ relator: ee.value,
1276
1290
  adjuster: 1e3,
1277
1291
  source: l.value.chart.grid.labels.axis.fontSize,
1278
1292
  threshold: 10,
1279
1293
  fallback: 10
1280
1294
  }), y.value.xAxis = dl({
1281
- relator: j.value,
1295
+ relator: ee.value,
1282
1296
  adjuster: 1e3,
1283
1297
  source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1284
1298
  threshold: 10,
1285
1299
  fallback: 10
1286
1300
  }), y.value.plotLabels = dl({
1287
- relator: j.value,
1301
+ relator: ee.value,
1288
1302
  adjuster: 800,
1289
1303
  source: l.value.chart.labels.fontSize,
1290
1304
  threshold: 10,
1291
1305
  fallback: 10
1292
- }), we.value.plot = dl({
1293
- relator: j.value,
1306
+ }), Se.value.plot = dl({
1307
+ relator: ee.value,
1294
1308
  adjuster: 800,
1295
1309
  source: l.value.plot.radius,
1296
1310
  threshold: 1,
1297
1311
  fallback: 1
1298
- }), we.value.line = dl({
1299
- relator: j.value,
1312
+ }), Se.value.line = dl({
1313
+ relator: ee.value,
1300
1314
  adjuster: 800,
1301
1315
  source: l.value.line.radius,
1302
1316
  threshold: 1,
1303
1317
  fallback: 1
1304
1318
  });
1305
1319
  }
1306
- function xa() {
1307
- Ht(g.dataset) ? (_a({
1320
+ function pt() {
1321
+ Da(g.dataset) ? (wt({
1308
1322
  componentName: "VueUiXy",
1309
1323
  type: "dataset",
1310
1324
  debug: yl.value
1311
1325
  }), Ol.value = !0) : g.dataset.forEach((s, e) => {
1312
- [null, void 0].includes(s.name) && (_a({
1326
+ [null, void 0].includes(s.name) && (wt({
1313
1327
  componentName: "VueUiXy",
1314
1328
  type: "datasetSerieAttribute",
1315
1329
  property: "name (string)",
@@ -1318,148 +1332,148 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1318
1332
  }), Ol.value = !0);
1319
1333
  }), yl.value && g.dataset.forEach((s) => {
1320
1334
  s.series.forEach((e, u) => {
1321
- ql(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1335
+ Zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1322
1336
  -----> The serie '${s.name}' contains the value '${e}' at index ${u}.
1323
1337
  '${e}' was converted to null to allow the chart to display.`);
1324
1338
  });
1325
- }), Ht(g.dataset) || (Ol.value = l.value.loading), za.value = l.value.chart.userOptions.showOnChartHover, ua.value = l.value.chart.userOptions.keepStateOnChartLeave, zl.value = !l.value.chart.userOptions.showOnChartHover, ca();
1326
- const a = 12;
1339
+ }), Da(g.dataset) || (Ol.value = l.value.loading), It.value = l.value.chart.userOptions.showOnChartHover, it.value = l.value.chart.userOptions.keepStateOnChartLeave, zl.value = !l.value.chart.userOptions.showOnChartHover, vt();
1340
+ const t = 12;
1327
1341
  if (l.value.responsive) {
1328
1342
  const e = Te.value.parentNode;
1329
- Re.value && (Re.value.unobserve(oa.value), Re.value.disconnect());
1330
- const { height: u, width: t } = e.getBoundingClientRect();
1343
+ Re.value && (Re.value.unobserve(st.value), Re.value.disconnect());
1344
+ const { height: u, width: a } = e.getBoundingClientRect();
1331
1345
  let i = null, o = 0;
1332
1346
  l.value.chart.title.show && fl.value && (i = fl.value, o = i.getBoundingClientRect().height);
1333
1347
  let A = null, C = 0;
1334
- l.value.chart.zoom.show && Ie.value > 6 && ra.value && ze.value && ze.value.$el && (A = ze.value.$el, C = A.getBoundingClientRect().height);
1348
+ l.value.chart.zoom.show && Ie.value > 6 && ct.value && ze.value && ze.value.$el && (A = ze.value.$el, C = A.getBoundingClientRect().height);
1335
1349
  let O = null, S = 0;
1336
1350
  l.value.chart.legend.show && sl.value && (O = sl.value, S = O.getBoundingClientRect().height);
1337
1351
  let T = 0;
1338
1352
  gl.value && (T = gl.value.getBoundingClientRect().height);
1339
1353
  let Y = 0;
1340
- ml.value && (Y = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - Y - a, j.value = t, Tl.value = `0 0 ${j.value < 0 ? 10 : j.value} ${ve.value < 0 ? 10 : ve.value}`, pt();
1354
+ ml.value && (Y = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - Y - t, ee.value = a, Tl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, ya();
1341
1355
  const k = new ResizeObserver((F) => {
1342
1356
  for (const z of F)
1343
1357
  l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, ze.value && ze.value.$el ? C = ze.value.$el.getBoundingClientRect().height : C = 0, sl.value ? S = sl.value.getBoundingClientRect().height : S = 0, gl.value ? T = gl.value.getBoundingClientRect().height : T = 0, ml.value ? Y = ml.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
1344
- ve.value = z.contentRect.height - o - S - C - T - Y - a, j.value = z.contentBoxSize[0].inlineSize, Tl.value = `0 0 ${j.value < 0 ? 10 : j.value} ${ve.value < 0 ? 10 : ve.value}`, pt();
1358
+ ve.value = z.contentRect.height - o - S - C - T - Y - t, ee.value = z.contentBoxSize[0].inlineSize, Tl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, ya();
1345
1359
  });
1346
1360
  });
1347
- Re.value = k, oa.value = e, k.observe(e);
1361
+ Re.value = k, st.value = e, k.observe(e);
1348
1362
  } else
1349
- ve.value = l.value.chart.height, j.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, we.value.plot = l.value.plot.radius, we.value.line = l.value.line.radius, Tl.value = `0 0 ${j.value} ${ve.value}`;
1363
+ ve.value = l.value.chart.height, ee.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Se.value.plot = l.value.plot.radius, Se.value.line = l.value.line.radius, Tl.value = `0 0 ${ee.value} ${ve.value}`;
1350
1364
  }
1351
- function yt(a) {
1352
- eo.value = {
1353
- x: a.clientX,
1354
- y: a.clientY
1365
+ function ka(t) {
1366
+ lo.value = {
1367
+ x: t.clientX,
1368
+ y: t.clientY
1355
1369
  };
1356
1370
  }
1357
- Ul(() => {
1358
- xa(), Rl(), document.addEventListener("mousemove", yt, { passive: !0 }), document.addEventListener("scroll", Ya, { passive: !0 });
1359
- }), ya(() => {
1360
- document.removeEventListener("scroll", Ya, { passive: !0 }), document.removeEventListener("mousemove", yt, { passive: !0 }), Re.value && (Re.value.unobserve(oa.value), Re.value.disconnect(), Re.value = null);
1361
- }), gs({
1371
+ ql(() => {
1372
+ pt(), Rl(), document.addEventListener("mousemove", ka, { passive: !0 }), document.addEventListener("scroll", Wt, { passive: !0 });
1373
+ }), kt(() => {
1374
+ document.removeEventListener("scroll", Wt, { passive: !0 }), document.removeEventListener("mousemove", ka, { passive: !0 }), Re.value && (Re.value.unobserve(st.value), Re.value.disconnect(), Re.value = null);
1375
+ }), xs({
1362
1376
  timeLabelsEls: ul,
1363
1377
  timeLabels: de,
1364
1378
  slicer: m,
1365
1379
  configRef: l,
1366
1380
  rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1367
1381
  autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
1368
- isAutoSize: so,
1382
+ isAutoSize: uo,
1369
1383
  height: ve,
1370
- width: j,
1384
+ width: ee,
1371
1385
  rotation: l.value.chart.grid.labels.xAxisLabels.autoRotate.angle
1372
1386
  });
1373
- const Gl = x(!1), kt = x(null), _t = x(200), zo = b(
1387
+ const Ul = x(!1), _a = x(null), wa = x(200), No = b(
1374
1388
  () => _.value ?? V.value ?? 0
1375
1389
  );
1376
- function Io() {
1377
- const a = Math.ceil(_t.value || 200);
1378
- return Math.min(Math.max(a, 1), 200);
1390
+ function Vo() {
1391
+ const t = Math.ceil(wa.value || 200);
1392
+ return Math.min(Math.max(t, 1), 200);
1379
1393
  }
1380
- function Oo() {
1381
- const a = Io(), s = 200, e = Math.max(1, L.value), u = c.value.width / e, i = c.value.left + zo.value * u + u / 2 - a / 2 - (s - a) / 2, o = c.value.left - (s - a) / 2, A = c.value.right - (s + a) / 2, C = Math.max(o, Math.min(i, A));
1394
+ function Po() {
1395
+ const t = Vo(), s = 200, e = Math.max(1, L.value), u = c.value.width / e, i = c.value.left + No.value * u + u / 2 - t / 2 - (s - t) / 2, o = c.value.left - (s - t) / 2, A = c.value.right - (s + t) / 2, C = Math.max(o, Math.min(i, A));
1382
1396
  return P(C);
1383
1397
  }
1384
- Ul(() => {
1385
- let a = null, s = null;
1398
+ ql(() => {
1399
+ let t = null, s = null;
1386
1400
  const e = (i) => {
1387
1401
  cancelAnimationFrame(s), s = requestAnimationFrame(() => {
1388
- _t.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
1402
+ wa.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
1389
1403
  });
1390
1404
  }, u = new ResizeObserver((i) => {
1391
- let o = i.find((A) => A.target === a) || i[0];
1405
+ let o = i.find((A) => A.target === t) || i[0];
1392
1406
  o && e(o.contentRect.width || 200);
1393
- }), t = Lt((i) => {
1394
- const o = kt.value;
1395
- a && a !== o && (u.unobserve(a), a = null), o && o !== a && (Mt(() => {
1407
+ }), a = Ma((i) => {
1408
+ const o = _a.value;
1409
+ t && t !== o && (u.unobserve(t), t = null), o && o !== t && (Aa(() => {
1396
1410
  o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
1397
- }), u.observe(o), a = o), i(() => {
1398
- a && (u.unobserve(a), a = null);
1411
+ }), u.observe(o), t = o), i(() => {
1412
+ t && (u.unobserve(t), t = null);
1399
1413
  });
1400
1414
  });
1401
- ya(() => {
1415
+ kt(() => {
1402
1416
  try {
1403
- a && u.unobserve(a), u.disconnect(), t();
1417
+ t && u.unobserve(t), u.disconnect(), a();
1404
1418
  } catch {
1405
1419
  }
1406
1420
  });
1407
1421
  });
1408
- const No = b(() => {
1422
+ const Fo = b(() => {
1409
1423
  if ([null, void 0].includes(_.value) && [null, void 0].includes(V.value)) return "";
1410
- const a = (_.value != null ? _.value : 0) || (V.value != null ? V.value : 0), s = l.value.chart.timeTag.customFormat;
1411
- if (Gl.value = !1, Rt(s))
1424
+ const t = (_.value != null ? _.value : 0) || (V.value != null ? V.value : 0), s = l.value.chart.timeTag.customFormat;
1425
+ if (Ul.value = !1, Ba(s))
1412
1426
  try {
1413
1427
  const e = s({
1414
- absoluteIndex: a + m.value.start,
1415
- seriesIndex: a,
1428
+ absoluteIndex: t + m.value.start,
1429
+ seriesIndex: t,
1416
1430
  datapoint: je.value,
1417
1431
  bars: Me.value,
1418
- lines: te.value,
1419
- plots: be.value,
1432
+ lines: ae.value,
1433
+ plots: xe.value,
1420
1434
  config: l.value
1421
1435
  });
1422
1436
  if (typeof e == "string")
1423
- return Gl.value = !0, e;
1437
+ return Ul.value = !0, e;
1424
1438
  } catch {
1425
- console.warn("Custom format cannot be applied on timeTag."), Gl.value = !1;
1439
+ console.warn("Custom format cannot be applied on timeTag."), Ul.value = !1;
1426
1440
  }
1427
- if (!Gl.value)
1428
- return [null, void 0].includes(de.value[a]) ? "" : l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.timeTag.useDefaultFormat ? rl.value(a + m.value.start, l.value.chart.timeTag.timeFormat) : de.value[a].text;
1441
+ if (!Ul.value)
1442
+ return [null, void 0].includes(de.value[t]) ? "" : l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.timeTag.useDefaultFormat ? rl.value(t + m.value.start, l.value.chart.timeTag.timeFormat) : de.value[t].text;
1429
1443
  });
1430
- Al(() => g.dataset, (a) => {
1431
- Array.isArray(a) && a.length > 0 && (Ol.value = !1), Ie.value = Math.max(...ge.value.map((s) => Be(s.series).length)), m.value = {
1444
+ Al(() => g.dataset, (t) => {
1445
+ Array.isArray(t) && t.length > 0 && (Ol.value = !1), Ie.value = Math.max(...ge.value.map((s) => Be(s.series).length)), m.value = {
1432
1446
  start: 0,
1433
1447
  end: Ie.value
1434
- }, jt.value += 1, sa.value += 1, nl();
1435
- }, { deep: !0 }), Al(() => g.config, (a) => {
1436
- ie.value || (l.value = na()), xa(), Ta.value += 1, Ca.value += 1, ca(), nl();
1448
+ }, eo.value += 1, ut.value += 1, nl();
1449
+ }, { deep: !0 }), Al(() => g.config, (t) => {
1450
+ ie.value || (l.value = rt()), pt(), zt.value += 1, Tt.value += 1, vt(), nl();
1437
1451
  }, { deep: !0 });
1438
- const pa = x(!1);
1439
- function wt() {
1440
- const a = Te.value?.parentNode;
1441
- if (!a) {
1442
- pa.value = !1;
1452
+ const yt = x(!1);
1453
+ function Sa() {
1454
+ const t = Te.value?.parentNode;
1455
+ if (!t) {
1456
+ yt.value = !1;
1443
1457
  return;
1444
1458
  }
1445
- const s = a.getBoundingClientRect();
1446
- pa.value = s.width > 2 && s.height > 2;
1459
+ const s = t.getBoundingClientRect();
1460
+ yt.value = s.width > 2 && s.height > 2;
1447
1461
  }
1448
- Ul(() => {
1449
- wt();
1450
- const a = new ResizeObserver(() => {
1451
- wt(), pa.value && (xa(), nl(), Rl());
1462
+ ql(() => {
1463
+ Sa();
1464
+ const t = new ResizeObserver(() => {
1465
+ Sa(), yt.value && (pt(), nl(), Rl());
1452
1466
  });
1453
- Te.value?.parentNode && a.observe(Te.value.parentNode);
1467
+ Te.value?.parentNode && t.observe(Te.value.parentNode);
1454
1468
  }), Al(l, () => {
1455
- ca();
1469
+ vt();
1456
1470
  }, { immediate: !0 });
1457
1471
  const $l = b(() => {
1458
- const a = l.value.table.useDialog && !l.value.showTable, s = f.value.showTable;
1472
+ const t = l.value.table.useDialog && !l.value.showTable, s = f.value.showTable;
1459
1473
  return {
1460
- component: a ? Jt : ys,
1474
+ component: t ? Ka : ws,
1461
1475
  title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? `: ${l.value.chart.title.subtitle.text}` : ""}`,
1462
- props: a ? {
1476
+ props: t ? {
1463
1477
  backgroundColor: l.value.table.th.backgroundColor,
1464
1478
  color: l.value.table.th.color,
1465
1479
  headerColor: l.value.table.th.color,
@@ -1484,62 +1498,64 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1484
1498
  }
1485
1499
  };
1486
1500
  });
1487
- Al(() => f.value.showTable, (a) => {
1488
- l.value.showTable || (a && l.value.table.useDialog && il.value ? il.value.open() : il.value && il.value.close && il.value.close());
1501
+ Al(() => f.value.showTable, (t) => {
1502
+ l.value.showTable || (t && l.value.table.useDialog && il.value ? il.value.open() : il.value && il.value.close && il.value.close());
1489
1503
  });
1490
- function St() {
1491
- f.value.showTable = !1, ta.value && ta.value.setTableIconState(!1);
1504
+ function $a() {
1505
+ f.value.showTable = !1, ot.value && ot.value.setTableIconState(!1);
1492
1506
  }
1493
- const Vo = b(() => Le.value.map((a) => ({
1494
- shape: a.type === "bar" ? "square" : a.shape ?? "circle",
1495
- color: a.color,
1496
- name: a.name
1497
- }))), Po = b(() => l.value.chart.backgroundColor), Fo = b(() => l.value.chart.legend), Ro = b(() => l.value.chart.title), { exportSvg: Bo, getSvg: Ho } = fs({
1507
+ const Ro = b(() => me.value.map((t) => ({
1508
+ shape: t.type === "bar" ? "square" : t.shape ?? "circle",
1509
+ color: t.color,
1510
+ name: t.name
1511
+ }))), Bo = b(() => l.value.chart.backgroundColor), Ho = b(() => l.value.chart.legend), Do = b(() => l.value.chart.title), { exportSvg: Eo, getSvg: Yo } = bs({
1498
1512
  svg: ue,
1499
- title: Ro,
1500
- legend: Fo,
1501
- legendItems: Vo,
1502
- backgroundColor: Po
1513
+ title: Do,
1514
+ legend: Ho,
1515
+ legendItems: Ro,
1516
+ backgroundColor: Bo
1503
1517
  });
1504
- async function $t({ isCb: a }) {
1505
- if (a) {
1506
- const { blob: s, url: e, text: u, dataUrl: t } = await Ho();
1507
- l.value.chart.userOptions.callbacks.svg({ blob: s, url: e, text: u, dataUrl: t });
1518
+ async function La({ isCb: t }) {
1519
+ if (t) {
1520
+ const { blob: s, url: e, text: u, dataUrl: a } = await Yo();
1521
+ l.value.chart.userOptions.callbacks.svg({ blob: s, url: e, text: u, dataUrl: a });
1508
1522
  } else
1509
- Bo();
1523
+ Eo();
1510
1524
  }
1511
- return Et({
1512
- getData: yo,
1513
- getImage: ko,
1514
- generatePdf: Ba,
1515
- generateImage: Ha,
1516
- generateSvg: $t,
1517
- generateCsv: ba,
1518
- toggleStack: Ua,
1519
- toggleTable: gt,
1520
- toggleLabels: mt,
1521
- toggleTooltip: bt,
1522
- toggleAnnotator: ha,
1523
- toggleFullscreen: xt
1524
- }), (a, s) => (n(), r("div", {
1525
+ return Ya({
1526
+ getData: ko,
1527
+ getImage: _o,
1528
+ generatePdf: Ht,
1529
+ generateImage: Dt,
1530
+ generateSvg: La,
1531
+ generateCsv: xt,
1532
+ hideSeries: So,
1533
+ showSeries: wo,
1534
+ toggleStack: qt,
1535
+ toggleTable: ma,
1536
+ toggleLabels: ba,
1537
+ toggleTooltip: xa,
1538
+ toggleAnnotator: ft,
1539
+ toggleFullscreen: pa
1540
+ }), (t, s) => (n(), r("div", {
1525
1541
  id: `vue-ui-xy_${D.value}`,
1526
1542
  class: ll(`vue-data-ui-component vue-ui-xy ${qe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1527
1543
  ref_key: "chart",
1528
1544
  ref: Te,
1529
1545
  style: $(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
1530
- onMouseenter: s[6] || (s[6] = () => Xa(!0)),
1531
- onMouseleave: s[7] || (s[7] = () => Xa(!1)),
1532
- onClick: at
1546
+ onMouseenter: s[6] || (s[6] = () => Gt(!0)),
1547
+ onMouseleave: s[7] || (s[7] = () => Gt(!1)),
1548
+ onClick: aa
1533
1549
  }, [
1534
- l.value.chart.userOptions.buttons.annotator && ue.value ? (n(), Ae(v(Zt), {
1550
+ l.value.chart.userOptions.buttons.annotator && ue.value ? (n(), Ae(v(Ja), {
1535
1551
  key: 0,
1536
1552
  svgRef: ue.value,
1537
1553
  backgroundColor: l.value.chart.backgroundColor,
1538
1554
  color: l.value.chart.color,
1539
1555
  active: xl.value,
1540
- onClose: ha
1556
+ onClose: ft
1541
1557
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
1542
- wo.value ? (n(), r("div", {
1558
+ Lo.value ? (n(), r("div", {
1543
1559
  key: 1,
1544
1560
  ref_key: "noTitle",
1545
1561
  ref: ml,
@@ -1553,8 +1569,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1553
1569
  class: "vue-ui-xy-title",
1554
1570
  style: $(`font-family:${l.value.chart.fontFamily}`)
1555
1571
  }, [
1556
- (n(), Ae(bs, {
1557
- key: `title_${Ta.value}`,
1572
+ (n(), Ae(ys, {
1573
+ key: `title_${zt.value}`,
1558
1574
  config: {
1559
1575
  title: {
1560
1576
  cy: "xy-div-title",
@@ -1569,15 +1585,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1569
1585
  ], 4)) : h("", !0),
1570
1586
  p("div", {
1571
1587
  id: `legend-top-${D.value}`
1572
- }, null, 8, ws),
1573
- l.value.chart.userOptions.show && (ua.value || zl.value) ? (n(), Ae(v(Gt), {
1588
+ }, null, 8, Ls),
1589
+ l.value.chart.userOptions.show && (it.value || zl.value) ? (n(), Ae(v(Ua), {
1574
1590
  ref_key: "userOptionsRef",
1575
- ref: ta,
1576
- key: `user_options_${Aa.value}`,
1591
+ ref: ot,
1592
+ key: `user_options_${Ct.value}`,
1577
1593
  backgroundColor: l.value.chart.backgroundColor,
1578
1594
  color: l.value.chart.color,
1579
- isPrinting: v(va),
1580
- isImaging: v(Ra),
1595
+ isPrinting: v(dt),
1596
+ isImaging: v(Bt),
1581
1597
  uid: D.value,
1582
1598
  hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
1583
1599
  hasPdf: l.value.chart.userOptions.buttons.pdf,
@@ -1586,11 +1602,11 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1586
1602
  hasSvg: l.value.chart.userOptions.buttons.svg,
1587
1603
  hasLabel: l.value.chart.userOptions.buttons.labels,
1588
1604
  hasTable: l.value.chart.userOptions.buttons.table,
1589
- hasStack: Ql.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1605
+ hasStack: jl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1590
1606
  hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1591
1607
  isStacked: f.value.isStacked,
1592
1608
  isFullscreen: qe.value,
1593
- chartElement: a.$refs.chart,
1609
+ chartElement: t.$refs.chart,
1594
1610
  position: l.value.chart.userOptions.position,
1595
1611
  isTooltip: f.value.showTooltip,
1596
1612
  titles: { ...l.value.chart.userOptions.buttonTitles },
@@ -1599,94 +1615,94 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1599
1615
  callbacks: l.value.chart.userOptions.callbacks,
1600
1616
  tableDialog: l.value.table.useDialog,
1601
1617
  printScale: l.value.chart.userOptions.print.scale,
1602
- onToggleFullscreen: xt,
1603
- onGeneratePdf: v(Ba),
1604
- onGenerateCsv: ba,
1605
- onGenerateImage: v(Ha),
1606
- onGenerateSvg: $t,
1607
- onToggleTable: gt,
1608
- onToggleLabels: mt,
1609
- onToggleStack: Ua,
1610
- onToggleTooltip: bt,
1611
- onToggleAnnotator: ha,
1618
+ onToggleFullscreen: pa,
1619
+ onGeneratePdf: v(Ht),
1620
+ onGenerateCsv: xt,
1621
+ onGenerateImage: v(Dt),
1622
+ onGenerateSvg: La,
1623
+ onToggleTable: ma,
1624
+ onToggleLabels: ba,
1625
+ onToggleStack: qt,
1626
+ onToggleTooltip: xa,
1627
+ onToggleAnnotator: ft,
1612
1628
  style: $({
1613
- visibility: ua.value ? zl.value ? "visible" : "hidden" : "visible"
1629
+ visibility: it.value ? zl.value ? "visible" : "hidden" : "visible"
1614
1630
  })
1615
- }, At({ _: 2 }, [
1616
- a.$slots.menuIcon ? {
1631
+ }, Ca({ _: 2 }, [
1632
+ t.$slots.menuIcon ? {
1617
1633
  name: "menuIcon",
1618
- fn: Q(({ isOpen: e, color: u }) => [
1619
- W(a.$slots, "menuIcon", We(Xe({ isOpen: e, color: u })), void 0, !0)
1634
+ fn: j(({ isOpen: e, color: u }) => [
1635
+ W(t.$slots, "menuIcon", We(Xe({ isOpen: e, color: u })), void 0, !0)
1620
1636
  ]),
1621
1637
  key: "0"
1622
1638
  } : void 0,
1623
- a.$slots.optionTooltip ? {
1639
+ t.$slots.optionTooltip ? {
1624
1640
  name: "optionTooltip",
1625
- fn: Q(() => [
1626
- W(a.$slots, "optionTooltip", {}, void 0, !0)
1641
+ fn: j(() => [
1642
+ W(t.$slots, "optionTooltip", {}, void 0, !0)
1627
1643
  ]),
1628
1644
  key: "1"
1629
1645
  } : void 0,
1630
- a.$slots.optionPdf ? {
1646
+ t.$slots.optionPdf ? {
1631
1647
  name: "optionPdf",
1632
- fn: Q(() => [
1633
- W(a.$slots, "optionPdf", {}, void 0, !0)
1648
+ fn: j(() => [
1649
+ W(t.$slots, "optionPdf", {}, void 0, !0)
1634
1650
  ]),
1635
1651
  key: "2"
1636
1652
  } : void 0,
1637
- a.$slots.optionCsv ? {
1653
+ t.$slots.optionCsv ? {
1638
1654
  name: "optionCsv",
1639
- fn: Q(() => [
1640
- W(a.$slots, "optionCsv", {}, void 0, !0)
1655
+ fn: j(() => [
1656
+ W(t.$slots, "optionCsv", {}, void 0, !0)
1641
1657
  ]),
1642
1658
  key: "3"
1643
1659
  } : void 0,
1644
- a.$slots.optionImg ? {
1660
+ t.$slots.optionImg ? {
1645
1661
  name: "optionImg",
1646
- fn: Q(() => [
1647
- W(a.$slots, "optionImg", {}, void 0, !0)
1662
+ fn: j(() => [
1663
+ W(t.$slots, "optionImg", {}, void 0, !0)
1648
1664
  ]),
1649
1665
  key: "4"
1650
1666
  } : void 0,
1651
- a.$slots.optionSvg ? {
1667
+ t.$slots.optionSvg ? {
1652
1668
  name: "optionSvg",
1653
- fn: Q(() => [
1654
- W(a.$slots, "optionSvg", {}, void 0, !0)
1669
+ fn: j(() => [
1670
+ W(t.$slots, "optionSvg", {}, void 0, !0)
1655
1671
  ]),
1656
1672
  key: "5"
1657
1673
  } : void 0,
1658
- a.$slots.optionTable ? {
1674
+ t.$slots.optionTable ? {
1659
1675
  name: "optionTable",
1660
- fn: Q(() => [
1661
- W(a.$slots, "optionTable", {}, void 0, !0)
1676
+ fn: j(() => [
1677
+ W(t.$slots, "optionTable", {}, void 0, !0)
1662
1678
  ]),
1663
1679
  key: "6"
1664
1680
  } : void 0,
1665
- a.$slots.optionLabels ? {
1681
+ t.$slots.optionLabels ? {
1666
1682
  name: "optionLabels",
1667
- fn: Q(() => [
1668
- W(a.$slots, "optionLabels", {}, void 0, !0)
1683
+ fn: j(() => [
1684
+ W(t.$slots, "optionLabels", {}, void 0, !0)
1669
1685
  ]),
1670
1686
  key: "7"
1671
1687
  } : void 0,
1672
- a.$slots.optionStack ? {
1688
+ t.$slots.optionStack ? {
1673
1689
  name: "optionStack",
1674
- fn: Q(({ isStack: e }) => [
1675
- W(a.$slots, "optionStack", We(Xe({ isStack: e })), void 0, !0)
1690
+ fn: j(({ isStack: e }) => [
1691
+ W(t.$slots, "optionStack", We(Xe({ isStack: e })), void 0, !0)
1676
1692
  ]),
1677
1693
  key: "8"
1678
1694
  } : void 0,
1679
- a.$slots.optionFullscreen ? {
1695
+ t.$slots.optionFullscreen ? {
1680
1696
  name: "optionFullscreen",
1681
- fn: Q(({ toggleFullscreen: e, isFullscreen: u }) => [
1682
- W(a.$slots, "optionFullscreen", We(Xe({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
1697
+ fn: j(({ toggleFullscreen: e, isFullscreen: u }) => [
1698
+ W(t.$slots, "optionFullscreen", We(Xe({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
1683
1699
  ]),
1684
1700
  key: "9"
1685
1701
  } : void 0,
1686
- a.$slots.optionAnnotator ? {
1702
+ t.$slots.optionAnnotator ? {
1687
1703
  name: "optionAnnotator",
1688
- fn: Q(({ toggleAnnotator: e, isAnnotator: u }) => [
1689
- W(a.$slots, "optionAnnotator", We(Xe({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
1704
+ fn: j(({ toggleAnnotator: e, isAnnotator: u }) => [
1705
+ W(t.$slots, "optionAnnotator", We(Xe({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
1690
1706
  ]),
1691
1707
  key: "10"
1692
1708
  } : void 0
@@ -1703,21 +1719,21 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1703
1719
  color: l.value.chart.color,
1704
1720
  fontFamily: l.value.chart.fontFamily
1705
1721
  }),
1706
- "aria-label": _o.value,
1722
+ "aria-label": $o.value,
1707
1723
  role: "img",
1708
1724
  "aria-live": "polite",
1709
1725
  preserveAspectRatio: "xMidYMid",
1710
- onMousemove: po,
1726
+ onMousemove: yo,
1711
1727
  onMouseleave: Dl,
1712
- onClick: at
1728
+ onClick: aa
1713
1729
  }, [
1714
1730
  p("g", {
1715
1731
  ref_key: "G",
1716
- ref: Qt,
1732
+ ref: ja,
1717
1733
  class: "vue-data-ui-g"
1718
1734
  }, [
1719
- vl(v(qt)),
1720
- a.$slots["chart-background"] ? (n(), r("foreignObject", {
1735
+ vl(v(Za)),
1736
+ t.$slots["chart-background"] ? (n(), r("foreignObject", {
1721
1737
  key: 0,
1722
1738
  x: c.value.left + G.value < 0 ? 0 : c.value.left + G.value,
1723
1739
  y: c.value.top,
@@ -1727,10 +1743,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1727
1743
  pointerEvents: "none"
1728
1744
  }
1729
1745
  }, [
1730
- W(a.$slots, "chart-background", {}, void 0, !0)
1731
- ], 8, $s)) : h("", !0),
1732
- L.value > 0 ? (n(), r("g", Ls, [
1733
- p("g", Ms, [
1746
+ W(t.$slots, "chart-background", {}, void 0, !0)
1747
+ ], 8, As)) : h("", !0),
1748
+ L.value > 0 ? (n(), r("g", Cs, [
1749
+ p("g", Ts, [
1734
1750
  l.value.chart.grid.labels.xAxis.showBaseline ? (n(), r("line", {
1735
1751
  key: 0,
1736
1752
  stroke: l.value.chart.grid.stroke,
@@ -1741,7 +1757,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1741
1757
  y2: v(E)(c.value.bottom),
1742
1758
  "stroke-linecap": "round",
1743
1759
  style: { animation: "none !important" }
1744
- }, null, 8, As)) : h("", !0),
1760
+ }, null, 8, zs)) : h("", !0),
1745
1761
  f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (n(!0), r(d, { key: 2 }, w(Sl.value, (e) => (n(), r("g", null, [
1746
1762
  e.id === I.value && e.yLabels.length ? (n(!0), r(d, { key: 0 }, w(e.yLabels, (u) => (n(), r("line", {
1747
1763
  x1: c.value.left + G.value,
@@ -1752,7 +1768,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1752
1768
  "stroke-width": 0.5,
1753
1769
  "stroke-linecap": "round",
1754
1770
  style: { animation: "none !important" }
1755
- }, null, 8, Is))), 256)) : e.yLabels.length ? (n(!0), r(d, { key: 1 }, w(e.yLabels, (u) => (n(), r("line", {
1771
+ }, null, 8, Vs))), 256)) : e.yLabels.length ? (n(!0), r(d, { key: 1 }, w(e.yLabels, (u) => (n(), r("line", {
1756
1772
  x1: c.value.left + G.value,
1757
1773
  x2: c.value.right - G.value,
1758
1774
  y1: v(E)(u.y),
@@ -1761,7 +1777,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1761
1777
  "stroke-width": 0.5,
1762
1778
  "stroke-linecap": "round",
1763
1779
  style: { animation: "none !important" }
1764
- }, null, 8, Os))), 256)) : h("", !0)
1780
+ }, null, 8, Ps))), 256)) : h("", !0)
1765
1781
  ]))), 256)) : h("", !0) : (n(), r(d, { key: 1 }, [
1766
1782
  l.value.chart.grid.labels.yAxis.showBaseline ? (n(), r("line", {
1767
1783
  key: 0,
@@ -1773,9 +1789,9 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1773
1789
  y2: v(E)(c.value.bottom),
1774
1790
  "stroke-linecap": "round",
1775
1791
  style: { animation: "none !important" }
1776
- }, null, 8, Cs)) : h("", !0),
1777
- l.value.chart.grid.showHorizontalLines ? (n(), r("g", Ts, [
1778
- (n(!0), r(d, null, w(it.value, (e) => (n(), r("line", {
1792
+ }, null, 8, Is)) : h("", !0),
1793
+ l.value.chart.grid.showHorizontalLines ? (n(), r("g", Os, [
1794
+ (n(!0), r(d, null, w(na.value, (e) => (n(), r("line", {
1779
1795
  x1: c.value.left + G.value,
1780
1796
  x2: c.value.right,
1781
1797
  y1: v(E)(e.y),
@@ -1784,32 +1800,32 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1784
1800
  "stroke-width": 0.5,
1785
1801
  "stroke-linecap": "round",
1786
1802
  style: { animation: "none !important" }
1787
- }, null, 8, zs))), 256))
1803
+ }, null, 8, Ns))), 256))
1788
1804
  ])) : h("", !0)
1789
1805
  ], 64)),
1790
- l.value.chart.grid.showVerticalLines ? (n(), r("g", Ns, [
1806
+ l.value.chart.grid.showVerticalLines ? (n(), r("g", Fs, [
1791
1807
  p("path", {
1792
- d: ro.value,
1808
+ d: co.value,
1793
1809
  "stroke-width": 0.5,
1794
1810
  stroke: l.value.chart.grid.stroke,
1795
1811
  "stroke-linecap": "round",
1796
1812
  style: { animation: "none !important" }
1797
- }, null, 8, Vs)
1813
+ }, null, 8, Rs)
1798
1814
  ])) : h("", !0),
1799
- l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", Ps, [
1815
+ l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", Bs, [
1800
1816
  p("path", {
1801
- d: co.value,
1817
+ d: vo.value,
1802
1818
  stroke: l.value.chart.grid.stroke,
1803
1819
  "stroke-width": 1,
1804
1820
  "stroke-linecap": "round",
1805
1821
  style: { animation: "none !important" }
1806
- }, null, 8, Fs)
1822
+ }, null, 8, Hs)
1807
1823
  ])) : h("", !0)
1808
1824
  ]),
1809
1825
  (n(!0), r(d, null, w(Me.value, (e, u) => (n(), r("defs", {
1810
1826
  key: `def_rect_${u}`
1811
1827
  }, [
1812
- a.$slots["bar-gradient"] ? W(a.$slots, "bar-gradient", al({
1828
+ t.$slots["bar-gradient"] ? W(t.$slots, "bar-gradient", tl({
1813
1829
  key: 0,
1814
1830
  ref_for: !0
1815
1831
  }, { series: e, positiveId: `rectGradient_pos_${u}_${D.value}`, negativeId: `rectGradient_neg_${u}_${D.value}` }), void 0, !0) : (n(), r(d, { key: 1 }, [
@@ -1821,16 +1837,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1821
1837
  p("stop", {
1822
1838
  offset: "0%",
1823
1839
  "stop-color": e.color
1824
- }, null, 8, Bs),
1840
+ }, null, 8, Es),
1825
1841
  p("stop", {
1826
1842
  offset: "62%",
1827
1843
  "stop-color": `${v(ol)(e.color, 0.02)}`
1828
- }, null, 8, Hs),
1844
+ }, null, 8, Ys),
1829
1845
  p("stop", {
1830
1846
  offset: "100%",
1831
1847
  "stop-color": `${v(ol)(e.color, 0.05)}`
1832
- }, null, 8, Ds)
1833
- ], 8, Rs),
1848
+ }, null, 8, Ws)
1849
+ ], 8, Ds),
1834
1850
  p("linearGradient", {
1835
1851
  id: `rectGradient_neg_${u}_${D.value}`,
1836
1852
  x2: "0%",
@@ -1839,19 +1855,19 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1839
1855
  p("stop", {
1840
1856
  offset: "0%",
1841
1857
  "stop-color": `${v(ol)(e.color, 0.05)}`
1842
- }, null, 8, Ys),
1858
+ }, null, 8, Gs),
1843
1859
  p("stop", {
1844
1860
  offset: "38%",
1845
1861
  "stop-color": `${v(ol)(e.color, 0.02)}`
1846
- }, null, 8, Ws),
1862
+ }, null, 8, Us),
1847
1863
  p("stop", {
1848
1864
  offset: "100%",
1849
1865
  "stop-color": e.color
1850
- }, null, 8, Xs)
1851
- ], 8, Es)
1866
+ }, null, 8, qs)
1867
+ ], 8, Xs)
1852
1868
  ], 64))
1853
1869
  ]))), 128)),
1854
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r("defs", {
1870
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r("defs", {
1855
1871
  key: `def_plot_${u}`
1856
1872
  }, [
1857
1873
  p("radialGradient", {
@@ -1865,14 +1881,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1865
1881
  p("stop", {
1866
1882
  offset: "0%",
1867
1883
  "stop-color": `${v(ol)(e.color, 0.05)}`
1868
- }, null, 8, Us),
1884
+ }, null, 8, Js),
1869
1885
  p("stop", {
1870
1886
  offset: "100%",
1871
1887
  "stop-color": e.color
1872
- }, null, 8, qs)
1873
- ], 8, Gs)
1888
+ }, null, 8, Ks)
1889
+ ], 8, Zs)
1874
1890
  ]))), 128)),
1875
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r("defs", {
1891
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("defs", {
1876
1892
  key: `def_line_${e.id}`
1877
1893
  }, [
1878
1894
  p("radialGradient", {
@@ -1886,13 +1902,13 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1886
1902
  p("stop", {
1887
1903
  offset: "0%",
1888
1904
  "stop-color": `${v(ol)(e.color, 0.05)}`
1889
- }, null, 8, Js),
1905
+ }, null, 8, js),
1890
1906
  p("stop", {
1891
1907
  offset: "100%",
1892
1908
  "stop-color": e.color
1893
- }, null, 8, Ks)
1894
- ], 8, Zs),
1895
- a.$slots["area-gradient"] ? W(a.$slots, "area-gradient", al({
1909
+ }, null, 8, eu)
1910
+ ], 8, Qs),
1911
+ t.$slots["area-gradient"] ? W(t.$slots, "area-gradient", tl({
1896
1912
  key: 0,
1897
1913
  ref_for: !0
1898
1914
  }, { series: e, id: `areaGradient_${u}_${D.value}` }), void 0, !0) : (n(), r("linearGradient", {
@@ -1906,32 +1922,32 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1906
1922
  p("stop", {
1907
1923
  offset: "0%",
1908
1924
  "stop-color": `${v(Ce)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
1909
- }, null, 8, js),
1925
+ }, null, 8, tu),
1910
1926
  p("stop", {
1911
1927
  offset: "100%",
1912
1928
  "stop-color": `${v(Ce)(e.color, l.value.line.area.opacity)}`
1913
- }, null, 8, eu)
1914
- ], 8, Qs))
1929
+ }, null, 8, au)
1930
+ ], 8, lu))
1915
1931
  ]))), 128)),
1916
- (n(!0), r(d, null, w(So.value, (e) => (n(), r("g", null, [
1932
+ (n(!0), r(d, null, w(Mo.value, (e) => (n(), r("g", null, [
1917
1933
  e.show ? (n(), r(d, { key: 0 }, [
1918
- (n(!0), r(d, null, w(e.span, (u, t) => (n(), r("g", null, [
1934
+ (n(!0), r(d, null, w(e.span, (u, a) => (n(), r("g", null, [
1919
1935
  p("rect", {
1920
1936
  style: $({
1921
1937
  transition: "none",
1922
- opacity: e.from + t >= m.value.start && e.from + t <= m.value.end - 1 ? 1 : 0
1938
+ opacity: e.from + a >= m.value.start && e.from + a <= m.value.end - 1 ? 1 : 0
1923
1939
  }),
1924
- x: c.value.left + c.value.width / L.value * (e.from + t - m.value.start),
1940
+ x: c.value.left + c.value.width / L.value * (e.from + a - m.value.start),
1925
1941
  y: c.value.top,
1926
1942
  height: c.value.height < 0 ? 10 : c.value.height,
1927
1943
  width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
1928
1944
  fill: v(Ce)(e.color, e.opacity)
1929
- }, null, 12, lu)
1945
+ }, null, 12, ou)
1930
1946
  ]))), 256)),
1931
- (n(!0), r(d, null, w(e.span, (u, t) => (n(), r("g", null, [
1932
- e.caption.text && t === 0 ? (n(), r("foreignObject", {
1947
+ (n(!0), r(d, null, w(e.span, (u, a) => (n(), r("g", null, [
1948
+ e.caption.text && a === 0 ? (n(), r("foreignObject", {
1933
1949
  key: 0,
1934
- x: c.value.left + c.value.width / L.value * (e.from + t - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / L.value * e.span / 2),
1950
+ x: c.value.left + c.value.width / L.value * (e.from + a - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / L.value * e.span / 2),
1935
1951
  y: c.value.top + e.caption.offsetY,
1936
1952
  style: $({
1937
1953
  overflow: "visible",
@@ -1942,12 +1958,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1942
1958
  }, [
1943
1959
  p("div", {
1944
1960
  style: $(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
1945
- }, ae(e.caption.text), 5)
1946
- ], 12, au)) : h("", !0)
1961
+ }, te(e.caption.text), 5)
1962
+ ], 12, su)) : h("", !0)
1947
1963
  ]))), 256))
1948
1964
  ], 64)) : h("", !0)
1949
1965
  ]))), 256)),
1950
- Wa.value ? (n(), r("g", tu, [
1966
+ Xt.value ? (n(), r("g", uu, [
1951
1967
  (n(!0), r(d, null, w(L.value, (e, u) => (n(), r("g", {
1952
1968
  key: `tooltip_trap_highlighter_${u}`
1953
1969
  }, [
@@ -1958,7 +1974,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1958
1974
  width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
1959
1975
  fill: [V.value, _.value, Ze.value].includes(u) ? v(Ce)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
1960
1976
  style: { transition: "none !important", animation: "none !important" }
1961
- }, null, 8, ou)
1977
+ }, null, 8, iu)
1962
1978
  ]))), 128))
1963
1979
  ])) : h("", !0),
1964
1980
  Me.value.length ? (n(!0), r(d, { key: 1 }, w(Me.value, (e, u) => (n(), r("g", {
@@ -1966,47 +1982,47 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
1966
1982
  class: ll(`serie_bar_${u}`),
1967
1983
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1968
1984
  }, [
1969
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r("g", {
1985
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r("g", {
1970
1986
  key: `bar_plot_${u}_${i}`
1971
1987
  }, [
1972
- me(t.value) ? (n(), r("rect", {
1988
+ be(a.value) ? (n(), r("rect", {
1973
1989
  key: 0,
1974
- x: Hl(t) + Wl.value / 2,
1975
- y: f.value.useIndividualScale ? et(t) : ja(t),
1976
- height: f.value.useIndividualScale ? Math.abs(Qa(t)) : Math.abs(Ka(t)),
1977
- width: Yl.value - Wl.value,
1990
+ x: Hl(a) + Xl.value / 2,
1991
+ y: f.value.useIndividualScale ? la(a) : ea(a),
1992
+ height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
1993
+ width: Wl.value - Xl.value,
1978
1994
  rx: l.value.bar.borderRadius,
1979
- fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${u}_${D.value})` : `url(#rectGradient_neg_${u}_${D.value})` : e.color,
1995
+ fill: l.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${D.value})` : `url(#rectGradient_neg_${u}_${D.value})` : e.color,
1980
1996
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1981
1997
  "stroke-width": l.value.bar.border.strokeWidth,
1982
1998
  style: $({
1983
1999
  transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out`
1984
2000
  })
1985
- }, null, 12, su)) : h("", !0),
1986
- me(t.value) && a.$slots.pattern ? (n(), r("rect", {
2001
+ }, null, 12, nu)) : h("", !0),
2002
+ be(a.value) && t.$slots.pattern ? (n(), r("rect", {
1987
2003
  key: 1,
1988
- x: Hl(t) - Wl.value / 2,
1989
- y: f.value.useIndividualScale ? et(t) : ja(t),
1990
- height: f.value.useIndividualScale ? Math.abs(Qa(t)) : Math.abs(Ka(t)),
1991
- width: Yl.value - Wl.value,
2004
+ x: Hl(a) - Xl.value / 2,
2005
+ y: f.value.useIndividualScale ? la(a) : ea(a),
2006
+ height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
2007
+ width: Wl.value - Xl.value,
1992
2008
  rx: l.value.bar.borderRadius,
1993
2009
  fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
1994
2010
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1995
2011
  "stroke-width": l.value.bar.border.strokeWidth,
1996
2012
  style: $({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
1997
- }, null, 12, uu)) : h("", !0),
1998
- t.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2013
+ }, null, 12, ru)) : h("", !0),
2014
+ a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
1999
2015
  key: 2,
2000
2016
  style: { overflow: "visible" },
2001
2017
  height: "12",
2002
- width: Yl.value / 2 + l.value.chart.comments.width,
2003
- x: Hl(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2004
- y: v(P)(t.y) + l.value.chart.comments.offsetY + 6
2018
+ width: Wl.value / 2 + l.value.chart.comments.width,
2019
+ x: Hl(a) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2020
+ y: v(P)(a.y) + l.value.chart.comments.offsetY + 6
2005
2021
  }, [
2006
- W(a.$slots, "plot-comment", {
2007
- plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
2022
+ W(t.$slots, "plot-comment", {
2023
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
2008
2024
  }, void 0, !0)
2009
- ], 8, iu)) : h("", !0)
2025
+ ], 8, cu)) : h("", !0)
2010
2026
  ]))), 128))
2011
2027
  ], 6))), 128)) : h("", !0),
2012
2028
  !f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (n(), r("line", {
@@ -2019,8 +2035,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2019
2035
  y2: v(E)(ne.value),
2020
2036
  "stroke-linecap": "round",
2021
2037
  style: { animation: "none !important" }
2022
- }, null, 8, nu)) : h("", !0),
2023
- l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", ru, [
2038
+ }, null, 8, vu)) : h("", !0),
2039
+ l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", du, [
2024
2040
  p("line", {
2025
2041
  x1: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
2026
2042
  x2: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
@@ -2031,7 +2047,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2031
2047
  "stroke-dasharray": l.value.chart.highlighter.lineDasharray,
2032
2048
  "stroke-linecap": "round",
2033
2049
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
2034
- }, null, 8, cu)
2050
+ }, null, 8, hu)
2035
2051
  ])) : h("", !0),
2036
2052
  l.value.chart.grid.frame.show ? (n(), r("rect", {
2037
2053
  key: 4,
@@ -2046,11 +2062,11 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2046
2062
  "stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
2047
2063
  "stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
2048
2064
  "stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
2049
- }, null, 8, vu)) : h("", !0),
2065
+ }, null, 8, fu)) : h("", !0),
2050
2066
  l.value.chart.grid.labels.show ? (n(), r("g", {
2051
2067
  key: 5,
2052
2068
  ref_key: "scaleLabels",
2053
- ref: aa
2069
+ ref: at
2054
2070
  }, [
2055
2071
  f.value.useIndividualScale ? (n(), r(d, { key: 0 }, [
2056
2072
  (n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", null, [
@@ -2063,7 +2079,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2063
2079
  "stroke-width": l.value.chart.grid.stroke,
2064
2080
  "stroke-linecap": "round",
2065
2081
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
2066
- }, null, 12, du)
2082
+ }, null, 12, gu)
2067
2083
  ]))), 256)),
2068
2084
  (n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", {
2069
2085
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2073,9 +2089,9 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2073
2089
  "font-size": y.value.dataLabels * 0.8,
2074
2090
  "text-anchor": "middle",
2075
2091
  transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
2076
- }, ae(e.name) + " " + ae(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2077
- ${e.scaleLabel}` : ""), 9, hu),
2078
- (n(!0), r(d, null, w(e.yLabels, (u, t) => (n(), r(d, null, [
2092
+ }, te(e.name) + " " + te(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2093
+ ${e.scaleLabel}` : ""), 9, mu),
2094
+ (n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r(d, null, [
2079
2095
  l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
2080
2096
  key: 0,
2081
2097
  x1: e.x + 3 + G.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
@@ -2086,15 +2102,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2086
2102
  "stroke-width": 1,
2087
2103
  "stroke-linecap": "round",
2088
2104
  style: { animation: "none !important" }
2089
- }, null, 8, fu)) : h("", !0)
2105
+ }, null, 8, bu)) : h("", !0)
2090
2106
  ], 64))), 256)),
2091
- (n(!0), r(d, null, w(e.yLabels, (u, t) => (n(), r("text", {
2107
+ (n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r("text", {
2092
2108
  x: e.x - 5 + G.value - c.value.individualOffsetX,
2093
2109
  y: v(E)(u.y) + y.value.dataLabels / 3,
2094
2110
  "font-size": y.value.dataLabels,
2095
2111
  "text-anchor": "end",
2096
2112
  fill: e.color
2097
- }, ae(v(se)(
2113
+ }, te(v(se)(
2098
2114
  l.value.chart.grid.labels.yAxis.formatter,
2099
2115
  u.value,
2100
2116
  v(Ve)({
@@ -2103,13 +2119,13 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2103
2119
  s: u.suffix,
2104
2120
  r: l.value.chart.grid.labels.yAxis.rounding
2105
2121
  }),
2106
- { datapoint: u.datapoint, seriesIndex: t }
2107
- )), 9, gu))), 256))
2122
+ { datapoint: u.datapoint, seriesIndex: a }
2123
+ )), 9, xu))), 256))
2108
2124
  ], 4))), 256))
2109
- ], 64)) : (n(!0), r(d, { key: 1 }, w(it.value, (e, u) => (n(), r("g", {
2125
+ ], 64)) : (n(!0), r(d, { key: 1 }, w(na.value, (e, u) => (n(), r("g", {
2110
2126
  key: `yLabel_${u}`
2111
2127
  }, [
2112
- me(e) && e.value >= $e.value.min && e.value <= $e.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
2128
+ be(e) && e.value >= Le.value.min && e.value <= Le.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
2113
2129
  key: 0,
2114
2130
  x1: c.value.left + G.value,
2115
2131
  x2: c.value.left + G.value - l.value.chart.grid.labels.yAxis.crosshairSize,
@@ -2119,15 +2135,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2119
2135
  "stroke-width": "1",
2120
2136
  "stroke-linecap": "round",
2121
2137
  style: { animation: "none !important" }
2122
- }, null, 8, mu)) : h("", !0),
2123
- e.value >= $e.value.min && e.value <= $e.value.max ? (n(), r("text", {
2138
+ }, null, 8, pu)) : h("", !0),
2139
+ e.value >= Le.value.min && e.value <= Le.value.max ? (n(), r("text", {
2124
2140
  key: 1,
2125
2141
  x: c.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
2126
2142
  y: v(P)(e.y + y.value.dataLabels / 3),
2127
2143
  "font-size": y.value.dataLabels,
2128
2144
  "text-anchor": "end",
2129
2145
  fill: l.value.chart.grid.labels.color
2130
- }, ae(me(e.value) ? v(se)(
2146
+ }, te(be(e.value) ? v(se)(
2131
2147
  l.value.chart.grid.labels.yAxis.formatter,
2132
2148
  e.value,
2133
2149
  v(Ve)({
@@ -2136,44 +2152,44 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2136
2152
  s: e.suffix,
2137
2153
  r: l.value.chart.grid.labels.yAxis.rounding
2138
2154
  })
2139
- ) : ""), 9, bu)) : h("", !0)
2155
+ ) : ""), 9, yu)) : h("", !0)
2140
2156
  ]))), 128))
2141
2157
  ], 512)) : h("", !0),
2142
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r("g", {
2158
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r("g", {
2143
2159
  key: `serie_plot_${e.id}`,
2144
2160
  class: ll(`serie_plot_${u}`),
2145
2161
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2146
2162
  }, [
2147
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r("g", {
2163
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r("g", {
2148
2164
  key: `circle_plot_${u}_${i}`
2149
2165
  }, [
2150
- t && me(t.value) ? (n(), Ae(Kl, {
2166
+ a && be(a.value) ? (n(), Ae(Ql, {
2151
2167
  key: 0,
2152
2168
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2153
2169
  color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${D.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
2154
- plot: { x: v(P)(t.x), y: v(P)(t.y) },
2155
- radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (we.value.plot || 6) * 1.5 : we.value.plot || 6,
2170
+ plot: { x: v(P)(a.x), y: v(P)(a.y) },
2171
+ radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Se.value.plot || 6) * 1.5 : Se.value.plot || 6,
2156
2172
  stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2157
2173
  strokeWidth: l.value.plot.dot.strokeWidth,
2158
2174
  transition: v(ie) || !l.value.plot.showTransition || _.value !== null && _.value === i || V.value !== null && V.value === i ? void 0 : `all ${l.value.plot.transitionDurationMs}ms ease-in-out`
2159
2175
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
2160
- t.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2176
+ a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2161
2177
  key: 1,
2162
2178
  style: { overflow: "visible" },
2163
2179
  height: "12",
2164
2180
  width: l.value.chart.comments.width,
2165
- x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2166
- y: t.y + l.value.chart.comments.offsetY + 6
2181
+ x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2182
+ y: a.y + l.value.chart.comments.offsetY + 6
2167
2183
  }, [
2168
- p("div", pu, [
2169
- W(a.$slots, "plot-comment", {
2170
- plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
2184
+ p("div", _u, [
2185
+ W(t.$slots, "plot-comment", {
2186
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
2171
2187
  }, void 0, !0)
2172
2188
  ])
2173
- ], 8, xu)) : h("", !0)
2189
+ ], 8, ku)) : h("", !0)
2174
2190
  ]))), 128))
2175
2191
  ], 6))), 128)),
2176
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r("g", {
2192
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("g", {
2177
2193
  key: `serie_line_${e.id}`,
2178
2194
  class: ll(`serie_line_${u}`),
2179
2195
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2186,7 +2202,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2186
2202
  "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2187
2203
  fill: "none",
2188
2204
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2189
- }, null, 12, yu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
2205
+ }, null, 12, wu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
2190
2206
  key: 1,
2191
2207
  d: `M${e.straight}`,
2192
2208
  stroke: l.value.chart.backgroundColor,
@@ -2196,15 +2212,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2196
2212
  "stroke-linecap": "round",
2197
2213
  "stroke-linejoin": "round",
2198
2214
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2199
- }, null, 12, ku)) : h("", !0)
2215
+ }, null, 12, Su)) : h("", !0)
2200
2216
  ], 6))), 128)),
2201
- a.$slots.pattern ? (n(), r("defs", _u, [
2202
- (n(!0), r(d, null, w(Fe.value, (e, u) => W(a.$slots, "pattern", al({
2217
+ t.$slots.pattern ? (n(), r("defs", $u, [
2218
+ (n(!0), r(d, null, w(Fe.value, (e, u) => W(t.$slots, "pattern", tl({
2203
2219
  key: `serie_pattern_slot_${e.id}`
2204
2220
  }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${D.value}_${u}` }), void 0, !0)), 128))
2205
2221
  ])) : h("", !0),
2206
- ct.value.length && !f.value.isStacked ? (n(), r("g", wu, [
2207
- (n(!0), r(d, null, w(ct.value, (e) => (n(), r("path", {
2222
+ va.value.length && !f.value.isStacked ? (n(), r("g", Lu, [
2223
+ (n(!0), r(d, null, w(va.value, (e) => (n(), r("path", {
2208
2224
  key: e.key,
2209
2225
  d: e.d,
2210
2226
  fill: e.color,
@@ -2212,40 +2228,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2212
2228
  stroke: "none",
2213
2229
  "pointer-events": "none",
2214
2230
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2215
- }, null, 12, Su))), 128))
2231
+ }, null, 12, Mu))), 128))
2216
2232
  ])) : h("", !0),
2217
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r("g", {
2233
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("g", {
2218
2234
  key: `serie_line_above_${e.id}`,
2219
2235
  class: ll(`serie_line_${u}`),
2220
2236
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2221
2237
  }, [
2222
- e.useArea && e.plots.length > 1 ? (n(), r("g", $u, [
2223
- e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (t, i) => (n(), r(d, { key: i }, [
2224
- t ? (n(), r("path", {
2238
+ e.useArea && e.plots.length > 1 ? (n(), r("g", Au, [
2239
+ e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (a, i) => (n(), r(d, { key: i }, [
2240
+ a ? (n(), r("path", {
2225
2241
  key: 0,
2226
- d: t,
2242
+ d: a,
2227
2243
  fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(Ce)(e.color, l.value.line.area.opacity),
2228
2244
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2229
- }, null, 12, Lu)) : h("", !0),
2230
- a.$slots.pattern && t ? (n(), r("path", {
2245
+ }, null, 12, Cu)) : h("", !0),
2246
+ t.$slots.pattern && a ? (n(), r("path", {
2231
2247
  key: 1,
2232
- d: t,
2248
+ d: a,
2233
2249
  fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
2234
2250
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2235
- }, null, 12, Mu)) : h("", !0)
2236
- ], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (t, i) => (n(), r(d, { key: i }, [
2237
- t ? (n(), r("path", {
2251
+ }, null, 12, Tu)) : h("", !0)
2252
+ ], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (a, i) => (n(), r(d, { key: i }, [
2253
+ a ? (n(), r("path", {
2238
2254
  key: 0,
2239
- d: `M${t}Z`,
2255
+ d: `M${a}Z`,
2240
2256
  fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(Ce)(e.color, l.value.line.area.opacity),
2241
2257
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2242
- }, null, 12, Au)) : h("", !0),
2243
- a.$slots.pattern && t ? (n(), r("path", {
2258
+ }, null, 12, zu)) : h("", !0),
2259
+ t.$slots.pattern && a ? (n(), r("path", {
2244
2260
  key: 1,
2245
- d: `M${t}Z`,
2261
+ d: `M${a}Z`,
2246
2262
  fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
2247
2263
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2248
- }, null, 12, Cu)) : h("", !0)
2264
+ }, null, 12, Iu)) : h("", !0)
2249
2265
  ], 64))), 128))
2250
2266
  ])) : h("", !0),
2251
2267
  e.smooth && e.plots.length > 1 && e.curve ? (n(), r("path", {
@@ -2257,7 +2273,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2257
2273
  fill: "none",
2258
2274
  "stroke-linecap": "round",
2259
2275
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2260
- }, null, 12, Tu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
2276
+ }, null, 12, Ou)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
2261
2277
  key: 2,
2262
2278
  d: `M${e.straight}`,
2263
2279
  stroke: e.color,
@@ -2267,117 +2283,117 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2267
2283
  "stroke-linecap": "round",
2268
2284
  "stroke-linejoin": "round",
2269
2285
  style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2270
- }, null, 12, zu)) : h("", !0),
2271
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2286
+ }, null, 12, Nu)) : h("", !0),
2287
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2272
2288
  key: `circle_line_${u}_${i}`
2273
2289
  }, [
2274
- !st.value.linePlot && t && me(t.value) || st.value.linePlot && t && me(t.value) && (_.value !== null && _.value === i || V.value !== null && V.value === i) || rt(e.plots, i) ? (n(), Ae(Kl, {
2290
+ !ua.value.linePlot && a && be(a.value) || ua.value.linePlot && a && be(a.value) && (_.value !== null && _.value === i || V.value !== null && V.value === i) || ca(e.plots, i) ? (n(), Ae(Ql, {
2275
2291
  key: 0,
2276
2292
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2277
2293
  color: l.value.line.useGradient ? `url(#lineGradient_${u}_${D.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
2278
- plot: { x: v(P)(t.x), y: v(P)(t.y) },
2279
- radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (we.value.line || 6) * 1.5 : (rt(e.plots, i), we.value.line || 6),
2294
+ plot: { x: v(P)(a.x), y: v(P)(a.y) },
2295
+ radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Se.value.line || 6) * 1.5 : (ca(e.plots, i), Se.value.line || 6),
2280
2296
  stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2281
2297
  strokeWidth: l.value.line.dot.strokeWidth,
2282
2298
  transition: v(ie) || !l.value.line.showTransition || _.value !== null && _.value === i || V.value !== null && V.value === i ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out`
2283
2299
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
2284
- t.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2300
+ a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
2285
2301
  key: 1,
2286
2302
  style: { overflow: "visible" },
2287
2303
  height: "12",
2288
2304
  width: l.value.chart.comments.width,
2289
- x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2290
- y: t.y + l.value.chart.comments.offsetY + 6
2305
+ x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2306
+ y: a.y + l.value.chart.comments.offsetY + 6
2291
2307
  }, [
2292
- p("div", Ou, [
2293
- W(a.$slots, "plot-comment", {
2294
- plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
2308
+ p("div", Pu, [
2309
+ W(t.$slots, "plot-comment", {
2310
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
2295
2311
  }, void 0, !0)
2296
2312
  ])
2297
- ], 8, Iu)) : h("", !0)
2313
+ ], 8, Vu)) : h("", !0)
2298
2314
  ], 64))), 128))
2299
2315
  ], 6))), 128)),
2300
- (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g", Nu, [
2316
+ (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g", Fu, [
2301
2317
  (n(!0), r(d, null, w(Me.value, (e, u) => (n(), r(d, {
2302
2318
  key: `xLabel_bar_${e.id}`
2303
2319
  }, [
2304
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2320
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2305
2321
  key: `xLabel_bar_${u}_${i}`
2306
2322
  }, [
2307
- t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i) && l.value.bar.labels.show ? (n(), r("text", {
2323
+ a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i) && l.value.bar.labels.show ? (n(), r("text", {
2308
2324
  key: 0,
2309
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + q.value.line / 2 : Hl(t) + He() / 2 - El.value / 2,
2310
- y: v(P)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2325
+ x: f.value.useIndividualScale && f.value.isStacked ? a.x + q.value.line / 2 : Hl(a) + He() / 2 - Yl.value / 2,
2326
+ y: v(P)(a.y) + (a.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2311
2327
  "text-anchor": "middle",
2312
2328
  "font-size": y.value.plotLabels,
2313
2329
  fill: l.value.bar.labels.color,
2314
2330
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2315
- }, ae(me(t.value) ? v(se)(
2331
+ }, te(be(a.value) ? v(se)(
2316
2332
  l.value.bar.labels.formatter,
2317
- t.value,
2333
+ a.value,
2318
2334
  v(Ve)({
2319
2335
  p: e.prefix || l.value.chart.labels.prefix,
2320
- v: t.value,
2336
+ v: a.value,
2321
2337
  s: e.suffix || l.value.chart.labels.suffix,
2322
2338
  r: l.value.bar.labels.rounding
2323
2339
  }),
2324
2340
  {
2325
- datapoint: t,
2341
+ datapoint: a,
2326
2342
  serie: e
2327
2343
  }
2328
- ) : ""), 13, Vu)) : h("", !0),
2329
- t && l.value.bar.serieName.show ? (n(), r("text", {
2344
+ ) : ""), 13, Ru)) : h("", !0),
2345
+ a && l.value.bar.serieName.show ? (n(), r("text", {
2330
2346
  key: 1,
2331
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + q.value.line / 2 : t.x + He() * 1.1,
2332
- y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2347
+ x: f.value.useIndividualScale && f.value.isStacked ? a.x + q.value.line / 2 : a.x + He() * 1.1,
2348
+ y: a.y + (a.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2333
2349
  "text-anchor": "middle",
2334
2350
  "font-size": y.value.plotLabels,
2335
2351
  fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2336
2352
  "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2337
2353
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2338
- }, ae(l.value.bar.serieName.useAbbreviation ? v(as)({
2354
+ }, te(l.value.bar.serieName.useAbbreviation ? v(ss)({
2339
2355
  source: e.name,
2340
2356
  length: l.value.bar.serieName.abbreviationSize
2341
- }) : e.name), 13, Pu)) : h("", !0)
2357
+ }) : e.name), 13, Bu)) : h("", !0)
2342
2358
  ], 64))), 128))
2343
2359
  ], 64))), 128))
2344
2360
  ])) : h("", !0),
2345
- l.value.plot.labels.show && f.value.dataLabels.show ? (n(), r("g", Fu, [
2346
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
2361
+ l.value.plot.labels.show && f.value.dataLabels.show ? (n(), r("g", Hu, [
2362
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
2347
2363
  key: `xLabel_plot_${e.id}`
2348
2364
  }, [
2349
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2365
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2350
2366
  key: `xLabel_plot_${u}_${i}`
2351
2367
  }, [
2352
- t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
2368
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
2353
2369
  key: 0,
2354
- x: t.x,
2355
- y: t.y + l.value.plot.labels.offsetY,
2370
+ x: a.x,
2371
+ y: a.y + l.value.plot.labels.offsetY,
2356
2372
  "text-anchor": "middle",
2357
2373
  "font-size": y.value.plotLabels,
2358
2374
  fill: l.value.plot.labels.color,
2359
2375
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2360
- }, ae(me(t.value) ? v(se)(
2376
+ }, te(be(a.value) ? v(se)(
2361
2377
  l.value.plot.labels.formatter,
2362
- t.value,
2378
+ a.value,
2363
2379
  v(Ve)({
2364
2380
  p: e.prefix || l.value.chart.labels.prefix,
2365
- v: t.value,
2381
+ v: a.value,
2366
2382
  s: e.suffix || l.value.chart.labels.suffix,
2367
2383
  r: l.value.plot.labels.rounding
2368
2384
  }),
2369
2385
  {
2370
- datapoint: t,
2386
+ datapoint: a,
2371
2387
  serie: e
2372
2388
  }
2373
- ) : ""), 13, Ru)) : h("", !0)
2389
+ ) : ""), 13, Du)) : h("", !0)
2374
2390
  ], 64))), 128))
2375
2391
  ], 64))), 128))
2376
- ])) : (n(), r("g", Bu, [
2377
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
2392
+ ])) : (n(), r("g", Eu, [
2393
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
2378
2394
  key: `xLabel_plot_${e.id}`
2379
2395
  }, [
2380
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2396
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2381
2397
  key: `xLabel_plot_${u}_${i}`
2382
2398
  }, [
2383
2399
  l.value.plot.tag.followValue ? (n(), r(d, { key: 1 }, [
@@ -2386,18 +2402,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2386
2402
  class: "vue-ui-xy-tag-plot",
2387
2403
  x1: c.value.left,
2388
2404
  x2: c.value.right,
2389
- y1: t.y,
2390
- y2: t.y,
2405
+ y1: a.y,
2406
+ y2: a.y,
2391
2407
  "stroke-width": 1,
2392
2408
  "stroke-linecap": "round",
2393
2409
  "stroke-dasharray": "2",
2394
2410
  stroke: e.color
2395
- }, null, 8, Wu)) : h("", !0)
2411
+ }, null, 8, Uu)) : h("", !0)
2396
2412
  ], 64)) : (n(), r(d, { key: 0 }, [
2397
- t && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
2413
+ a && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
2398
2414
  key: 0,
2399
- x: t.x,
2400
- y: t.y - 20,
2415
+ x: a.x,
2416
+ y: a.y - 20,
2401
2417
  height: 24,
2402
2418
  width: "150",
2403
2419
  style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2406,20 +2422,20 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2406
2422
  style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2407
2423
  innerHTML: v(se)(
2408
2424
  l.value.plot.tag.formatter,
2409
- t.value,
2425
+ a.value,
2410
2426
  e.name,
2411
2427
  {
2412
- datapoint: t,
2428
+ datapoint: a,
2413
2429
  seriesIndex: i,
2414
2430
  serieName: e.name
2415
2431
  }
2416
2432
  )
2417
- }, null, 12, Du)
2418
- ], 12, Hu)) : h("", !0),
2419
- t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
2433
+ }, null, 12, Wu)
2434
+ ], 12, Yu)) : h("", !0),
2435
+ a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
2420
2436
  key: 1,
2421
- x: t.x - e.name.length * (y.value.plotLabels / 2),
2422
- y: t.y - 20,
2437
+ x: a.x - e.name.length * (y.value.plotLabels / 2),
2438
+ y: a.y - 20,
2423
2439
  height: 24,
2424
2440
  width: "150",
2425
2441
  style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2428,56 +2444,56 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2428
2444
  style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2429
2445
  innerHTML: v(se)(
2430
2446
  l.value.plot.tag.formatter,
2431
- t.value,
2447
+ a.value,
2432
2448
  e.name,
2433
2449
  {
2434
- datapoint: t,
2450
+ datapoint: a,
2435
2451
  seriesIndex: i,
2436
2452
  serieName: e.name
2437
2453
  }
2438
2454
  )
2439
- }, null, 12, Yu)
2440
- ], 12, Eu)) : h("", !0)
2455
+ }, null, 12, Gu)
2456
+ ], 12, Xu)) : h("", !0)
2441
2457
  ], 64))
2442
2458
  ], 64))), 128))
2443
2459
  ], 64))), 128))
2444
2460
  ])),
2445
- l.value.line.labels.show && f.value.dataLabels.show ? (n(), r("g", Xu, [
2446
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
2461
+ l.value.line.labels.show && f.value.dataLabels.show ? (n(), r("g", qu, [
2462
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
2447
2463
  key: `xLabel_line_${e.id}`
2448
2464
  }, [
2449
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2465
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2450
2466
  key: `xLabel_line_${u}_${i}`
2451
2467
  }, [
2452
- t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
2468
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
2453
2469
  key: 0,
2454
- x: t.x,
2455
- y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2470
+ x: a.x,
2471
+ y: a.y + (a.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2456
2472
  "text-anchor": "middle",
2457
2473
  "font-size": y.value.plotLabels,
2458
2474
  fill: l.value.line.labels.color,
2459
2475
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2460
- }, ae(me(t.value) ? v(se)(
2476
+ }, te(be(a.value) ? v(se)(
2461
2477
  l.value.line.labels.formatter,
2462
- t.value,
2478
+ a.value,
2463
2479
  v(Ve)({
2464
2480
  p: e.prefix || l.value.chart.labels.prefix,
2465
- v: t.value,
2481
+ v: a.value,
2466
2482
  s: e.suffix || l.value.chart.labels.suffix,
2467
2483
  r: l.value.line.labels.rounding
2468
2484
  }),
2469
2485
  {
2470
- datapoint: t,
2486
+ datapoint: a,
2471
2487
  serie: e
2472
2488
  }
2473
- ) : ""), 13, Gu)) : h("", !0)
2489
+ ) : ""), 13, Zu)) : h("", !0)
2474
2490
  ], 64))), 128))
2475
2491
  ], 64))), 128))
2476
- ])) : (n(), r("g", Uu, [
2477
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
2492
+ ])) : (n(), r("g", Ju, [
2493
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
2478
2494
  key: `xLabel_line_${e.id}`
2479
2495
  }, [
2480
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2496
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2481
2497
  key: `xLabel_line_${u}_${i}`
2482
2498
  }, [
2483
2499
  l.value.line.tag.followValue ? (n(), r(d, { key: 1 }, [
@@ -2486,18 +2502,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2486
2502
  class: "vue-ui-xy-tag-line",
2487
2503
  x1: c.value.left,
2488
2504
  x2: c.value.right,
2489
- y1: t.y,
2490
- y2: t.y,
2505
+ y1: a.y,
2506
+ y2: a.y,
2491
2507
  "stroke-width": 1,
2492
2508
  "stroke-linecap": "round",
2493
2509
  "stroke-dasharray": "2",
2494
2510
  stroke: e.color
2495
- }, null, 8, Qu)) : h("", !0)
2511
+ }, null, 8, li)) : h("", !0)
2496
2512
  ], 64)) : (n(), r(d, { key: 0 }, [
2497
- t && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
2513
+ a && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
2498
2514
  key: 0,
2499
- x: t.x,
2500
- y: t.y - 20,
2515
+ x: a.x,
2516
+ y: a.y - 20,
2501
2517
  height: 24,
2502
2518
  width: "150",
2503
2519
  style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2506,20 +2522,20 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2506
2522
  style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2507
2523
  innerHTML: v(se)(
2508
2524
  l.value.line.tag.formatter,
2509
- t.value,
2525
+ a.value,
2510
2526
  e.name,
2511
2527
  {
2512
- datapoint: t,
2528
+ datapoint: a,
2513
2529
  seriesIndex: i,
2514
2530
  serieName: e.name
2515
2531
  }
2516
2532
  )
2517
- }, null, 12, Zu)
2518
- ], 12, qu)) : h("", !0),
2519
- t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
2533
+ }, null, 12, Qu)
2534
+ ], 12, Ku)) : h("", !0),
2535
+ a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
2520
2536
  key: 1,
2521
- x: t.x,
2522
- y: t.y - 20,
2537
+ x: a.x,
2538
+ y: a.y - 20,
2523
2539
  height: 24,
2524
2540
  width: "150",
2525
2541
  style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2528,108 +2544,108 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2528
2544
  style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2529
2545
  innerHTML: v(se)(
2530
2546
  l.value.line.tag.formatter,
2531
- t.value,
2547
+ a.value,
2532
2548
  e.name,
2533
2549
  {
2534
- datapoint: t,
2550
+ datapoint: a,
2535
2551
  seriesIndex: i,
2536
2552
  serieName: e.name
2537
2553
  }
2538
2554
  )
2539
- }, null, 12, Ku)
2540
- ], 12, Ju)) : h("", !0)
2555
+ }, null, 12, ei)
2556
+ ], 12, ju)) : h("", !0)
2541
2557
  ], 64))
2542
2558
  ], 64))), 128))
2543
2559
  ], 64))), 128))
2544
2560
  ])),
2545
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
2561
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
2546
2562
  key: `xLabel_line_${e.id}`
2547
2563
  }, [
2548
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2564
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2549
2565
  key: `xLabel_line_${u}_${i}`
2550
2566
  }, [
2551
- t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
2567
+ a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
2552
2568
  key: 0,
2553
- x: t.x - y.value.plotLabels,
2554
- y: t.y,
2569
+ x: a.x - y.value.plotLabels,
2570
+ y: a.y,
2555
2571
  "font-size": y.value.plotLabels,
2556
2572
  "text-anchor": "end",
2557
2573
  fill: e.color,
2558
- innerHTML: v(Zl)({
2574
+ innerHTML: v(Jl)({
2559
2575
  content: e.name,
2560
2576
  fontSize: y.value.plotLabels,
2561
2577
  fill: e.color,
2562
- x: t.x - y.value.plotLabels,
2563
- y: t.y,
2578
+ x: a.x - y.value.plotLabels,
2579
+ y: a.y,
2564
2580
  maxWords: 2
2565
2581
  }),
2566
2582
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2567
- }, null, 12, ju)) : h("", !0),
2568
- t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
2583
+ }, null, 12, ti)) : h("", !0),
2584
+ a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
2569
2585
  key: 1,
2570
- x: t.x + y.value.plotLabels,
2571
- y: t.y,
2586
+ x: a.x + y.value.plotLabels,
2587
+ y: a.y,
2572
2588
  "font-size": y.value.plotLabels,
2573
2589
  "text-anchor": "start",
2574
2590
  fill: e.color,
2575
- innerHTML: v(Zl)({
2591
+ innerHTML: v(Jl)({
2576
2592
  content: e.name,
2577
2593
  fontSize: y.value.plotLabels,
2578
2594
  fill: e.color,
2579
- x: t.x + y.value.plotLabels,
2580
- y: t.y,
2595
+ x: a.x + y.value.plotLabels,
2596
+ y: a.y,
2581
2597
  maxWords: 2
2582
2598
  }),
2583
2599
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2584
- }, null, 12, ei)) : h("", !0)
2600
+ }, null, 12, ai)) : h("", !0)
2585
2601
  ], 64))), 128))
2586
2602
  ], 64))), 128)),
2587
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
2603
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
2588
2604
  key: `xLabel_plot_${e.id}`
2589
2605
  }, [
2590
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2606
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2591
2607
  key: `xLabel_plot_${u}_${i}`
2592
2608
  }, [
2593
- t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
2609
+ a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
2594
2610
  key: 0,
2595
- x: t.x - y.value.plotLabels,
2596
- y: t.y,
2611
+ x: a.x - y.value.plotLabels,
2612
+ y: a.y,
2597
2613
  "font-size": y.value.plotLabels,
2598
2614
  "text-anchor": "end",
2599
2615
  fill: e.color,
2600
- innerHTML: v(Zl)({
2616
+ innerHTML: v(Jl)({
2601
2617
  content: e.name,
2602
2618
  fontSize: y.value.plotLabels,
2603
2619
  fill: e.color,
2604
- x: t.x - y.value.plotLabels,
2605
- y: t.y,
2620
+ x: a.x - y.value.plotLabels,
2621
+ y: a.y,
2606
2622
  maxWords: 2
2607
2623
  }),
2608
2624
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2609
- }, null, 12, li)) : h("", !0),
2610
- t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
2625
+ }, null, 12, oi)) : h("", !0),
2626
+ a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
2611
2627
  key: 1,
2612
- x: t.x + y.value.plotLabels,
2613
- y: t.y,
2628
+ x: a.x + y.value.plotLabels,
2629
+ y: a.y,
2614
2630
  "font-size": y.value.plotLabels,
2615
2631
  "text-anchor": "start",
2616
2632
  fill: e.color,
2617
- innerHTML: v(Zl)({
2633
+ innerHTML: v(Jl)({
2618
2634
  content: e.name,
2619
2635
  fontSize: y.value.plotLabels,
2620
2636
  fill: e.color,
2621
- x: t.x + y.value.plotLabels,
2622
- y: t.y,
2637
+ x: a.x + y.value.plotLabels,
2638
+ y: a.y,
2623
2639
  maxWords: 2
2624
2640
  }),
2625
2641
  style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2626
- }, null, 12, ai)) : h("", !0)
2642
+ }, null, 12, si)) : h("", !0)
2627
2643
  ], 64))), 128))
2628
2644
  ], 64))), 128)),
2629
- (n(!0), r(d, null, w([...be.value, ...te.value, ...Me.value], (e, u) => (n(), r(d, {
2645
+ (n(!0), r(d, null, w([...xe.value, ...ae.value, ...Me.value], (e, u) => (n(), r(d, {
2630
2646
  key: `progression-${u}`
2631
2647
  }, [
2632
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(_e)(e.plots).trend) ? (n(), r("g", ti, [
2648
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(we)(e.plots).trend) ? (n(), r("g", ui, [
2633
2649
  p("defs", null, [
2634
2650
  p("marker", {
2635
2651
  id: `progression_arrow_${u}`,
@@ -2648,40 +2664,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2648
2664
  stroke: l.value.chart.backgroundColor,
2649
2665
  "stroke-width": "1",
2650
2666
  "stroke-linejoin": "round"
2651
- }, null, 8, si)
2652
- ], 8, oi)
2667
+ }, null, 8, ni)
2668
+ ], 8, ii)
2653
2669
  ]),
2654
2670
  e.plots.length > 1 ? (n(), r("line", {
2655
2671
  key: 0,
2656
- x1: v(_e)(e.plots).x1 + (e.type === "bar" ? He() : 0),
2657
- x2: v(_e)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2658
- y1: v(E)(v(_e)(e.plots).y1),
2659
- y2: v(E)(v(_e)(e.plots).y2),
2672
+ x1: v(we)(e.plots).x1 + (e.type === "bar" ? He() : 0),
2673
+ x2: v(we)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2674
+ y1: v(E)(v(we)(e.plots).y1),
2675
+ y2: v(E)(v(we)(e.plots).y2),
2660
2676
  "stroke-width": 1,
2661
2677
  stroke: l.value.chart.backgroundColor,
2662
2678
  "stroke-dasharray": 2,
2663
2679
  "stroke-linecap": "round",
2664
2680
  "stroke-linejoin": "round",
2665
2681
  "marker-end": `url(#progression_arrow_${u})`
2666
- }, null, 8, ui)) : h("", !0),
2682
+ }, null, 8, ri)) : h("", !0),
2667
2683
  e.plots.length > 1 ? (n(), r("line", {
2668
2684
  key: 1,
2669
- x1: v(_e)(e.plots).x1 + (e.type === "bar" ? He() : 0),
2670
- x2: v(_e)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2671
- y1: v(E)(v(_e)(e.plots).y1),
2672
- y2: v(E)(v(_e)(e.plots).y2),
2685
+ x1: v(we)(e.plots).x1 + (e.type === "bar" ? He() : 0),
2686
+ x2: v(we)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2687
+ y1: v(E)(v(we)(e.plots).y1),
2688
+ y2: v(E)(v(we)(e.plots).y2),
2673
2689
  "stroke-width": 1,
2674
2690
  stroke: e.color,
2675
2691
  "stroke-dasharray": 2,
2676
2692
  "stroke-linecap": "round",
2677
2693
  "stroke-linejoin": "round",
2678
2694
  "marker-end": `url(#progression_arrow_${u})`
2679
- }, null, 8, ii)) : h("", !0),
2695
+ }, null, 8, ci)) : h("", !0),
2680
2696
  e.plots.length > 1 ? (n(), r("text", {
2681
2697
  key: 2,
2682
2698
  "text-anchor": "middle",
2683
- x: v(_e)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2684
- y: v(_e)(e.plots).y2 - 12,
2699
+ x: v(we)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2700
+ y: v(we)(e.plots).y2 - 12,
2685
2701
  "font-size": y.value.plotLabels,
2686
2702
  fill: e.color,
2687
2703
  stroke: l.value.chart.backgroundColor,
@@ -2689,11 +2705,11 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2689
2705
  "stroke-linecap": "round",
2690
2706
  "stroke-linejoin": "round",
2691
2707
  "paint-order": "stroke fill"
2692
- }, ae(v(Ve)({
2693
- v: v(_e)(e.plots).trend * 100,
2708
+ }, te(v(Ve)({
2709
+ v: v(we)(e.plots).trend * 100,
2694
2710
  s: "%",
2695
2711
  r: 2
2696
- })), 9, ni)) : h("", !0)
2712
+ })), 9, vi)) : h("", !0)
2697
2713
  ])) : h("", !0)
2698
2714
  ], 64))), 128)),
2699
2715
  f.value.useIndividualScale && !f.value.isStacked ? (n(), r(d, { key: 13 }, [
@@ -2709,13 +2725,13 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2709
2725
  offset: "0%",
2710
2726
  "stop-color": l.value.chart.backgroundColor,
2711
2727
  "stop-opacity": "0"
2712
- }, null, 8, ci),
2728
+ }, null, 8, hi),
2713
2729
  p("stop", {
2714
2730
  offset: "100%",
2715
2731
  "stop-color": e.color,
2716
2732
  "stop-opacity": "0.2"
2717
- }, null, 8, vi)
2718
- ], 8, ri))), 256))
2733
+ }, null, 8, fi)
2734
+ ], 8, di))), 256))
2719
2735
  ]),
2720
2736
  (n(!0), r(d, null, w(Sl.value, (e, u) => (n(), r("rect", {
2721
2737
  x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + G.value - c.value.individualOffsetX,
@@ -2723,38 +2739,38 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2723
2739
  width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
2724
2740
  height: c.value.height < 0 ? 10 : c.value.height,
2725
2741
  fill: I.value === e.groupId ? `url(#individual_scale_gradient_${D.value}_${u})` : "transparent",
2726
- onMouseenter: (t) => I.value = e.groupId,
2727
- onMouseleave: s[0] || (s[0] = (t) => I.value = null)
2728
- }, null, 40, di))), 256))
2742
+ onMouseenter: (a) => I.value = e.groupId,
2743
+ onMouseleave: s[0] || (s[0] = (a) => I.value = null)
2744
+ }, null, 40, gi))), 256))
2729
2745
  ], 64)) : h("", !0),
2730
2746
  p("g", null, [
2731
2747
  l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (n(), r("text", {
2732
2748
  key: 0,
2733
2749
  ref_key: "yAxisLabel",
2734
- ref: la,
2750
+ ref: tt,
2735
2751
  "font-size": y.value.yAxis,
2736
2752
  fill: l.value.chart.grid.labels.color,
2737
2753
  transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
2738
2754
  "text-anchor": "middle",
2739
2755
  style: { transition: "none" }
2740
- }, ae(l.value.chart.grid.labels.axis.yLabel), 9, hi)) : h("", !0),
2756
+ }, te(l.value.chart.grid.labels.axis.yLabel), 9, mi)) : h("", !0),
2741
2757
  l.value.chart.grid.labels.axis.xLabel ? (n(), r("text", {
2742
2758
  key: 1,
2743
2759
  ref_key: "xAxisLabel",
2744
- ref: ea,
2760
+ ref: lt,
2745
2761
  "text-anchor": "middle",
2746
- x: j.value / 2,
2762
+ x: ee.value / 2,
2747
2763
  y: ve.value - 3,
2748
2764
  "font-size": y.value.yAxis,
2749
2765
  fill: l.value.chart.grid.labels.color
2750
- }, ae(l.value.chart.grid.labels.axis.xLabel), 9, fi)) : h("", !0)
2766
+ }, te(l.value.chart.grid.labels.axis.xLabel), 9, bi)) : h("", !0)
2751
2767
  ]),
2752
2768
  l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", {
2753
2769
  key: 14,
2754
2770
  ref_key: "timeLabelsEls",
2755
2771
  ref: ul
2756
2772
  }, [
2757
- a.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(ga.value, (e, u) => W(a.$slots, "time-label", al({
2773
+ t.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(mt.value, (e, u) => W(t.$slots, "time-label", tl({
2758
2774
  key: `time_label_${e.id}`,
2759
2775
  ref_for: !0
2760
2776
  }, {
@@ -2767,7 +2783,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2767
2783
  content: e.text,
2768
2784
  textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2769
2785
  show: e && e.text
2770
- }), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(ga.value, (e, u) => (n(), r("g", {
2786
+ }), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(mt.value, (e, u) => (n(), r("g", {
2771
2787
  key: `time_label_${u}`
2772
2788
  }, [
2773
2789
  e && e.text ? (n(), r(d, { key: 0 }, [
@@ -2780,17 +2796,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2780
2796
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2781
2797
  transform: `translate(${c.value.left + c.value.width / L.value * u + c.value.width / L.value / 2}, ${c.value.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2782
2798
  style: $({
2783
- cursor: Ea() ? "pointer" : "default"
2799
+ cursor: Yt() ? "pointer" : "default"
2784
2800
  }),
2785
- innerHTML: v(ts)({
2801
+ innerHTML: v(us)({
2786
2802
  content: String(e.text),
2787
2803
  fontSize: y.value.xAxis,
2788
2804
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2789
2805
  x: 0,
2790
2806
  y: 0
2791
2807
  }),
2792
- onClick: () => Ga(e, u)
2793
- }, null, 12, mi)) : (n(), r("text", {
2808
+ onClick: () => Ut(e, u)
2809
+ }, null, 12, pi)) : (n(), r("text", {
2794
2810
  key: 0,
2795
2811
  class: "vue-data-ui-time-label",
2796
2812
  "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
@@ -2798,15 +2814,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2798
2814
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2799
2815
  transform: `translate(${c.value.left + c.value.width / L.value * u + c.value.width / L.value / 2}, ${c.value.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2800
2816
  style: $({
2801
- cursor: Ea() ? "pointer" : "default"
2817
+ cursor: Yt() ? "pointer" : "default"
2802
2818
  }),
2803
- onClick: () => Ga(e, u)
2804
- }, ae(e.text || ""), 13, gi))
2819
+ onClick: () => Ut(e, u)
2820
+ }, te(e.text || ""), 13, xi))
2805
2821
  ], 64)) : h("", !0)
2806
2822
  ]))), 128))
2807
2823
  ], 512)) : h("", !0),
2808
- nt.value.length && !f.value.isStacked ? (n(), r("g", bi, [
2809
- (n(!0), r(d, null, w(nt.value, (e) => (n(), r("g", {
2824
+ ra.value.length && !f.value.isStacked ? (n(), r("g", yi, [
2825
+ (n(!0), r(d, null, w(ra.value, (e) => (n(), r("g", {
2810
2826
  key: e.uid
2811
2827
  }, [
2812
2828
  e.yTop && e.show && isFinite(e.yTop) ? (n(), r("line", {
@@ -2820,7 +2836,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2820
2836
  "stroke-dasharray": e.config.line.strokeDasharray,
2821
2837
  "stroke-linecap": "round",
2822
2838
  style: { animation: "none !important" }
2823
- }, null, 8, xi)) : h("", !0),
2839
+ }, null, 8, ki)) : h("", !0),
2824
2840
  e.yBottom && e.show && isFinite(e.yBottom) ? (n(), r("line", {
2825
2841
  key: 1,
2826
2842
  x1: e.x1,
@@ -2832,7 +2848,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2832
2848
  "stroke-dasharray": e.config.line.strokeDasharray,
2833
2849
  "stroke-linecap": "round",
2834
2850
  style: { animation: "none !important" }
2835
- }, null, 8, pi)) : h("", !0),
2851
+ }, null, 8, _i)) : h("", !0),
2836
2852
  e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(), r("rect", {
2837
2853
  key: 2,
2838
2854
  y: Math.min(e.yTop, e.yBottom),
@@ -2841,8 +2857,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2841
2857
  height: v(P)(e.areaHeight, 0),
2842
2858
  fill: v(Ce)(e.config.area.fill, e.config.area.opacity),
2843
2859
  style: { animation: "none !important" }
2844
- }, null, 8, yi)) : h("", !0),
2845
- e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect", al({
2860
+ }, null, 8, wi)) : h("", !0),
2861
+ e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect", tl({
2846
2862
  key: 3,
2847
2863
  class: "vue-ui-xy-annotation-label-box"
2848
2864
  }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
@@ -2855,12 +2871,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2855
2871
  "font-size": e.config.label.fontSize,
2856
2872
  fill: e.config.label.color,
2857
2873
  "text-anchor": e.config.label.textAnchor
2858
- }, ae(e.config.label.text), 9, ki)) : h("", !0)
2874
+ }, te(e.config.label.text), 9, Si)) : h("", !0)
2859
2875
  ]))), 128))
2860
2876
  ])) : h("", !0),
2861
- l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", _i, [
2877
+ l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", $i, [
2862
2878
  (n(), r("foreignObject", {
2863
- x: Oo(),
2879
+ x: Po(),
2864
2880
  y: c.value.bottom,
2865
2881
  width: "200",
2866
2882
  height: "40",
@@ -2868,40 +2884,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2868
2884
  }, [
2869
2885
  p("div", {
2870
2886
  ref_key: "timeTagEl",
2871
- ref: kt,
2887
+ ref: _a,
2872
2888
  class: "vue-ui-xy-time-tag",
2873
2889
  style: $(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`),
2874
- innerHTML: No.value
2875
- }, null, 12, Si)
2876
- ], 8, wi)),
2890
+ innerHTML: Fo.value
2891
+ }, null, 12, Mi)
2892
+ ], 8, Li)),
2877
2893
  p("circle", {
2878
2894
  cx: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
2879
2895
  cy: c.value.bottom,
2880
2896
  r: l.value.chart.timeTag.circleMarker.radius,
2881
2897
  fill: l.value.chart.timeTag.circleMarker.color
2882
- }, null, 8, $i)
2898
+ }, null, 8, Ai)
2883
2899
  ])) : h("", !0)
2884
2900
  ])) : h("", !0),
2885
- Pa.value ? (n(), r("rect", al({ key: 2 }, oo.value, {
2901
+ Ft.value ? (n(), r("rect", tl({ key: 2 }, so.value, {
2886
2902
  "data-start": m.value.start,
2887
2903
  "data-end": m.value.end
2888
- }), null, 16, Li)) : h("", !0),
2889
- W(a.$slots, "svg", {
2904
+ }), null, 16, Ci)) : h("", !0),
2905
+ W(t.$slots, "svg", {
2890
2906
  svg: {
2891
- ...lo.value,
2892
- data: [...te.value, ...Me.value, ...be.value],
2907
+ ...to.value,
2908
+ data: [...ae.value, ...Me.value, ...xe.value],
2893
2909
  drawingArea: c.value
2894
2910
  }
2895
2911
  }, void 0, !0)
2896
2912
  ], 512)
2897
- ], 46, Ss)),
2898
- a.$slots.watermark ? (n(), r("div", Mi, [
2899
- W(a.$slots, "watermark", We(Xe({ isPrinting: v(va) || v(Ra) })), void 0, !0)
2913
+ ], 46, Ms)),
2914
+ t.$slots.watermark ? (n(), r("div", Ti, [
2915
+ W(t.$slots, "watermark", We(Xe({ isPrinting: v(dt) || v(Bt) })), void 0, !0)
2900
2916
  ])) : h("", !0),
2901
- (n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
2917
+ (n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
2902
2918
  key: `tag_line_${e.id}`
2903
2919
  }, [
2904
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
2920
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
2905
2921
  key: `tag_line_${u}_${i}`
2906
2922
  }, [
2907
2923
  [V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (n(), r("div", {
@@ -2915,14 +2931,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2915
2931
  top: v(Ue)({
2916
2932
  svgElement: ue.value,
2917
2933
  x: c.value.right + l.value.line.tag.fontSize / 1.5,
2918
- y: t.y,
2934
+ y: a.y,
2919
2935
  element: Pe.value[`${u}_${i}_right_line`],
2920
2936
  position: "right"
2921
2937
  }).top + "px",
2922
2938
  left: v(Ue)({
2923
2939
  svgElement: ue.value,
2924
2940
  x: c.value.right + l.value.line.tag.fontSize / 1.5,
2925
- y: t.y,
2941
+ y: a.y,
2926
2942
  element: Pe.value[`${u}_${i}_right_line`],
2927
2943
  position: "right"
2928
2944
  }).left + "px",
@@ -2935,26 +2951,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2935
2951
  opacity: 1
2936
2952
  })
2937
2953
  }, [
2938
- (n(), r("svg", Ai, [
2954
+ (n(), r("svg", zi, [
2939
2955
  p("path", {
2940
2956
  d: "M 0,10 10,0 10,20 Z",
2941
2957
  fill: e.color,
2942
2958
  stroke: "none"
2943
- }, null, 8, Ci)
2959
+ }, null, 8, Ii)
2944
2960
  ])),
2945
2961
  p("div", {
2946
2962
  class: "vue-ui-xy-tag-content",
2947
2963
  innerHTML: v(se)(
2948
2964
  l.value.line.tag.formatter,
2949
- t.value,
2965
+ a.value,
2950
2966
  e.name,
2951
2967
  {
2952
- datapoint: t,
2968
+ datapoint: a,
2953
2969
  seriesIndex: i,
2954
2970
  serieName: e.name
2955
2971
  }
2956
2972
  )
2957
- }, null, 8, Ti)
2973
+ }, null, 8, Oi)
2958
2974
  ], 4)) : h("", !0),
2959
2975
  [V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (n(), r("div", {
2960
2976
  key: 1,
@@ -2967,14 +2983,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2967
2983
  top: v(Ue)({
2968
2984
  svgElement: ue.value,
2969
2985
  x: c.value.left - l.value.line.tag.fontSize / 1.5,
2970
- y: t.y,
2986
+ y: a.y,
2971
2987
  element: Pe.value[`${u}_${i}_left_line`],
2972
2988
  position: "left"
2973
2989
  }).top + "px",
2974
2990
  left: v(Ue)({
2975
2991
  svgElement: ue.value,
2976
2992
  x: c.value.left - l.value.line.tag.fontSize / 1.5,
2977
- y: t.y,
2993
+ y: a.y,
2978
2994
  element: Pe.value[`${u}_${i}_left_line`],
2979
2995
  position: "left"
2980
2996
  }).left + "px",
@@ -2987,33 +3003,33 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
2987
3003
  opacity: 1
2988
3004
  })
2989
3005
  }, [
2990
- (n(), r("svg", zi, [
3006
+ (n(), r("svg", Ni, [
2991
3007
  p("path", {
2992
3008
  d: "M 0,0 10,10 0,20 Z",
2993
3009
  fill: e.color,
2994
3010
  stroke: "none"
2995
- }, null, 8, Ii)
3011
+ }, null, 8, Vi)
2996
3012
  ])),
2997
3013
  p("div", {
2998
3014
  class: "vue-ui-xy-tag-content",
2999
3015
  innerHTML: v(se)(
3000
3016
  l.value.line.tag.formatter,
3001
- t.value,
3017
+ a.value,
3002
3018
  e.name,
3003
3019
  {
3004
- datapoint: t,
3020
+ datapoint: a,
3005
3021
  seriesIndex: i,
3006
3022
  serieName: e.name
3007
3023
  }
3008
3024
  )
3009
- }, null, 8, Oi)
3025
+ }, null, 8, Pi)
3010
3026
  ], 4)) : h("", !0)
3011
3027
  ], 64))), 128))
3012
3028
  ], 64))), 128)),
3013
- (n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
3029
+ (n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
3014
3030
  key: `tag_plot_${e.id}`
3015
3031
  }, [
3016
- (n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
3032
+ (n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
3017
3033
  key: `tag_plot_${u}_${i}`
3018
3034
  }, [
3019
3035
  [V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (n(), r("div", {
@@ -3027,14 +3043,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3027
3043
  top: v(Ue)({
3028
3044
  svgElement: ue.value,
3029
3045
  x: c.value.right + l.value.plot.tag.fontSize / 1.5,
3030
- y: t.y,
3046
+ y: a.y,
3031
3047
  element: Pe.value[`${u}_${i}_right_plot`],
3032
3048
  position: "right"
3033
3049
  }).top + "px",
3034
3050
  left: v(Ue)({
3035
3051
  svgElement: ue.value,
3036
3052
  x: c.value.right + l.value.plot.tag.fontSize / 1.5,
3037
- y: t.y,
3053
+ y: a.y,
3038
3054
  element: Pe.value[`${u}_${i}_right_plot`],
3039
3055
  position: "right"
3040
3056
  }).left + "px",
@@ -3047,26 +3063,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3047
3063
  opacity: 1
3048
3064
  })
3049
3065
  }, [
3050
- (n(), r("svg", Ni, [
3066
+ (n(), r("svg", Fi, [
3051
3067
  p("path", {
3052
3068
  d: "M 0,10 10,0 10,20 Z",
3053
3069
  fill: e.color,
3054
3070
  stroke: "none"
3055
- }, null, 8, Vi)
3071
+ }, null, 8, Ri)
3056
3072
  ])),
3057
3073
  p("div", {
3058
3074
  class: "vue-ui-xy-tag-content",
3059
3075
  innerHTML: v(se)(
3060
3076
  l.value.plot.tag.formatter,
3061
- t.value,
3077
+ a.value,
3062
3078
  e.name,
3063
3079
  {
3064
- datapoint: t,
3080
+ datapoint: a,
3065
3081
  seriesIndex: i,
3066
3082
  serieName: e.name
3067
3083
  }
3068
3084
  )
3069
- }, null, 8, Pi)
3085
+ }, null, 8, Bi)
3070
3086
  ], 4)) : h("", !0),
3071
3087
  [V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (n(), r("div", {
3072
3088
  key: 1,
@@ -3079,14 +3095,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3079
3095
  top: v(Ue)({
3080
3096
  svgElement: ue.value,
3081
3097
  x: c.value.left - l.value.plot.tag.fontSize / 1.5,
3082
- y: t.y,
3098
+ y: a.y,
3083
3099
  element: Pe.value[`${u}_${i}_left_plot`],
3084
3100
  position: "left"
3085
3101
  }).top + "px",
3086
3102
  left: v(Ue)({
3087
3103
  svgElement: ue.value,
3088
3104
  x: c.value.left - l.value.plot.tag.fontSize / 1.5,
3089
- y: t.y,
3105
+ y: a.y,
3090
3106
  element: Pe.value[`${u}_${i}_left_plot`],
3091
3107
  position: "left"
3092
3108
  }).left + "px",
@@ -3099,34 +3115,34 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3099
3115
  opacity: 1
3100
3116
  })
3101
3117
  }, [
3102
- (n(), r("svg", Fi, [
3118
+ (n(), r("svg", Hi, [
3103
3119
  p("path", {
3104
3120
  d: "M 0,0 10,10 0,20 Z",
3105
3121
  fill: e.color,
3106
3122
  stroke: "none"
3107
- }, null, 8, Ri)
3123
+ }, null, 8, Di)
3108
3124
  ])),
3109
3125
  p("div", {
3110
3126
  class: "vue-ui-xy-tag-content",
3111
3127
  innerHTML: v(se)(
3112
3128
  l.value.plot.tag.formatter,
3113
- t.value,
3129
+ a.value,
3114
3130
  e.name,
3115
3131
  {
3116
- datapoint: t,
3132
+ datapoint: a,
3117
3133
  seriesIndex: i,
3118
3134
  serieName: e.name
3119
3135
  }
3120
3136
  )
3121
- }, null, 8, Bi)
3137
+ }, null, 8, Ei)
3122
3138
  ], 4)) : h("", !0)
3123
3139
  ], 64))), 128))
3124
3140
  ], 64))), 128)),
3125
- l.value.chart.zoom.show && Ie.value > 6 && ra.value && Za.value ? (n(), Ae(ps, {
3141
+ l.value.chart.zoom.show && Ie.value > 6 && ct.value && Jt.value ? (n(), Ae(_s, {
3126
3142
  key: 5,
3127
3143
  ref_key: "chartSlicer",
3128
3144
  ref: ze,
3129
- allMinimaps: Co.value,
3145
+ allMinimaps: Io.value,
3130
3146
  background: l.value.chart.zoom.color,
3131
3147
  borderColor: l.value.chart.backgroundColor,
3132
3148
  customFormat: l.value.chart.zoom.customFormat,
@@ -3140,12 +3156,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3140
3156
  useResetSlot: l.value.chart.zoom.useResetSlot,
3141
3157
  immediate: !l.value.chart.zoom.preview.enable,
3142
3158
  inputColor: l.value.chart.zoom.color,
3143
- isPreview: Pa.value,
3159
+ isPreview: Ft.value,
3144
3160
  labelLeft: de.value[0] ? de.value[0].text : "",
3145
3161
  labelRight: de.value.at(-1) ? de.value.at(-1).text : "",
3146
3162
  max: Ie.value,
3147
3163
  min: 0,
3148
- minimap: Ao.value,
3164
+ minimap: zo.value,
3149
3165
  minimapCompact: l.value.chart.zoom.minimap.compact,
3150
3166
  minimapFrameColor: l.value.chart.zoom.minimap.frameColor,
3151
3167
  minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
@@ -3155,35 +3171,35 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3155
3171
  minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
3156
3172
  minimapSelectedIndex: _.value,
3157
3173
  minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
3158
- preciseLabels: dt.value.length ? dt.value : fa.value,
3159
- refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Ql.dataset.map((e) => Be(e.series).length)),
3174
+ preciseLabels: ha.value.length ? ha.value : gt.value,
3175
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...jl.dataset.map((e) => Be(e.series).length)),
3160
3176
  refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
3161
3177
  selectColor: l.value.chart.zoom.highlightColor,
3162
3178
  selectedSeries: je.value,
3163
3179
  smoothMinimap: l.value.chart.zoom.minimap.smooth,
3164
3180
  start: m.value.start,
3165
3181
  textColor: l.value.chart.color,
3166
- timeLabels: fa.value,
3182
+ timeLabels: gt.value,
3167
3183
  usePreciseLabels: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.zoom.useDefaultFormat,
3168
3184
  valueEnd: m.value.end,
3169
3185
  valueStart: m.value.start,
3170
3186
  verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
3171
- onFutureEnd: s[1] || (s[1] = (e) => Fa("end", e)),
3172
- onFutureStart: s[2] || (s[2] = (e) => Fa("start", e)),
3173
- onReset: xo,
3174
- onTrapMouse: fo,
3175
- "onUpdate:end": bo,
3176
- "onUpdate:start": mo
3187
+ onFutureEnd: s[1] || (s[1] = (e) => Rt("end", e)),
3188
+ onFutureStart: s[2] || (s[2] = (e) => Rt("start", e)),
3189
+ onReset: po,
3190
+ onTrapMouse: go,
3191
+ "onUpdate:end": xo,
3192
+ "onUpdate:start": bo
3177
3193
  }, {
3178
- "reset-action": Q(({ reset: e }) => [
3179
- W(a.$slots, "reset-action", We(Xe({ reset: e })), void 0, !0)
3194
+ "reset-action": j(({ reset: e }) => [
3195
+ W(t.$slots, "reset-action", We(Xe({ reset: e })), void 0, !0)
3180
3196
  ]),
3181
3197
  _: 3
3182
3198
  }, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "useResetSlot", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) : h("", !0),
3183
3199
  p("div", {
3184
3200
  id: `legend-bottom-${D.value}`
3185
- }, null, 8, Hi),
3186
- Ia.value ? (n(), Ae(Xo, {
3201
+ }, null, 8, Yi),
3202
+ Ot.value ? (n(), Ae(qo, {
3187
3203
  key: 6,
3188
3204
  to: l.value.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
3189
3205
  }, [
@@ -3196,12 +3212,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3196
3212
  fontSize: `var(--legend-font-size, ${l.value.chart.legend.fontSize ?? 14}px)`
3197
3213
  })
3198
3214
  }, [
3199
- (n(!0), r(d, null, w(Le.value, (e, u) => (n(), r("div", {
3215
+ (n(!0), r(d, null, w(me.value, (e, u) => (n(), r("div", {
3200
3216
  key: `div_legend_item_${u}`,
3201
- onClick: (t) => ot(e),
3202
- class: ll({ "vue-ui-xy-legend-item-alone": Le.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ee.value.includes(e.id) })
3217
+ onClick: (a) => El(e),
3218
+ class: ll({ "vue-ui-xy-legend-item-alone": me.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": Z.value.includes(e.id) })
3203
3219
  }, [
3204
- bl.value[e.type] === "line" ? (n(), r("svg", Ei, [
3220
+ bl.value[e.type] === "line" ? (n(), r("svg", Xi, [
3205
3221
  p("rect", {
3206
3222
  x: "0",
3207
3223
  y: "7.5",
@@ -3211,8 +3227,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3211
3227
  height: "3",
3212
3228
  width: "20",
3213
3229
  fill: e.color
3214
- }, null, 8, Yi),
3215
- vl(Kl, {
3230
+ }, null, 8, Gi),
3231
+ vl(Ql, {
3216
3232
  plot: { x: 10, y: 9 },
3217
3233
  radius: 4,
3218
3234
  color: e.color,
@@ -3220,8 +3236,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3220
3236
  stroke: l.value.chart.backgroundColor,
3221
3237
  strokeWidth: 0.5
3222
3238
  }, null, 8, ["color", "shape", "stroke"])
3223
- ])) : bl.value[e.type] === "bar" ? (n(), r("svg", Wi, [
3224
- bl.value[e.type] === "bar" && a.$slots.pattern ? (n(), r("rect", {
3239
+ ])) : bl.value[e.type] === "bar" ? (n(), r("svg", Ui, [
3240
+ bl.value[e.type] === "bar" && t.$slots.pattern ? (n(), r("rect", {
3225
3241
  key: 0,
3226
3242
  x: "4",
3227
3243
  y: "4",
@@ -3230,7 +3246,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3230
3246
  width: "32",
3231
3247
  stroke: "none",
3232
3248
  fill: e.color
3233
- }, null, 8, Xi)) : h("", !0),
3249
+ }, null, 8, qi)) : h("", !0),
3234
3250
  bl.value[e.type] === "bar" ? (n(), r("rect", {
3235
3251
  key: 1,
3236
3252
  x: "4",
@@ -3239,10 +3255,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3239
3255
  height: "32",
3240
3256
  width: "32",
3241
3257
  stroke: "none",
3242
- fill: a.$slots.pattern ? `url(#pattern_${D.value}_${e.slotAbsoluteIndex})` : e.color
3243
- }, null, 8, Gi)) : h("", !0)
3244
- ])) : (n(), r("svg", Ui, [
3245
- vl(Kl, {
3258
+ fill: t.$slots.pattern ? `url(#pattern_${D.value}_${e.slotAbsoluteIndex})` : e.color
3259
+ }, null, 8, Zi)) : h("", !0)
3260
+ ])) : (n(), r("svg", Ji, [
3261
+ vl(Ql, {
3246
3262
  plot: { x: 6, y: 6 },
3247
3263
  radius: 5,
3248
3264
  color: e.color,
@@ -3251,26 +3267,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3251
3267
  ])),
3252
3268
  p("span", {
3253
3269
  style: $(`color:${l.value.chart.legend.color}`)
3254
- }, ae(e.name), 5)
3255
- ], 10, Di))), 128))
3270
+ }, te(e.name), 5)
3271
+ ], 10, Wi))), 128))
3256
3272
  ], 4)) : (n(), r("div", {
3257
3273
  key: 1,
3258
3274
  ref_key: "chartLegend",
3259
3275
  ref: sl
3260
3276
  }, [
3261
- W(a.$slots, "legend", { legend: Le.value }, void 0, !0)
3277
+ W(t.$slots, "legend", { legend: me.value }, void 0, !0)
3262
3278
  ], 512))
3263
3279
  ], 8, ["to"])) : h("", !0),
3264
- a.$slots.source ? (n(), r("div", {
3280
+ t.$slots.source ? (n(), r("div", {
3265
3281
  key: 7,
3266
3282
  ref_key: "source",
3267
3283
  ref: gl,
3268
3284
  dir: "auto"
3269
3285
  }, [
3270
- W(a.$slots, "source", {}, void 0, !0)
3286
+ W(t.$slots, "source", {}, void 0, !0)
3271
3287
  ], 512)) : h("", !0),
3272
- vl(v(Xt), {
3273
- show: f.value.showTooltip && Ma.value,
3288
+ vl(v(Ga), {
3289
+ show: f.value.showTooltip && At.value,
3274
3290
  backgroundColor: l.value.chart.tooltip.backgroundColor,
3275
3291
  color: l.value.chart.tooltip.color,
3276
3292
  fontSize: l.value.chart.tooltip.fontSize,
@@ -3280,8 +3296,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3280
3296
  backgroundOpacity: l.value.chart.tooltip.backgroundOpacity,
3281
3297
  position: l.value.chart.tooltip.position,
3282
3298
  offsetY: l.value.chart.tooltip.offsetY,
3283
- parent: a.$refs.chart,
3284
- content: To.value,
3299
+ parent: t.$refs.chart,
3300
+ content: Oo.value,
3285
3301
  isFullscreen: qe.value,
3286
3302
  isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
3287
3303
  smooth: l.value.chart.tooltip.smooth,
@@ -3289,60 +3305,60 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3289
3305
  smoothForce: l.value.chart.tooltip.smoothForce,
3290
3306
  smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
3291
3307
  }, {
3292
- "tooltip-before": Q(() => [
3293
- W(a.$slots, "tooltip-before", We(Xe({ ...vt.value })), void 0, !0)
3308
+ "tooltip-before": j(() => [
3309
+ W(t.$slots, "tooltip-before", We(Xe({ ...da.value })), void 0, !0)
3294
3310
  ]),
3295
- "tooltip-after": Q(() => [
3296
- W(a.$slots, "tooltip-after", We(Xe({ ...vt.value })), void 0, !0)
3311
+ "tooltip-after": j(() => [
3312
+ W(t.$slots, "tooltip-after", We(Xe({ ...da.value })), void 0, !0)
3297
3313
  ]),
3298
3314
  _: 3
3299
3315
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
3300
- ra.value && l.value.chart.userOptions.buttons.table ? (n(), Ae(Go($l.value.component), al({ key: 8 }, $l.value.props, {
3316
+ ct.value && l.value.chart.userOptions.buttons.table ? (n(), Ae(Zo($l.value.component), tl({ key: 8 }, $l.value.props, {
3301
3317
  ref_key: "tableUnit",
3302
3318
  ref: il,
3303
- onClose: St
3304
- }), At({
3305
- content: Q(() => [
3319
+ onClose: $a
3320
+ }), Ca({
3321
+ content: j(() => [
3306
3322
  p("div", {
3307
- style: $(`${v(va) || l.value.table.useDialog ? "" : "max-height:400px"};${l.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${l.value.table.useDialog ? "" : "margin-top:48px"}`)
3323
+ style: $(`${v(dt) || l.value.table.useDialog ? "" : "max-height:400px"};${l.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${l.value.table.useDialog ? "" : "margin-top:48px"}`)
3308
3324
  }, [
3309
- p("div", qi, [
3310
- Uo(p("input", {
3325
+ p("div", Ki, [
3326
+ Jo(p("input", {
3311
3327
  type: "checkbox",
3312
3328
  "onUpdate:modelValue": s[4] || (s[4] = (e) => pl.value = e)
3313
3329
  }, null, 512), [
3314
- [qo, pl.value]
3330
+ [Ko, pl.value]
3315
3331
  ]),
3316
3332
  p("div", {
3317
3333
  onClick: s[5] || (s[5] = (e) => pl.value = !pl.value),
3318
3334
  style: { cursor: "pointer" }
3319
3335
  }, [
3320
- vl(v(Sa), {
3336
+ vl(v($t), {
3321
3337
  name: "chartLine",
3322
3338
  size: 20,
3323
3339
  stroke: l.value.chart.color
3324
3340
  }, null, 8, ["stroke"])
3325
3341
  ])
3326
3342
  ]),
3327
- pl.value ? (n(), Ae(v(Ut), {
3328
- key: `sparkline_${sa.value}`,
3329
- dataset: $o.value,
3330
- config: Lo.value
3331
- }, null, 8, ["dataset", "config"])) : (n(), Ae(v(Wt), {
3332
- key: `table_${Ca.value}`,
3333
- colNames: Xl.value.colNames,
3334
- head: Xl.value.head,
3335
- body: Xl.value.body,
3336
- config: Xl.value.config,
3343
+ pl.value ? (n(), Ae(v(qa), {
3344
+ key: `sparkline_${ut.value}`,
3345
+ dataset: Ao.value,
3346
+ config: Co.value
3347
+ }, null, 8, ["dataset", "config"])) : (n(), Ae(v(Xa), {
3348
+ key: `table_${Tt.value}`,
3349
+ colNames: Gl.value.colNames,
3350
+ head: Gl.value.head,
3351
+ body: Gl.value.body,
3352
+ config: Gl.value.config,
3337
3353
  title: l.value.table.useDialog ? "" : $l.value.title,
3338
3354
  withCloseButton: !l.value.table.useDialog,
3339
- onClose: St
3355
+ onClose: $a
3340
3356
  }, {
3341
- th: Q(({ th: e }) => [
3342
- p("div", { innerHTML: e }, null, 8, Zi)
3357
+ th: j(({ th: e }) => [
3358
+ p("div", { innerHTML: e }, null, 8, Qi)
3343
3359
  ]),
3344
- td: Q(({ td: e }) => [
3345
- Ct(ae(isNaN(Number(e)) ? e : v(Ve)({
3360
+ td: j(({ td: e }) => [
3361
+ Ta(te(isNaN(Number(e)) ? e : v(Ve)({
3346
3362
  p: l.value.chart.labels.prefix,
3347
3363
  v: e,
3348
3364
  s: l.value.chart.labels.suffix,
@@ -3357,20 +3373,20 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3357
3373
  }, [
3358
3374
  l.value.table.useDialog ? {
3359
3375
  name: "title",
3360
- fn: Q(() => [
3361
- Ct(ae($l.value.title), 1)
3376
+ fn: j(() => [
3377
+ Ta(te($l.value.title), 1)
3362
3378
  ]),
3363
3379
  key: "0"
3364
3380
  } : void 0,
3365
3381
  l.value.table.useDialog ? {
3366
3382
  name: "actions",
3367
- fn: Q(() => [
3383
+ fn: j(() => [
3368
3384
  p("button", {
3369
3385
  tabindex: "0",
3370
3386
  class: "vue-ui-user-options-button",
3371
- onClick: s[3] || (s[3] = (e) => ba(l.value.chart.userOptions.callbacks.csv))
3387
+ onClick: s[3] || (s[3] = (e) => xt(l.value.chart.userOptions.callbacks.csv))
3372
3388
  }, [
3373
- vl(v(Sa), {
3389
+ vl(v($t), {
3374
3390
  name: "excel",
3375
3391
  stroke: $l.value.props.color
3376
3392
  }, null, 8, ["stroke"])
@@ -3379,10 +3395,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
3379
3395
  key: "1"
3380
3396
  } : void 0
3381
3397
  ]), 1040)) : h("", !0),
3382
- v(ie) ? (n(), Ae(vs, { key: 9 })) : h("", !0)
3383
- ], 46, _s));
3398
+ v(ie) ? (n(), Ae(fs, { key: 9 })) : h("", !0)
3399
+ ], 46, $s));
3384
3400
  }
3385
- }, fn = /* @__PURE__ */ ks(Ji, [["__scopeId", "data-v-53304c9f"]]);
3401
+ }, bn = /* @__PURE__ */ Ss(ji, [["__scopeId", "data-v-76bab46a"]]);
3386
3402
  export {
3387
- fn as default
3403
+ bn as default
3388
3404
  };