vue-data-ui 3.0.0-next.30 → 3.0.0-next.31

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 (89) hide show
  1. package/dist/{Arrow-gZkDqarC.js → Arrow-CjrRAMiU.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cx7MDUn7.js → BaseDraggableDialog-Bat9k7_9.js} +2 -2
  3. package/dist/{BaseIcon-DEGIw8ne.js → BaseIcon-DGtQbkFy.js} +1 -1
  4. package/dist/{ColorPicker-dVo9qgIk.js → ColorPicker-DowMg7RO.js} +2 -2
  5. package/dist/{DataTable-DjL9vVfm.js → DataTable-DAZn6udI.js} +2 -2
  6. package/dist/{Legend-DNs8ZSxL.js → Legend-DCsRNGsk.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-Bmu00306.js → NonSvgPenAndPaper-BhfZ3RsC.js} +3 -3
  8. package/dist/{PackageVersion-SqC1iXfO.js → PackageVersion-CJPhC_FI.js} +1 -1
  9. package/dist/{PenAndPaper-C1bF0gIz.js → PenAndPaper-kGe5NPSy.js} +3 -3
  10. package/dist/{Shape-CNmKltYG.js → Shape-D6ahkZT8.js} +1 -1
  11. package/dist/{Slicer-DYffOkSj.js → Slicer-CUUN5Npc.js} +2 -2
  12. package/dist/{SparkTooltip-BuPeepCP.js → SparkTooltip-1EkqR7Qj.js} +1 -1
  13. package/dist/{Title-B21jaJ0n.js → Title-gfAAMBE3.js} +1 -1
  14. package/dist/{Tooltip-C4HWh3fx.js → Tooltip-eZi8Q0Mr.js} +23 -19
  15. package/dist/{UserOptions-DQDPN9YO.js → UserOptions-Dd0OHMn7.js} +2 -2
  16. package/dist/{dom-to-png-Z16yk8O6.js → dom-to-png-CwBiVDQT.js} +1 -1
  17. package/dist/{img-UQKhhbxb.js → img-FayRC7eM.js} +1 -1
  18. package/dist/{index-Bxh2efzz.js → index-CvyDwC1y.js} +8 -2
  19. package/dist/{pdf-D2K9GCDq.js → pdf-B_EkQtoL.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +4 -0
  22. package/dist/types/vue-data-ui.d.ts +4 -0
  23. package/dist/{useNestedProp-BGEUK51b.js → useNestedProp-B-ULAHAH.js} +1 -1
  24. package/dist/{usePrinter-CfB_poc_.js → usePrinter-BAQfJI9j.js} +2 -2
  25. package/dist/{vue-data-ui-Em_nyncZ.js → vue-data-ui-Drw9rZ27.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-KFXQhCpk.js → vue-ui-3d-bar-Bu68MVtW.js} +6 -6
  28. package/dist/{vue-ui-accordion-CXj3OfMj.js → vue-ui-accordion-ErGvIA2d.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-Bygd_6Lj.js → vue-ui-age-pyramid-CeTpdJmu.js} +11 -9
  30. package/dist/{vue-ui-annotator-CaxhGvw9.js → vue-ui-annotator-DneaduAI.js} +2 -2
  31. package/dist/{vue-ui-bullet-xsVzeIGY.js → vue-ui-bullet-gol3S_xU.js} +7 -7
  32. package/dist/{vue-ui-candlestick-DT3NblSj.js → vue-ui-candlestick-BIjOGylw.js} +12 -10
  33. package/dist/{vue-ui-carousel-table-Bj6Blcps.js → vue-ui-carousel-table-DMIknisD.js} +4 -4
  34. package/dist/{vue-ui-chestnut-Bzi7pvOQ.js → vue-ui-chestnut-BpaWvBdS.js} +5 -5
  35. package/dist/{vue-ui-chord-SN0lkfJI.js → vue-ui-chord-BxtcK3_z.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-BwH7JGeH.js → vue-ui-circle-pack-C1VhKFJH.js} +6 -6
  37. package/dist/{vue-ui-cursor-BLHqKKuQ.js → vue-ui-cursor-BfBzN6pL.js} +2 -2
  38. package/dist/{vue-ui-dashboard-C5ye3aO2.js → vue-ui-dashboard-BkJ-_5VM.js} +62 -62
  39. package/dist/{vue-ui-digits-fWW_yCiA.js → vue-ui-digits-DiVIJnu1.js} +2 -2
  40. package/dist/{vue-ui-donut-VI_2cil0.js → vue-ui-donut-Bzs1fvFg.js} +13 -11
  41. package/dist/{vue-ui-donut-evolution-BMDGbLPk.js → vue-ui-donut-evolution-CphzEyQm.js} +8 -8
  42. package/dist/{vue-ui-dumbbell-DYVwpQdP.js → vue-ui-dumbbell-DZ_K-uO1.js} +7 -7
  43. package/dist/{vue-ui-flow-BP3lwS2c.js → vue-ui-flow-B1Smp670.js} +12 -10
  44. package/dist/{vue-ui-funnel-C2gKEJrg.js → vue-ui-funnel-MxaU-Y6j.js} +6 -6
  45. package/dist/{vue-ui-galaxy-CHu9EpUI.js → vue-ui-galaxy-CuIvJuky.js} +51 -49
  46. package/dist/{vue-ui-gauge-DXoBEk4e.js → vue-ui-gauge-CQa1ARJW.js} +6 -6
  47. package/dist/{vue-ui-gizmo-DpWaeVxb.js → vue-ui-gizmo-CYD2DkWS.js} +3 -3
  48. package/dist/{vue-ui-heatmap-C6Xh5fmd.js → vue-ui-heatmap-DPKVxs97.js} +32 -30
  49. package/dist/{vue-ui-history-plot-CH4RJSqN.js → vue-ui-history-plot-CfaqUSG0.js} +12 -10
  50. package/dist/{vue-ui-kpi-DJrypxm5.js → vue-ui-kpi-BF7LY0ml.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-BMaEgYp1.js → vue-ui-mini-loader-paPzy6bc.js} +2 -2
  52. package/dist/{vue-ui-molecule-om_udncc.js → vue-ui-molecule-s8MbsyOD.js} +35 -33
  53. package/dist/{vue-ui-mood-radar-BOd7BMa4.js → vue-ui-mood-radar-DJVB6bAz.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-B6krlgFx.js → vue-ui-nested-donuts-Cj6UWI-E.js} +62 -60
  55. package/dist/{vue-ui-onion-COQ1H7Ft.js → vue-ui-onion-CZPQVM2E.js} +46 -44
  56. package/dist/{vue-ui-parallel-coordinate-plot-CEKsfccd.js → vue-ui-parallel-coordinate-plot-BFjFaGPP.js} +69 -67
  57. package/dist/{vue-ui-quadrant-C88vkF8q.js → vue-ui-quadrant-BliWKYkH.js} +59 -57
  58. package/dist/{vue-ui-quick-chart-CG2lY19C.js → vue-ui-quick-chart-BnsIAVwN.js} +11 -9
  59. package/dist/{vue-ui-radar-CUAYzxM4.js → vue-ui-radar-BKWpjRbP.js} +12 -10
  60. package/dist/{vue-ui-rating-DT0BLQ1G.js → vue-ui-rating-BfGF_GEg.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-Ek_uAHpF.js → vue-ui-relation-circle-5U3oW2sT.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-73OXSMcJ.js → vue-ui-ridgeline-Ch5zmtxC.js} +8 -8
  63. package/dist/{vue-ui-rings-D1gK_JVs.js → vue-ui-rings-B0NyCg-p.js} +13 -11
  64. package/dist/{vue-ui-scatter-DCy4Vb84.js → vue-ui-scatter-Xv9oRiGO.js} +72 -70
  65. package/dist/{vue-ui-skeleton-DIb-2uan.js → vue-ui-skeleton-B-AdrWNd.js} +3 -3
  66. package/dist/{vue-ui-smiley-DiIu0kjQ.js → vue-ui-smiley-snwlluW9.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-BPczzwfH.js → vue-ui-spark-trend-DSdhsrCl.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-B4LpToMU.js → vue-ui-sparkbar-eABecvjz.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-D9KwmalJ.js → vue-ui-sparkgauge-DFsW13y7.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-h7qmzAe1.js → vue-ui-sparkhistogram-DPzGXjFj.js} +4 -4
  71. package/dist/{vue-ui-sparkline-DYYy38Fu.js → vue-ui-sparkline-B5OPRjNU.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-DIIyxzKM.js → vue-ui-sparkstackbar-CVBdITIs.js} +55 -53
  73. package/dist/{vue-ui-stackbar-BhPcAjIe.js → vue-ui-stackbar-BTr1BBN4.js} +196 -194
  74. package/dist/{vue-ui-strip-plot-9wxxXL3R.js → vue-ui-strip-plot-54NtDb0A.js} +30 -28
  75. package/dist/{vue-ui-table-FAEiGW1W.js → vue-ui-table-B3FWWAuR.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-Cwbw5Rqy.js → vue-ui-table-heatmap-BTWwkQXu.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-DnZ44NiP.js → vue-ui-table-sparkline-L_VfVY3_.js} +4 -4
  78. package/dist/{vue-ui-thermometer-CHFtR_VC.js → vue-ui-thermometer-BYg-tLqb.js} +6 -6
  79. package/dist/{vue-ui-timer-DWzZTLxC.js → vue-ui-timer-Bsm1nthM.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-DTS-ZQRp.js → vue-ui-tiremarks-DDNjDbqV.js} +6 -6
  81. package/dist/{vue-ui-treemap-B5OdGgS-.js → vue-ui-treemap-4Rb7juUd.js} +13 -11
  82. package/dist/{vue-ui-vertical-bar-CcjDg9Bc.js → vue-ui-vertical-bar-BBUHbyBk.js} +41 -39
  83. package/dist/{vue-ui-waffle-C1XVqncx.js → vue-ui-waffle-B0pPICBw.js} +13 -11
  84. package/dist/{vue-ui-wheel-DEIJPpR4.js → vue-ui-wheel-DsxxqjAU.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-CUzU4JpO.js → vue-ui-word-cloud-Bcy11LqK.js} +12 -10
  86. package/dist/{vue-ui-world-D0pONCg9.js → vue-ui-world-6gaLWJY0.js} +11 -9
  87. package/dist/{vue-ui-xy-EoeoBLu2.js → vue-ui-xy-DH1dcD0K.js} +723 -719
  88. package/dist/{vue-ui-xy-canvas-Do-IpmFr.js → vue-ui-xy-canvas-dEh72fwk.js} +30 -28
  89. package/package.json +1 -1
@@ -1,61 +1,61 @@
1
- import { defineAsyncComponent as Be, useSlots as Nt, getCurrentInstance as Vt, ref as S, computed as $, onMounted as Ba, toRefs as Pt, watch as Ml, watchEffect as Ht, onBeforeUnmount as Ya, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ue, createBlock as Me, createCommentVNode as d, createVNode as xl, unref as v, createSlots as Rt, withCtx as ue, renderSlot as q, normalizeProps as Ze, guardReactiveProps as Je, createElementVNode as x, Fragment as h, renderList as k, toDisplayString as le, mergeProps as Ql, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft, nextTick as jl } from "vue";
2
- import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as ml, ac as Ke, d as Gt, p as Dt, ad as zl, aa as R, ae as qt, v as T, af as Fa, V as Ea, ag as Wa, U as Xa, ah as Ut, ai as Ga, aj as Da, i as re, x as Zt, y as Jt, _ as qa, R as ze, f as me, w as Qe, s as Se, a8 as X, L as Kt, F as Fe, ak as Cl, I as Qt, al as Ee, C as be, t as jt, a as eo, o as Ua, q as lo, r as ao, E as ol } from "./index-Bxh2efzz.js";
3
- import { u as aa } from "./useNestedProp-BGEUK51b.js";
4
- import { u as to } from "./useTimeLabels-DFkUfjfs.js";
5
- import { u as oo } from "./useTimeLabelCollider-V7AOiPLB.js";
6
- import { S as so } from "./Slicer-DYffOkSj.js";
7
- import uo from "./Title-B21jaJ0n.js";
8
- import { _ as Il } from "./Shape-CNmKltYG.js";
9
- import ro from "./img-UQKhhbxb.js";
10
- import { u as io } from "./usePrinter-CfB_poc_.js";
11
- import { u as no, B as co } from "./BaseScanner-DIK2NTdp.js";
12
- import { t as vo } from "./useResponsive-DfdjqQps.js";
13
- import { _ as ho } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "height"], mo = { key: 1 }, bo = { class: "vue-ui-xy-grid" }, yo = ["stroke", "x1", "x2", "y1", "y2"], po = ["stroke", "x1", "x2", "y1", "y2"], ko = { key: 1 }, _o = ["x1", "x2", "y1", "y2", "stroke"], wo = ["x1", "x2", "y1", "y2", "stroke"], So = ["x1", "x2", "y1", "y2", "stroke"], $o = { key: 3 }, Lo = ["d", "stroke"], Ao = { key: 4 }, Mo = ["d", "stroke"], zo = ["id"], Co = ["stop-color"], Io = ["stop-color"], To = ["stop-color"], Oo = ["id"], No = ["stop-color"], Vo = ["stop-color"], Po = ["stop-color"], Ho = ["id"], Ro = ["stop-color"], Bo = ["stop-color"], Yo = ["id"], Fo = ["stop-color"], Eo = ["stop-color"], Wo = ["id"], Xo = ["stop-color"], Go = ["stop-color"], Do = ["x", "y", "height", "width", "fill"], qo = ["x", "y", "width"], Uo = { key: 0 }, Zo = ["x", "y", "height", "width", "fill"], Jo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ko = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qo = ["width", "x", "y"], jo = { key: 0 }, es = ["id"], ls = ["fill"], as = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ts = ["x", "y", "font-size", "fill"], os = ["stroke", "x1", "x2", "y1", "y2"], ss = { key: 3 }, us = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rs = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], is = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ns = ["fill", "font-size", "transform"], cs = ["x1", "x2", "y1", "y2", "stroke"], vs = ["x", "y", "font-size", "fill"], ds = ["x1", "x2", "y1", "y2", "stroke"], hs = ["x", "y", "font-size", "fill"], fs = ["width", "x", "y"], gs = { style: { width: "100%" } }, xs = { key: 0 }, ms = ["id"], bs = ["fill"], ys = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ps = ["x", "y", "font-size", "fill"], ks = ["d", "stroke", "stroke-width", "stroke-dasharray"], _s = ["d", "stroke", "stroke-width", "stroke-dasharray"], ws = { key: 6 }, Ss = { key: 0 }, $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "fill"], Ms = ["d", "fill"], zs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Cs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Is = ["width", "x", "y"], Ts = { style: { width: "100%" } }, Os = { key: 3 }, Ns = ["id"], Vs = ["fill"], Ps = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Hs = ["x", "y", "font-size", "fill"], Rs = { key: 7 }, Bs = ["x", "y", "font-size", "fill"], Ys = ["x", "y", "font-size", "fill", "font-weight"], Fs = { key: 8 }, Es = ["x", "y", "font-size", "fill"], Ws = { key: 9 }, Xs = ["x", "y"], Gs = ["innerHTML"], Ds = ["x", "y"], qs = ["innerHTML"], Us = ["x1", "x2", "y1", "y2", "stroke"], Zs = { key: 10 }, Js = ["x", "y", "font-size", "fill"], Ks = { key: 11 }, Qs = ["x", "y"], js = ["innerHTML"], eu = ["x", "y"], lu = ["innerHTML"], au = ["x1", "x2", "y1", "y2", "stroke"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["x", "y", "font-size", "fill", "innerHTML"], uu = ["x", "y", "font-size", "fill", "innerHTML"], ru = ["id"], iu = ["stop-color"], nu = ["stop-color"], cu = ["x", "y", "width", "height", "fill", "onMouseenter"], vu = ["font-size", "fill", "transform"], du = ["x", "y", "font-size", "fill"], hu = ["text-anchor", "font-size", "fill", "transform", "onClick"], fu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], gu = { key: 14 }, xu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], mu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], bu = ["y", "x", "width", "height", "fill"], yu = ["id", "x", "y", "font-size", "fill", "text-anchor"], pu = { key: 15 }, ku = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], _u = {
15
- key: 16,
1
+ import { defineAsyncComponent as Be, useSlots as Rt, getCurrentInstance as Bt, ref as w, computed as $, onMounted as Fa, toRefs as Yt, watch as zl, watchEffect as Ft, onBeforeUnmount as Ea, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ue, createBlock as Me, createCommentVNode as d, createVNode as ml, unref as v, createSlots as Et, withCtx as ue, renderSlot as q, normalizeProps as Ze, guardReactiveProps as Je, createElementVNode as x, Fragment as h, renderList as k, toDisplayString as le, mergeProps as Ql, withDirectives as Xt, vModelCheckbox as Wt, createTextVNode as Gt, nextTick as jl } from "vue";
2
+ import { u as Dt, c as ea, e as la, A as qt, a5 as Ye, b as Ut, D as yl, ac as Ke, d as Zt, p as Jt, ad as Cl, aa as B, ae as Kt, v as T, af as Xa, V as Wa, ag as Ga, U as Da, ah as Qt, ai as qa, aj as Ua, i as re, x as jt, y as eo, _ as Za, R as ze, f as me, w as Qe, s as Se, a8 as W, L as lo, F as Fe, ak as Il, I as ao, al as Ee, C as ye, t as to, a as oo, o as Ja, q as so, r as uo, E as ol } from "./index-CvyDwC1y.js";
3
+ import { u as aa } from "./useNestedProp-B-ULAHAH.js";
4
+ import { u as ro } from "./useTimeLabels-DFkUfjfs.js";
5
+ import { u as io } from "./useTimeLabelCollider-V7AOiPLB.js";
6
+ import { S as no } from "./Slicer-CUUN5Npc.js";
7
+ import co from "./Title-gfAAMBE3.js";
8
+ import { _ as Tl } from "./Shape-D6ahkZT8.js";
9
+ import vo from "./img-FayRC7eM.js";
10
+ import { u as ho } from "./usePrinter-BAQfJI9j.js";
11
+ import { u as fo, B as go } from "./BaseScanner-DIK2NTdp.js";
12
+ import { t as xo } from "./useResponsive-DfdjqQps.js";
13
+ import { _ as bo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const mo = ["id"], yo = ["viewBox", "aria-label"], po = ["x", "y", "width", "height"], ko = { key: 1 }, _o = { class: "vue-ui-xy-grid" }, wo = ["stroke", "x1", "x2", "y1", "y2"], So = ["stroke", "x1", "x2", "y1", "y2"], $o = { key: 1 }, Lo = ["x1", "x2", "y1", "y2", "stroke"], Ao = ["x1", "x2", "y1", "y2", "stroke"], Mo = ["x1", "x2", "y1", "y2", "stroke"], zo = { key: 3 }, Co = ["d", "stroke"], Io = { key: 4 }, To = ["d", "stroke"], Oo = ["id"], No = ["stop-color"], Vo = ["stop-color"], Po = ["stop-color"], Ho = ["id"], Ro = ["stop-color"], Bo = ["stop-color"], Yo = ["stop-color"], Fo = ["id"], Eo = ["stop-color"], Xo = ["stop-color"], Wo = ["id"], Go = ["stop-color"], Do = ["stop-color"], qo = ["id"], Uo = ["stop-color"], Zo = ["stop-color"], Jo = ["x", "y", "height", "width", "fill"], Ko = ["x", "y", "width"], Qo = { key: 0 }, jo = ["x", "y", "height", "width", "fill"], es = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ls = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], as = ["width", "x", "y"], ts = { key: 0 }, os = ["id"], ss = ["fill"], us = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], rs = ["x", "y", "font-size", "fill"], is = ["stroke", "x1", "x2", "y1", "y2"], ns = { key: 3 }, cs = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], vs = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ds = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hs = ["fill", "font-size", "transform"], fs = ["x1", "x2", "y1", "y2", "stroke"], gs = ["x", "y", "font-size", "fill"], xs = ["x1", "x2", "y1", "y2", "stroke"], bs = ["x", "y", "font-size", "fill"], ms = ["width", "x", "y"], ys = { style: { width: "100%" } }, ps = { key: 0 }, ks = ["id"], _s = ["fill"], ws = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ss = ["x", "y", "font-size", "fill"], $s = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ls = ["d", "stroke", "stroke-width", "stroke-dasharray"], As = { key: 6 }, Ms = { key: 0 }, zs = ["d", "fill"], Cs = ["d", "fill"], Is = ["d", "fill"], Ts = ["d", "fill"], Os = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ns = ["d", "stroke", "stroke-width", "stroke-dasharray"], Vs = ["width", "x", "y"], Ps = { style: { width: "100%" } }, Hs = { key: 3 }, Rs = ["id"], Bs = ["fill"], Ys = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Fs = ["x", "y", "font-size", "fill"], Es = { key: 7 }, Xs = ["x", "y", "font-size", "fill"], Ws = ["x", "y", "font-size", "fill", "font-weight"], Gs = { key: 8 }, Ds = ["x", "y", "font-size", "fill"], qs = { key: 9 }, Us = ["x", "y"], Zs = ["innerHTML"], Js = ["x", "y"], Ks = ["innerHTML"], Qs = ["x1", "x2", "y1", "y2", "stroke"], js = { key: 10 }, eu = ["x", "y", "font-size", "fill"], lu = { key: 11 }, au = ["x", "y"], tu = ["innerHTML"], ou = ["x", "y"], su = ["innerHTML"], uu = ["x1", "x2", "y1", "y2", "stroke"], ru = ["x", "y", "font-size", "fill", "innerHTML"], iu = ["x", "y", "font-size", "fill", "innerHTML"], nu = ["x", "y", "font-size", "fill", "innerHTML"], cu = ["x", "y", "font-size", "fill", "innerHTML"], vu = ["id"], du = ["stop-color"], hu = ["stop-color"], fu = ["x", "y", "width", "height", "fill", "onMouseenter"], gu = ["font-size", "fill", "transform"], xu = ["x", "y", "font-size", "fill"], bu = ["text-anchor", "font-size", "fill", "transform", "onClick"], mu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], yu = { key: 14 }, pu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ku = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], _u = ["y", "x", "width", "height", "fill"], wu = ["id", "x", "y", "font-size", "fill", "text-anchor"], Su = {
15
+ key: 15,
16
16
  style: { "pointer-events": "none" }
17
- }, wu = ["x", "y"], Su = ["cx", "cy", "r", "fill"], $u = {
17
+ }, $u = ["x", "y"], Lu = ["cx", "cy", "r", "fill"], Au = {
18
18
  key: 4,
19
19
  class: "vue-data-ui-watermark"
20
- }, Lu = {
20
+ }, Mu = {
21
21
  class: "vue-ui-xy-tag-arrow",
22
22
  height: "20",
23
23
  viewBox: "0 0 10 20",
24
24
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
25
- }, Au = ["fill"], Mu = ["innerHTML"], zu = {
25
+ }, zu = ["fill"], Cu = ["innerHTML"], Iu = {
26
26
  class: "vue-ui-xy-tag-arrow",
27
27
  height: "100%",
28
28
  viewBox: "0 0 10 20",
29
29
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
30
- }, Cu = ["fill"], Iu = ["innerHTML"], Tu = {
30
+ }, Tu = ["fill"], Ou = ["innerHTML"], Nu = {
31
31
  class: "vue-ui-xy-tag-arrow",
32
32
  height: "20",
33
33
  viewBox: "0 0 10 20",
34
34
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
35
- }, Ou = ["fill"], Nu = ["innerHTML"], Vu = {
35
+ }, Vu = ["fill"], Pu = ["innerHTML"], Hu = {
36
36
  class: "vue-ui-xy-tag-arrow",
37
37
  height: "100%",
38
38
  viewBox: "0 0 10 20",
39
39
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
40
- }, Pu = ["fill"], Hu = ["innerHTML"], Ru = ["onClick"], Bu = {
40
+ }, Ru = ["fill"], Bu = ["innerHTML"], Yu = ["onClick"], Fu = {
41
41
  key: 0,
42
42
  viewBox: "0 0 20 12",
43
43
  height: "14",
44
44
  width: "20"
45
- }, Yu = ["stroke", "fill"], Fu = {
45
+ }, Eu = ["stroke", "fill"], Xu = {
46
46
  key: 1,
47
47
  viewBox: "0 0 40 40",
48
48
  height: "14",
49
49
  width: "14"
50
- }, Eu = ["fill"], Wu = ["fill"], Xu = {
50
+ }, Wu = ["fill"], Gu = ["fill"], Du = {
51
51
  key: 2,
52
52
  viewBox: "0 0 12 12",
53
53
  height: "14",
54
54
  width: "14"
55
- }, Gu = {
55
+ }, qu = {
56
56
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
57
57
  "data-dom-to-png-ignore": ""
58
- }, Du = ["innerHTML"], qu = {
58
+ }, Uu = ["innerHTML"], Zu = {
59
59
  __name: "vue-ui-xy",
60
60
  props: {
61
61
  config: {
@@ -76,49 +76,49 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
76
76
  }
77
77
  },
78
78
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
79
- setup(Tl, { expose: Za, emit: Ja }) {
80
- const g = Tl, Ka = Be(() => import("./DataTable-DjL9vVfm.js")), Qa = Be(() => import("./Tooltip-C4HWh3fx.js")), ja = Be(() => import("./UserOptions-DQDPN9YO.js")), et = Be(() => import("./BaseIcon-DEGIw8ne.js")), lt = Be(() => import("./vue-ui-table-sparkline-DnZ44NiP.js")), at = Be(() => import("./vue-ui-accordion-CXj3OfMj.js")), tt = Be(() => import("./PackageVersion-SqC1iXfO.js")), ot = Be(() => import("./PenAndPaper-C1bF0gIz.js")), Ol = Ja, ta = Nt(), st = Vt(), { vue_ui_xy: Nl } = Et(), je = S(null), sl = S(null), Ne = S(null), el = S(null), ul = S(null), rl = S(null), ut = S(null), Vl = S(null), Pl = S(null), ll = S(null), Hl = S(null), We = S(null), Rl = S(null), Bl = S(0), M = S(null), oa = S(!0), ve = S(600), ae = S(1e3), bl = S("0 0 1000 600"), rt = S({ x: 0, y: 0 }), il = S({ line: "line", bar: "bar", plot: "plot" }), yl = S(!1), al = S(!1), sa = S(!1), Xe = S(null), te = S([]), U = S(ea()), ua = S(0), ra = S(0), ia = S(0), nl = S(!0), Yl = S(0), O = S(null), na = S(!1), Fl = S(!0), pl = S(!0), ye = S(null), Ce = S({}), kl = S(null), p = S(null), it = $(() => ({
79
+ setup(Ol, { expose: Ka, emit: Qa }) {
80
+ const g = Ol, ja = Be(() => import("./DataTable-DAZn6udI.js")), et = Be(() => import("./Tooltip-eZi8Q0Mr.js")), lt = Be(() => import("./UserOptions-Dd0OHMn7.js")), at = Be(() => import("./BaseIcon-DGtQbkFy.js")), tt = Be(() => import("./vue-ui-table-sparkline-L_VfVY3_.js")), ot = Be(() => import("./vue-ui-accordion-ErGvIA2d.js")), st = Be(() => import("./PackageVersion-CJPhC_FI.js")), ut = Be(() => import("./PenAndPaper-kGe5NPSy.js")), Nl = Qa, ta = Rt(), rt = Bt(), { vue_ui_xy: Vl } = Dt(), je = w(null), sl = w(null), Ne = w(null), el = w(null), ul = w(null), rl = w(null), it = w(null), Pl = w(null), Hl = w(null), ll = w(null), Rl = w(null), Xe = w(null), Bl = w(null), Yl = w(0), M = w(null), oa = w(!0), ve = w(600), ae = w(1e3), pl = w("0 0 1000 600"), nt = w({ x: 0, y: 0 }), il = w({ line: "line", bar: "bar", plot: "plot" }), nl = w(!1), al = w(!1), sa = w(!1), We = w(null), te = w([]), U = w(ea()), ua = w(0), ra = w(0), ia = w(0), cl = w(!0), Fl = w(0), O = w(null), na = w(!1), El = w(!0), kl = w(!0), de = w(null), Ce = w({}), _l = w(null), p = w(null), ct = $(() => ({
81
81
  height: ve.value,
82
82
  width: ae.value
83
- })), nt = g.config.downsample && g.config.downsample.threshold ? g.config.downsample.threshold : 500, f = S({
83
+ })), vt = g.config.downsample && g.config.downsample.threshold ? g.config.downsample.threshold : 500, f = w({
84
84
  dataLabels: { show: !0 },
85
85
  showTooltip: !0,
86
86
  showTable: !1,
87
87
  isStacked: !1,
88
88
  useIndividualScale: !1
89
- }), m = S({
89
+ }), b = w({
90
90
  xAxis: 18,
91
91
  yAxis: 12,
92
92
  dataLabels: 20,
93
93
  plotLabels: 10
94
- }), $e = S({ plot: 3, line: 3 });
95
- Ba(() => {
94
+ }), $e = w({ plot: 3, line: 3 });
95
+ Fa(() => {
96
96
  g.dataset.length && g.dataset.forEach((a, c) => {
97
97
  [null, void 0].includes(a.series) && la({
98
98
  componentName: "VueUiXy",
99
99
  type: "datasetSerieAttribute",
100
100
  property: "series (number[])",
101
101
  index: c,
102
- debug: hl.value
102
+ debug: gl.value
103
103
  });
104
104
  });
105
105
  });
106
- function El() {
106
+ function Xl() {
107
107
  if (!Object.keys(g.config || {}).length)
108
- return Nl;
108
+ return Vl;
109
109
  const a = aa({
110
110
  userConfig: g.config,
111
- defaultConfig: Nl
111
+ defaultConfig: Vl
112
112
  });
113
- return g.config && be(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 && be(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 && be(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 && be(g.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = g.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, g.config && be(g.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = g.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, g.config && be(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 && g.config.chart.annotations && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? a.chart.annotations = g.config.chart.annotations.map((c) => aa({
114
- defaultConfig: Nl.chart.annotations[0],
113
+ return g.config && ye(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 && ye(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 && ye(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 && ye(g.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = g.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, g.config && ye(g.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = g.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, g.config && ye(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 && g.config.chart.annotations && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? a.chart.annotations = g.config.chart.annotations.map((c) => aa({
114
+ defaultConfig: Vl.chart.annotations[0],
115
115
  userConfig: c
116
- })) : a.chart.annotations = [], g.config && be(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", be(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 && be(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 && be(g.config, "events.datapointEnter") ? a.events.datapointEnter = g.config.events.datapointEnter : a.events.datapointEnter = null, g.config && be(g.config, "events.datapointLeave") ? a.events.datapointLeave = g.config.events.datapointLeave : a.events.datapointLeave = null, g.config && be(g.config, "events.datapointClick") ? a.events.datapointClick = g.config.events.datapointClick : a.events.datapointClick = null, a.theme ? {
116
+ })) : a.chart.annotations = [], g.config && ye(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", ye(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 && ye(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 && ye(g.config, "events.datapointEnter") ? a.events.datapointEnter = g.config.events.datapointEnter : a.events.datapointEnter = null, g.config && ye(g.config, "events.datapointLeave") ? a.events.datapointLeave = g.config.events.datapointLeave : a.events.datapointLeave = null, g.config && ye(g.config, "events.datapointClick") ? a.events.datapointClick = g.config.events.datapointClick : a.events.datapointClick = null, a.theme ? {
117
117
  ...aa({
118
- userConfig: eo.vue_ui_xy[a.theme] || g.config,
118
+ userConfig: oo.vue_ui_xy[a.theme] || g.config,
119
119
  defaultConfig: a
120
120
  }),
121
- customPalette: jt[a.theme] || g.palette
121
+ customPalette: to[a.theme] || g.palette
122
122
  } : a;
123
123
  }
124
124
  const Wl = $({
@@ -128,10 +128,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
128
128
  set(a) {
129
129
  return a;
130
130
  }
131
- }), l = S(El()), { loading: Xl, FINAL_DATASET: pe, manualLoading: _l } = no({
132
- ...Pt(g),
131
+ }), l = w(Xl()), { loading: Gl, FINAL_DATASET: pe, manualLoading: wl } = fo({
132
+ ...Yt(g),
133
133
  FINAL_CONFIG: l,
134
- prepareConfig: El,
134
+ prepareConfig: Xl,
135
135
  callback: () => {
136
136
  Promise.resolve().then(async () => {
137
137
  await Kl();
@@ -152,7 +152,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
152
152
  color: "#CACACA"
153
153
  }
154
154
  ],
155
- skeletonConfig: Wt({
155
+ skeletonConfig: qt({
156
156
  defaultConfig: l.value,
157
157
  userConfig: {
158
158
  useCssAnimation: !1,
@@ -211,27 +211,27 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
211
211
  }
212
212
  })
213
213
  }), Ve = $({
214
- get: () => Math.max(...pe.value.map((a) => Ye({ data: a.series, threshold: nt }).length)),
214
+ get: () => Math.max(...pe.value.map((a) => Ye({ data: a.series, threshold: vt }).length)),
215
215
  set: (a) => a
216
- }), y = S({ start: 0, end: Ve.value });
217
- Ml(() => g.selectedXIndex, (a) => {
216
+ }), m = w({ start: 0, end: Ve.value });
217
+ zl(() => g.selectedXIndex, (a) => {
218
218
  if ([null, void 0].includes(g.selectedXIndex)) {
219
219
  p.value = null;
220
220
  return;
221
221
  }
222
- const c = a - y.value.start;
223
- c < 0 || a >= y.value.end ? p.value = null : p.value = c ?? null;
222
+ const c = a - m.value.start;
223
+ c < 0 || a >= m.value.end ? p.value = null : p.value = c ?? null;
224
224
  }, { immediate: !0 });
225
- const { isPrinting: Gl, isImaging: ca, generatePdf: va, generateImage: da } = io({
225
+ const { isPrinting: Dl, isImaging: ca, generatePdf: va, generateImage: da } = ho({
226
226
  elementId: `vue-ui-xy_${U.value}`,
227
227
  fileName: l.value.chart.title.text || "vue-ui-xy",
228
228
  options: l.value.chart.userOptions.print
229
- }), ct = S(!1), ha = $(() => Xt(l.value.customPalette)), wl = $(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ie.value.filter((a) => !te.value.includes(a.id)).map((a) => Math.max(...a.series)))), Dl = $(() => {
229
+ }), dt = w(!1), ha = $(() => Ut(l.value.customPalette)), Sl = $(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ie.value.filter((a) => !te.value.includes(a.id)).map((a) => Math.max(...a.series)))), ql = $(() => {
230
230
  if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
231
231
  return l.value.chart.grid.labels.yAxis.scaleMin;
232
232
  const a = Math.min(...Ie.value.filter((c) => !te.value.includes(c.id)).map((c) => Math.min(...c.series)));
233
233
  return a > 0 ? 0 : a;
234
- }), ke = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ? ml(Dl.value, wl.value < 0 ? 0 : wl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Ke(Dl.value, wl.value < 0 ? 0 : wl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), cl = $(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? ke.value.min >= 0 ? 0 : Math.abs(ke.value.min) : -ke.value.min), Ie = $(() => oa.value ? pe.value.map((a, c) => {
234
+ }), ke = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ? yl(ql.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Ke(ql.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), vl = $(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? ke.value.min >= 0 ? 0 : Math.abs(ke.value.min) : -ke.value.min), Ie = $(() => oa.value ? pe.value.map((a, c) => {
235
235
  const e = Ye({
236
236
  data: a.series,
237
237
  threshold: l.value.downsample.threshold
@@ -239,60 +239,60 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
239
239
  return {
240
240
  ...a,
241
241
  slotAbsoluteIndex: c,
242
- series: e.map((t) => zl(t) ? t : null).slice(y.value.start, y.value.end),
243
- color: Gt(a.color ? a.color : ha.value[c] ? ha.value[c] : Dt[c]),
242
+ series: e.map((t) => Cl(t) ? t : null).slice(m.value.start, m.value.end),
243
+ color: Zt(a.color ? a.color : ha.value[c] ? ha.value[c] : Jt[c]),
244
244
  id: s,
245
245
  scaleLabel: a.scaleLabel || s
246
246
  };
247
247
  }) : pe.value), Te = $(() => Ie.value.map((a, c) => ({
248
248
  absoluteIndex: c,
249
249
  ...a,
250
- series: a.series.map((e) => e + cl.value),
250
+ series: a.series.map((e) => e + vl.value),
251
251
  absoluteValues: a.series,
252
- segregate: () => $a(a),
252
+ segregate: () => Aa(a),
253
253
  isSegregated: te.value.includes(a.id)
254
- }))), fe = $(() => Ie.value.map((a, c) => ({
254
+ }))), ge = $(() => Ie.value.map((a, c) => ({
255
255
  ...a,
256
- series: a.series.map((e) => e + cl.value),
256
+ series: a.series.map((e) => e + vl.value),
257
257
  absoluteValues: a.series
258
258
  })).filter((a) => !te.value.includes(a.id)));
259
- function vt() {
259
+ function ht() {
260
260
  let a = 0;
261
- Hl.value && (a = Array.from(Hl.value.querySelectorAll("text")).reduce((t, r) => {
261
+ Rl.value && (a = Array.from(Rl.value.querySelectorAll("text")).reduce((t, r) => {
262
262
  const o = r.getComputedTextLength();
263
263
  return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
264
264
  }, 0));
265
- const c = Pl.value ? Pl.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + m.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
265
+ const c = Hl.value ? Hl.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + b.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
266
266
  return a + c + e;
267
267
  }
268
- const ql = S(0), dt = vo((a) => {
269
- ql.value = a;
268
+ const Ul = w(0), ft = xo((a) => {
269
+ Ul.value = a;
270
270
  }, 100);
271
- Ht((a) => {
271
+ Ft((a) => {
272
272
  const c = ll.value;
273
273
  if (!c) return;
274
274
  const e = new ResizeObserver((s) => {
275
- dt(s[0].contentRect.height);
275
+ ft(s[0].contentRect.height);
276
276
  });
277
277
  e.observe(c), a(() => e.disconnect());
278
- }), Ya(() => {
279
- ql.value = 0;
278
+ }), Ea(() => {
279
+ Ul.value = 0;
280
280
  });
281
281
  const fa = $(() => {
282
282
  let a = 0;
283
- Vl.value && (a = Vl.value.getBBox().height);
283
+ Pl.value && (a = Pl.value.getBBox().height);
284
284
  let c = 0;
285
- return ll.value && (c = ql.value), a + c + m.value.xAxis;
286
- }), ht = $(() => pe.value.some((a) => a.useProgression)), n = $(() => {
285
+ return ll.value && (c = Ul.value), a + c + b.value.xAxis;
286
+ }), gt = $(() => pe.value.some((a) => a.useProgression)), n = $(() => {
287
287
  let a = 0;
288
288
  const c = 36;
289
- l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (pe.value.length - te.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + c) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + c : a = vt());
290
- const e = l.value.chart.labels.fontSize * 1.1, s = ht.value ? 24 : 6;
289
+ l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (pe.value.length - te.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + c) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + c : a = ht());
290
+ const e = l.value.chart.labels.fontSize * 1.1, s = gt.value ? 24 : 6;
291
291
  if (ll.value) {
292
292
  const o = ll.value.getBBox().x;
293
293
  o < 0 && (a += Math.abs(o));
294
294
  }
295
- const t = ae.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : t / b.value / 2;
295
+ const t = ae.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : t / y.value / 2;
296
296
  return {
297
297
  top: l.value.chart.padding.top + e,
298
298
  right: ae.value - s - l.value.chart.padding.right,
@@ -303,68 +303,68 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
303
303
  scaleLabelX: a,
304
304
  individualOffsetX: c
305
305
  };
306
- }), ft = $(() => {
307
- const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = b.value + a, e = R(n.value.top), s = R(n.value.bottom);
306
+ }), xt = $(() => {
307
+ const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = y.value + a, e = B(n.value.top), s = B(n.value.bottom);
308
308
  return Array.from({ length: c }).map((t, r) => {
309
- const o = n.value.width / b.value * r + n.value.left + G.value;
309
+ const o = n.value.width / y.value * r + n.value.left + G.value;
310
310
  return `M${o},${e} L${o},${s}`;
311
311
  }).join(" ");
312
- }), gt = $(() => {
312
+ }), bt = $(() => {
313
313
  if (!l.value.chart.grid.labels.xAxis.showCrosshairs)
314
314
  return "";
315
315
  const {
316
316
  showOnlyAtModulo: a,
317
317
  showOnlyFirstAndLast: c,
318
318
  modulo: e
319
- } = l.value.chart.grid.labels.xAxisLabels, s = J.value.length ? Math.min(e, [...new Set(J.value.map((r) => r.text))].length) : e, t = Math.floor((y.value.end - y.value.start) / s);
319
+ } = l.value.chart.grid.labels.xAxisLabels, s = J.value.length ? Math.min(e, [...new Set(J.value.map((r) => r.text))].length) : e, t = Math.floor((m.value.end - m.value.start) / s);
320
320
  return J.value.map((r, o) => {
321
321
  if (!r) return null;
322
- const B = a && b.value <= s, F = !c && !a, E = c && !a && (o === 0 || o === J.value.length - 1), L = c && !a && p.value === o, C = !c && a && o % t === 0;
323
- if (!(B || F || E || L || C))
322
+ const N = a && y.value <= s, F = !c && !a, E = c && !a && (o === 0 || o === J.value.length - 1), L = c && !a && p.value === o, C = !c && a && o % t === 0;
323
+ if (!(N || F || E || L || C))
324
324
  return null;
325
- const Y = n.value.width / b.value, w = n.value.left + Y * o + Y / 2, N = l.value.chart.grid.labels.xAxis.crosshairSize, A = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, K = A ? ie.value - (ie.value === n.value.bottom ? 0 : N / 2) : n.value.bottom, oe = A ? ie.value + N / (ie.value === n.value.bottom ? 1 : 2) : n.value.bottom + N;
326
- return `M${w},${K} L${w},${oe}`;
325
+ const Y = n.value.width / y.value, S = n.value.left + Y * o + Y / 2, V = l.value.chart.grid.labels.xAxis.crosshairSize, A = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, K = A ? ie.value - (ie.value === n.value.bottom ? 0 : V / 2) : n.value.bottom, oe = A ? ie.value + V / (ie.value === n.value.bottom ? 1 : 2) : n.value.bottom + V;
326
+ return `M${S},${K} L${S},${oe}`;
327
327
  }).filter((r) => r !== null).join(" ");
328
328
  });
329
329
  function ga() {
330
- return !!st?.vnode.props?.onSelectTimeLabel;
330
+ return !!rt?.vnode.props?.onSelectTimeLabel;
331
331
  }
332
- function xt(a, c, e) {
333
- if (!kl.value) {
332
+ function mt(a, c, e) {
333
+ if (!_l.value) {
334
334
  const s = document.createElement("canvas");
335
- kl.value = s.getContext("2d");
335
+ _l.value = s.getContext("2d");
336
336
  }
337
- return kl.value.font = `normal ${a}px sans-serif`, kl.value;
337
+ return _l.value.font = `normal ${a}px sans-serif`, _l.value;
338
338
  }
339
339
  function xa() {
340
340
  const a = je.value.querySelectorAll(".vue-ui-xy-tag");
341
341
  a.length && Array.from(a).forEach((c) => c.style.opacity = "0");
342
342
  }
343
- function Sl(a, c, e, s, t) {
343
+ function $l(a, c, e, s, t) {
344
344
  e && (Ce.value[`${a}_${c}_${s}_${t}`] = e);
345
345
  }
346
- const Ul = S(!1);
346
+ const ba = w(!1);
347
347
  async function ma(a = !1) {
348
- await jl(), Ul.value = a, na.value && (pl.value = a);
348
+ await jl(), ba.value = a, na.value && (kl.value = a);
349
349
  }
350
350
  function Zl() {
351
- yl.value = !yl.value;
351
+ nl.value = !nl.value;
352
352
  }
353
353
  const J = $(() => {
354
354
  const a = Math.max(...pe.value.map((c) => Ye({ data: c.series, threshold: l.value.downsample.threshold }).length));
355
- return to({
355
+ return ro({
356
356
  values: l.value.chart.grid.labels.xAxisLabels.values,
357
357
  maxDatapoints: a,
358
358
  formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
359
- start: y.value.start,
360
- end: y.value.end
359
+ start: m.value.start,
360
+ end: m.value.end
361
361
  });
362
- }), $l = $(() => {
362
+ }), Ll = $(() => {
363
363
  const a = l.value.chart.grid.labels.xAxisLabels.modulo;
364
364
  return J.value.length ? Math.min(a, [...new Set(J.value.map((c) => c.text))].length) : a;
365
365
  });
366
- function ba(a, c) {
367
- const e = fe.value.map((s) => ({
366
+ function ya(a, c) {
367
+ const e = ge.value.map((s) => ({
368
368
  shape: s.shape || null,
369
369
  name: s.name,
370
370
  color: s.color,
@@ -374,29 +374,29 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
374
374
  prefix: s.prefix || l.value.chart.labels.prefix,
375
375
  suffix: s.suffix || l.value.chart.labels.suffix
376
376
  }));
377
- Ol("selectTimeLabel", {
377
+ Nl("selectTimeLabel", {
378
378
  datapoint: e,
379
379
  absoluteIndex: a.absoluteIndex,
380
380
  label: a.text
381
381
  });
382
382
  }
383
- const b = $(() => y.value.end - y.value.start);
384
- function mt(a) {
383
+ const y = $(() => m.value.end - m.value.start);
384
+ function yt(a) {
385
385
  O.value = a;
386
386
  }
387
- function ya() {
387
+ function pa() {
388
388
  f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
389
389
  }
390
390
  function Jl(a) {
391
- hl.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`));
391
+ gl.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`));
392
392
  }
393
- function bt(a, c) {
393
+ function pt(a, c) {
394
394
  let e = Array(Math.abs(a)).fill(0);
395
395
  for (let s = 0; s < c.length && s < a; s += 1)
396
396
  e[s] = c[s];
397
397
  return e;
398
398
  }
399
- function yt(a) {
399
+ function kt(a) {
400
400
  const c = Math.max(...pe.value.map((e) => Ye({ data: e.series, threshold: l.value.downsample.threshold }).length));
401
401
  return a > c ? c : 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;
402
402
  }
@@ -410,60 +410,72 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
410
410
  }).length
411
411
  )
412
412
  );
413
- (a != null || c != null) && e ? (a != null && e.setStartValue(a), c != null && e.setEndValue(yt(c + 1))) : (y.value = { start: 0, end: s }, Bl.value += 1);
413
+ (a != null || c != null) && e ? (a != null && e.setStartValue(a), c != null && e.setEndValue(kt(c + 1))) : (m.value = { start: 0, end: s }, Yl.value += 1);
414
414
  }
415
- function pt() {
415
+ function _t() {
416
416
  Kl();
417
417
  }
418
- function ge(a) {
418
+ function xe(a) {
419
419
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
420
420
  }
421
- const pa = $(() => ke.value.max + cl.value);
421
+ const ka = $(() => ke.value.max + vl.value);
422
422
  function Ge(a) {
423
- return a / (ge(pa.value) ? pa.value : 1);
423
+ return a / (xe(ka.value) ? ka.value : 1);
424
424
  }
425
- const ie = $(() => isNaN(Ge(cl.value)) ? n.value.bottom : n.value.bottom - n.value.height * Ge(cl.value));
426
- function ka(a) {
427
- const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Dl.value >= 0 ? n.value.bottom : ie.value;
425
+ const ie = $(() => isNaN(Ge(vl.value)) ? n.value.bottom : n.value.bottom - n.value.height * Ge(vl.value));
426
+ function _a(a) {
427
+ const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && ql.value >= 0 ? n.value.bottom : ie.value;
428
428
  return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ie.value <= 0 ? 1e-5 : a.y - ie.value);
429
429
  }
430
- function _a(a) {
430
+ function wa(a) {
431
431
  return a.value >= 0 ? T(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : T(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
432
432
  }
433
433
  const Z = $(() => ({
434
- bar: n.value.width / b.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
435
- plot: n.value.width / b.value,
436
- line: n.value.width / b.value
434
+ bar: n.value.width / y.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
435
+ plot: n.value.width / y.value,
436
+ line: n.value.width / y.value
437
437
  }));
438
438
  function _e() {
439
- return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / b.value * 0.1 : Z.value.bar;
439
+ return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / y.value * 0.1 : Z.value.bar;
440
440
  }
441
- function Ll(a) {
442
- return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / b.value * 0.05 : a.x + Z.value.bar / 2;
441
+ function Al(a) {
442
+ return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / y.value * 0.05 : a.x + Z.value.bar / 2;
443
443
  }
444
- function wa(a) {
444
+ function Sa(a) {
445
445
  return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ie.value) ? n.bottom.value : ie.value;
446
446
  }
447
- function Sa(a) {
447
+ function $a(a) {
448
448
  return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
449
449
  }
450
- function kt(a) {
451
- const c = fe.value.map((e) => ({
450
+ const dl = w(null);
451
+ function wt(a) {
452
+ if (nl.value) return;
453
+ const c = de.value.getBoundingClientRect(), s = de.value.viewBox.baseVal.width / c.width, r = (a.clientX - c.left) * s - n.value.left, o = n.value.width / y.value, N = Math.floor(r / o);
454
+ N >= 0 && N < y.value ? dl.value !== N && (dl.value = N, Na(!0, N)) : La();
455
+ }
456
+ function La() {
457
+ dl.value = null, Na(!1, null);
458
+ }
459
+ function St() {
460
+ dl.value != null && $t(dl.value);
461
+ }
462
+ function $t(a) {
463
+ const c = ge.value.map((e) => ({
452
464
  name: e.name,
453
465
  value: [null, void 0, NaN].includes(e.absoluteValues[a]) ? null : e.absoluteValues[a],
454
466
  color: e.color,
455
467
  type: e.type
456
468
  }));
457
- Ol(
469
+ Nl(
458
470
  "selectX",
459
471
  {
460
472
  dataset: c,
461
473
  index: a,
462
474
  indexLabel: l.value.chart.grid.labels.xAxisLabels.values[a]
463
475
  }
464
- ), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: c, seriesIndex: a + y.value.start });
476
+ ), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: c, seriesIndex: a + m.value.start });
465
477
  }
466
- function _t() {
478
+ function Lt() {
467
479
  return Te.value.map((a) => ({
468
480
  values: a.absoluteValues,
469
481
  color: a.color,
@@ -471,9 +483,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
471
483
  type: a.type
472
484
  }));
473
485
  }
474
- async function wt({ scale: a = 2 } = {}) {
486
+ async function At({ scale: a = 2 } = {}) {
475
487
  if (!je.value) return;
476
- const { width: c, height: e } = je.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: r } = await ro({ domElement: je.value, base64: !0, img: !0, scale: a });
488
+ const { width: c, height: e } = je.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: r } = await vo({ domElement: je.value, base64: !0, img: !0, scale: a });
477
489
  return {
478
490
  imageUri: t,
479
491
  base64: r,
@@ -483,26 +495,26 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
483
495
  aspectRatio: s
484
496
  };
485
497
  }
486
- function $a(a) {
498
+ function Aa(a) {
487
499
  if (te.value.includes(a.id))
488
500
  te.value = te.value.filter((c) => c !== a.id);
489
501
  else {
490
502
  if (te.value.length + 1 === Ie.value.length) return;
491
503
  te.value.push(a.id);
492
504
  }
493
- Ol("selectLegend", fe.value.map((c) => ({
505
+ Nl("selectLegend", ge.value.map((c) => ({
494
506
  name: c.name,
495
507
  values: c.absoluteValues,
496
508
  color: c.color,
497
509
  type: c.type
498
- }))), Yl.value += 1;
510
+ }))), Fl.value += 1;
499
511
  }
500
- const St = $(() => {
512
+ const Mt = $(() => {
501
513
  const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
502
514
  return `${a}. ${c}`;
503
- }), La = $(() => ({
504
- linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
505
- })), $t = $(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Lt = $(() => {
515
+ }), Ma = $(() => ({
516
+ linePlot: y.value > l.value.line.dot.hideAboveMaxSerieLength
517
+ })), zt = $(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Ct = $(() => {
506
518
  if (Array.isArray(l.value.chart.highlightArea))
507
519
  return l.value.chart.highlightArea.map((c) => {
508
520
  const e = Math.min(c.to, Ve.value - 1);
@@ -516,22 +528,22 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
516
528
  to: Math.min(l.value.chart.highlightArea.to, Ve.value - 1)
517
529
  };
518
530
  return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
519
- }), At = $(() => oa.value ? pe.value.map((a, c) => ({
531
+ }), It = $(() => oa.value ? pe.value.map((a, c) => ({
520
532
  ...a,
521
533
  series: Ye({
522
534
  data: a.series,
523
535
  threshold: l.value.downsample.threshold
524
536
  }),
525
537
  id: `uniqueId_${c}`
526
- })) : pe.value), Mt = $(() => fe.value.map((a) => {
538
+ })) : pe.value), Tt = $(() => ge.value.map((a) => {
527
539
  const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
528
540
  return {
529
541
  id: a.id,
530
542
  name: a.name,
531
543
  color: a.color,
532
- values: bt(b.value, c)
544
+ values: pt(y.value, c)
533
545
  };
534
- })), zt = $(() => ({
546
+ })), Ot = $(() => ({
535
547
  responsiveBreakpoint: l.value.table.responsiveBreakpoint,
536
548
  roundingValues: l.value.table.rounding,
537
549
  showAverage: !1,
@@ -554,7 +566,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
554
566
  userOptions: {
555
567
  show: !1
556
568
  }
557
- })), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value / 2), De = $(() => qt(Te.value.filter((a) => !te.value.includes(a.id)))), _ = $(() => {
569
+ })), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / y.value / 2), De = $(() => Kt(Te.value.filter((a) => !te.value.includes(a.id)))), _ = $(() => {
558
570
  const a = Object.groupBy(De.value, (e) => e.scaleLabel), c = {};
559
571
  for (const [e, s] of Object.entries(a)) {
560
572
  const t = s.flatMap((r) => r.absoluteValues);
@@ -565,17 +577,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
565
577
  };
566
578
  }
567
579
  return c;
568
- }), Ct = $(() => {
580
+ }), Nt = $(() => {
569
581
  const a = Ie.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
570
- return n.value.width / b.value / a - Oe.value * a;
571
- }), Oe = $(() => Z.value.line * l.value.bar.periodGap), It = $(() => {
582
+ return n.value.width / y.value / a - Oe.value * a;
583
+ }), Oe = $(() => Z.value.line * l.value.bar.periodGap), Vt = $(() => {
572
584
  if (!l.value.chart.zoom.minimap.show) return [];
573
- const a = At.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
585
+ const a = It.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
574
586
  for (let t = 0; t < c; t += 1)
575
587
  e.push(a.map((r) => r.series[t] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
576
588
  const s = Math.min(...e);
577
589
  return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
578
- }), vl = $(() => fe.value.map((a) => ({
590
+ }), hl = $(() => ge.value.map((a) => ({
579
591
  slotAbsoluteIndex: a.slotAbsoluteIndex,
580
592
  shape: a.shape || null,
581
593
  name: a.name,
@@ -585,12 +597,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
585
597
  comments: a.comments || [],
586
598
  prefix: a.prefix || l.value.chart.labels.prefix,
587
599
  suffix: a.suffix || l.value.chart.labels.suffix
588
- }))), Aa = $(() => ke.value.ticks.map((a) => ({
600
+ }))), za = $(() => ke.value.ticks.map((a) => ({
589
601
  y: a >= 0 ? ie.value - n.value.height * Ge(a) : ie.value + n.value.height * Ge(Math.abs(a)),
590
602
  value: a,
591
603
  prefix: l.value.chart.labels.prefix,
592
604
  suffix: l.value.chart.labels.suffix
593
- }))), Ma = $(() => {
605
+ }))), Ca = $(() => {
594
606
  const a = l.value.chart.annotations;
595
607
  if (!a || !Array.isArray(a) || a.every((L) => !L.show)) return [];
596
608
  const c = a.filter(
@@ -602,104 +614,104 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
602
614
  return t - C * r;
603
615
  };
604
616
  return c.map((L) => {
605
- const { yAxis: { yTop: C, yBottom: Y, label: w } } = L, N = C != null && Y != null && C !== Y, A = C == null ? null : E(C), K = Y == null ? null : E(Y), oe = xt(w.fontSize);
606
- oe.font = `${w.fontSize}px sans-serif`;
607
- const D = oe.measureText(w.text).width, xe = w.fontSize, Ae = (w.position === "start" ? e + w.padding.left : s - w.padding.right) + w.offsetX, de = (A != null && K != null ? Math.min(A, K) : A ?? K) - w.fontSize / 3 + w.offsetY - w.padding.top;
608
- let P;
609
- w.textAnchor === "middle" ? P = Ae - D / 2 - w.padding.left : w.textAnchor === "end" ? P = Ae - D - w.padding.right : P = Ae - w.padding.left;
610
- const H = de - xe * 0.75 - w.padding.top;
617
+ const { yAxis: { yTop: C, yBottom: Y, label: S } } = L, V = C != null && Y != null && C !== Y, A = C == null ? null : E(C), K = Y == null ? null : E(Y), oe = mt(S.fontSize);
618
+ oe.font = `${S.fontSize}px sans-serif`;
619
+ const D = oe.measureText(S.text).width, be = S.fontSize, Ae = (S.position === "start" ? e + S.padding.left : s - S.padding.right) + S.offsetX, he = (A != null && K != null ? Math.min(A, K) : A ?? K) - S.fontSize / 3 + S.offsetY - S.padding.top;
620
+ let H;
621
+ S.textAnchor === "middle" ? H = Ae - D / 2 - S.padding.left : S.textAnchor === "end" ? H = Ae - D - S.padding.right : H = Ae - S.padding.left;
622
+ const R = he - be * 0.75 - S.padding.top;
611
623
  return {
612
- show: ![A, K, H].includes(NaN),
624
+ show: ![A, K, R].includes(NaN),
613
625
  id: `annotation_y_${ea()}`,
614
- hasArea: N,
615
- areaHeight: N ? Math.abs(A - K) : 0,
626
+ hasArea: V,
627
+ areaHeight: V ? Math.abs(A - K) : 0,
616
628
  yTop: A,
617
629
  yBottom: K,
618
630
  config: L.yAxis,
619
631
  x1: e,
620
632
  x2: s,
621
- _text: { x: Ae, y: de },
633
+ _text: { x: Ae, y: he },
622
634
  _box: {
623
- x: P,
624
- y: H,
625
- width: D + w.padding.left + w.padding.right,
626
- height: xe + w.padding.top + w.padding.bottom,
627
- fill: w.backgroundColor,
628
- stroke: w.border.stroke,
629
- rx: w.border.rx,
630
- ry: w.border.ry,
631
- strokeWidth: w.border.strokeWidth
635
+ x: H,
636
+ y: R,
637
+ width: D + S.padding.left + S.padding.right,
638
+ height: be + S.padding.top + S.padding.bottom,
639
+ fill: S.backgroundColor,
640
+ stroke: S.border.stroke,
641
+ rx: S.border.rx,
642
+ ry: S.border.ry,
643
+ strokeWidth: S.border.strokeWidth
632
644
  }
633
645
  };
634
646
  });
635
647
  }), Pe = $(() => {
636
648
  const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
637
- return a.filter((o) => o.type === "bar").map((o, B) => {
649
+ return a.filter((o) => o.type === "bar").map((o, N) => {
638
650
  Jl(o);
639
651
  const F = _.value[o.scaleLabel].min, E = _.value[o.scaleLabel].max;
640
- o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (E - F));
652
+ o.absoluteValues.filter((P) => ![null, void 0].includes(P)).map((P) => (P - F) / (E - F));
641
653
  const L = {
642
654
  valueMin: F,
643
655
  valueMax: E < 0 ? 0 : E
644
656
  }, C = {
645
657
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
646
- min: o.scaleMin || Math.min(...o.absoluteValues.filter((V) => ![void 0, null].includes(V))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((V) => ![null, void 0].includes(V)))
647
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * w : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * w : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * w : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * w : L.valueMax, Y), K = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + K, xe = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - P - H * K / D, he = n.value.bottom - P - H * oe / xe, ne = Te.value.filter((V) => V.type === "bar").filter((V) => !te.value.includes(V.id)).length, fl = o.series.map((V, ee) => {
648
- const Re = f.value.useIndividualScale ? (o.absoluteValues[ee] + K) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left + Z.value.bar * B + Z.value.bar * ee * ne - Ct.value / 2 - B * Oe.value;
658
+ min: o.scaleMin || Math.min(...o.absoluteValues.filter((P) => ![void 0, null].includes(P))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((P) => ![null, void 0].includes(P)))
659
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? yl(C.min, C.max === C.min ? C.max * S : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * S : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? yl(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * S : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * S : L.valueMax, Y), K = V.min >= 0 ? 0 : Math.abs(V.min), oe = 0, D = V.max + K, be = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, he = s ? 1 - o.cumulatedStackRatio : 0, H = s ? r * he + e * tl : 0, R = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - H - R * K / D, fe = n.value.bottom - H - R * oe / be, ne = Te.value.filter((P) => P.type === "bar").filter((P) => !te.value.includes(P.id)).length, xl = o.series.map((P, ee) => {
660
+ const Re = f.value.useIndividualScale ? (o.absoluteValues[ee] + K) / D : Ge(P), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / y.value * ee : n.value.left + Z.value.bar * N + Z.value.bar * ee * ne - Nt.value / 2 - N * Oe.value;
649
661
  return {
650
- yOffset: T(P),
651
- individualHeight: T(H),
662
+ yOffset: T(H),
663
+ individualHeight: T(R),
652
664
  x: T(qe),
653
- y: n.value.bottom - P - H * Re,
665
+ y: n.value.bottom - H - R * Re,
654
666
  value: o.absoluteValues[ee],
655
667
  zeroPosition: T(Q),
656
668
  individualMax: T(D),
657
- comment: o.comments && o.comments.slice(y.value.start, y.value.end)[ee] || ""
669
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[ee] || ""
658
670
  };
659
- }), ce = o.absoluteValues.map((V) => A.min >= 0 ? (V - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (V + Math.abs(A.min)) / (A.max + Math.abs(A.min))), He = o.series.map((V, ee) => {
660
- const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left - Z.value.bar / 2 + Z.value.bar * B + Z.value.bar * ee * Te.value.filter((qe) => qe.type === "bar").filter((qe) => !te.value.includes(qe.id)).length;
671
+ }), ce = o.absoluteValues.map((P) => A.min >= 0 ? (P - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (P + Math.abs(A.min)) / (A.max + Math.abs(A.min))), He = o.series.map((P, ee) => {
672
+ const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / y.value * ee : n.value.left - Z.value.bar / 2 + Z.value.bar * N + Z.value.bar * ee * Te.value.filter((qe) => qe.type === "bar").filter((qe) => !te.value.includes(qe.id)).length;
661
673
  return {
662
- yOffset: T(P),
663
- individualHeight: T(H),
674
+ yOffset: T(H),
675
+ individualHeight: T(R),
664
676
  x: T(Re),
665
- y: T(n.value.bottom - T(P) - (T(H) * ce[ee] || 0)),
677
+ y: T(n.value.bottom - T(H) - (T(R) * ce[ee] || 0)),
666
678
  value: o.absoluteValues[ee],
667
679
  zeroPosition: T(Q),
668
680
  individualMax: T(D),
669
- comment: o.comments && o.comments.slice(y.value.start, y.value.end)[ee] || ""
681
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[ee] || ""
670
682
  };
671
- }), W = N.ticks.map((V) => ({
672
- y: V >= 0 ? Q - H * (V / D) : Q + H * Math.abs(V) / D,
673
- value: V,
683
+ }), X = V.ticks.map((P) => ({
684
+ y: P >= 0 ? Q - R * (P / D) : Q + R * Math.abs(P) / D,
685
+ value: P,
674
686
  prefix: o.prefix || l.value.chart.labels.prefix,
675
687
  suffix: o.suffix || l.value.chart.labels.suffix,
676
688
  datapoint: o
677
- })), j = A.ticks.map((V) => {
678
- const ee = (V - A.min) / (A.max - A.min);
689
+ })), j = A.ticks.map((P) => {
690
+ const ee = (P - A.min) / (A.max - A.min);
679
691
  return {
680
- y: V >= 0 ? he - H * ee : he + H * ee,
681
- value: V,
692
+ y: P >= 0 ? fe - R * ee : fe + R * ee,
693
+ value: P,
682
694
  prefix: o.prefix || l.value.chart.labels.prefix,
683
695
  suffix: o.suffix || l.value.chart.labels.suffix,
684
696
  datapoint: o
685
697
  };
686
698
  });
687
- return _.value[o.scaleLabel].name = o.name, _.value[o.scaleLabel].groupName = o.scaleLabel, _.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, _.value[o.scaleLabel].color = o.color, _.value[o.scaleLabel].scaleYLabels = o.autoScaling ? j : W, _.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : Q, _.value[o.scaleLabel].individualMax = o.autoScaling ? xe : D, _.value[o.scaleLabel].scaleLabel = o.scaleLabel, _.value[o.scaleLabel].id = o.id, _.value[o.scaleLabel].yOffset = P, _.value[o.scaleLabel].individualHeight = H, _.value[o.scaleLabel].autoScaleYLabels = j, _.value[o.scaleLabel].unique = De.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
699
+ return _.value[o.scaleLabel].name = o.name, _.value[o.scaleLabel].groupName = o.scaleLabel, _.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, _.value[o.scaleLabel].color = o.color, _.value[o.scaleLabel].scaleYLabels = o.autoScaling ? j : X, _.value[o.scaleLabel].zeroPosition = o.autoScaling ? fe : Q, _.value[o.scaleLabel].individualMax = o.autoScaling ? be : D, _.value[o.scaleLabel].scaleLabel = o.scaleLabel, _.value[o.scaleLabel].id = o.id, _.value[o.scaleLabel].yOffset = H, _.value[o.scaleLabel].individualHeight = R, _.value[o.scaleLabel].autoScaleYLabels = j, _.value[o.scaleLabel].unique = De.value.filter((P) => P.scaleLabel === o.scaleLabel).length === 1, {
688
700
  ...o,
689
- yOffset: P,
701
+ yOffset: H,
690
702
  autoScaleYLabels: j,
691
- individualHeight: H,
692
- scaleYLabels: o.autoScaling ? j : W,
693
- individualScale: o.autoScaling ? A : N,
694
- individualMax: o.autoScaling ? xe : D,
695
- zeroPosition: o.autoScaling ? he : Q,
696
- plots: o.autoScaling ? He : fl,
703
+ individualHeight: R,
704
+ scaleYLabels: o.autoScaling ? j : X,
705
+ individualScale: o.autoScaling ? A : V,
706
+ individualMax: o.autoScaling ? be : D,
707
+ zeroPosition: o.autoScaling ? fe : Q,
708
+ plots: o.autoScaling ? He : xl,
697
709
  groupId: _.value[o.scaleLabel].groupId
698
710
  };
699
711
  });
700
712
  }), we = $(() => {
701
713
  const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
702
- return a.filter((o) => o.type === "line").map((o, B) => {
714
+ return a.filter((o) => o.type === "line").map((o, N) => {
703
715
  Jl(o);
704
716
  const F = _.value[o.scaleLabel].min, E = _.value[o.scaleLabel].max;
705
717
  o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (E - F));
@@ -709,26 +721,26 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
709
721
  }, C = {
710
722
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
711
723
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
712
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * w : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * w : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * w : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * w : L.valueMax, Y), K = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + Math.abs(K), xe = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - P - H * K / D, he = n.value.bottom - P - H * oe / xe, ne = o.series.map((I, se) => {
713
- const Ot = f.value.useIndividualScale ? (o.absoluteValues[se] + Math.abs(K)) / D : Ge(I);
724
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? yl(C.min, C.max === C.min ? C.max * S : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * S : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? yl(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * S : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * S : L.valueMax, Y), K = V.min >= 0 ? 0 : Math.abs(V.min), oe = 0, D = V.max + Math.abs(K), be = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, he = s ? 1 - o.cumulatedStackRatio : 0, H = s ? r * he + e * tl : 0, R = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - H - R * K / D, fe = n.value.bottom - H - R * oe / be, ne = o.series.map((I, se) => {
725
+ const Ht = f.value.useIndividualScale ? (o.absoluteValues[se] + Math.abs(K)) / D : Ge(I);
714
726
  return {
715
727
  x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
716
- y: T(n.value.bottom - P - H * Ot),
728
+ y: T(n.value.bottom - H - R * Ht),
717
729
  value: o.absoluteValues[se],
718
- comment: o.comments && o.comments.slice(y.value.start, y.value.end)[se] || ""
730
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[se] || ""
719
731
  };
720
- }), fl = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), ce = o.series.map((I, se) => [void 0, null].includes(o.absoluteValues[se]) ? {
732
+ }), xl = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), ce = o.series.map((I, se) => [void 0, null].includes(o.absoluteValues[se]) ? {
721
733
  x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
722
734
  y: Q,
723
735
  value: o.absoluteValues[se],
724
- comment: o.comments && o.comments.slice(y.value.start, y.value.end)[se] || ""
736
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[se] || ""
725
737
  } : {
726
738
  x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
727
- y: T(n.value.bottom - P - (H * fl[se] || 0)),
739
+ y: T(n.value.bottom - H - (R * xl[se] || 0)),
728
740
  value: o.absoluteValues[se],
729
- comment: o.comments && o.comments.slice(y.value.start, y.value.end)[se] || ""
730
- }), He = l.value.line.cutNullValues ? Fa(ne) : Ea(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Fa(ce) : Ea(ce.filter((I) => I.value !== null)), j = l.value.line.cutNullValues ? Wa(ne) : Xa(ne.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Wa(ce) : Xa(ce.filter((I) => I.value !== null)), ee = N.ticks.map((I) => ({
731
- y: I >= 0 ? Q - H * (I / D) : Q + H * Math.abs(I) / D,
741
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[se] || ""
742
+ }), He = l.value.line.cutNullValues ? Xa(ne) : Wa(ne.filter((I) => I.value !== null)), X = l.value.line.cutNullValues ? Xa(ce) : Wa(ce.filter((I) => I.value !== null)), j = l.value.line.cutNullValues ? Ga(ne) : Da(ne.filter((I) => I.value !== null)), P = l.value.line.cutNullValues ? Ga(ce) : Da(ce.filter((I) => I.value !== null)), ee = V.ticks.map((I) => ({
743
+ y: I >= 0 ? Q - R * (I / D) : Q + R * Math.abs(I) / D,
732
744
  value: I,
733
745
  prefix: o.prefix || l.value.chart.labels.prefix,
734
746
  suffix: o.suffix || l.value.chart.labels.suffix,
@@ -736,39 +748,39 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
736
748
  })), Re = A.ticks.map((I) => {
737
749
  const se = (I - A.min) / (A.max - A.min);
738
750
  return {
739
- y: I >= 0 ? he - H * se : he + H * se,
751
+ y: I >= 0 ? fe - R * se : fe + R * se,
740
752
  value: I,
741
753
  prefix: o.prefix || l.value.chart.labels.prefix,
742
754
  suffix: o.suffix || l.value.chart.labels.suffix,
743
755
  datapoint: o
744
756
  };
745
757
  });
746
- _.value[o.scaleLabel].name = o.name, _.value[o.scaleLabel].groupName = o.scaleLabel, _.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, _.value[o.scaleLabel].color = o.color, _.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Re : ee, _.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : Q, _.value[o.scaleLabel].individualMax = o.autoScaling ? xe : D, _.value[o.scaleLabel].scaleLabel = o.scaleLabel, _.value[o.scaleLabel].id = o.id, _.value[o.scaleLabel].yOffset = P, _.value[o.scaleLabel].individualHeight = H, _.value[o.scaleLabel].autoScaleYLabels = Re, _.value[o.scaleLabel].unique = De.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
747
- const qe = f.value.useIndividualScale ? o.autoScaling ? he : Q : ie.value, gl = Math.max(Math.max(o.autoScaling ? he : ee.at(-1) ? ee.at(-1).y : 0, n.value.top), qe);
758
+ _.value[o.scaleLabel].name = o.name, _.value[o.scaleLabel].groupName = o.scaleLabel, _.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, _.value[o.scaleLabel].color = o.color, _.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Re : ee, _.value[o.scaleLabel].zeroPosition = o.autoScaling ? fe : Q, _.value[o.scaleLabel].individualMax = o.autoScaling ? be : D, _.value[o.scaleLabel].scaleLabel = o.scaleLabel, _.value[o.scaleLabel].id = o.id, _.value[o.scaleLabel].yOffset = H, _.value[o.scaleLabel].individualHeight = R, _.value[o.scaleLabel].autoScaleYLabels = Re, _.value[o.scaleLabel].unique = De.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
759
+ const qe = f.value.useIndividualScale ? o.autoScaling ? fe : Q : ie.value, bl = Math.max(Math.max(o.autoScaling ? fe : ee.at(-1) ? ee.at(-1).y : 0, n.value.top), qe);
748
760
  return {
749
761
  ...o,
750
- yOffset: P,
762
+ yOffset: H,
751
763
  autoScaleYLabels: Re,
752
- individualHeight: H,
764
+ individualHeight: R,
753
765
  scaleYLabels: o.autoScaling ? Re : ee,
754
- individualScale: o.autoScaling ? A : N,
755
- individualMax: o.autoScaling ? xe : D,
756
- zeroPosition: o.autoScaling ? he : Q,
757
- curve: o.autoScaling ? W : He,
766
+ individualScale: o.autoScaling ? A : V,
767
+ individualMax: o.autoScaling ? be : D,
768
+ zeroPosition: o.autoScaling ? fe : Q,
769
+ curve: o.autoScaling ? X : He,
758
770
  plots: o.autoScaling ? ce : ne,
759
- area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Ga(
771
+ area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? qa(
760
772
  o.autoScaling ? ce : ne,
761
- gl
762
- ) : Da(
773
+ bl
774
+ ) : Ua(
763
775
  o.autoScaling ? ce.filter((I) => I.value !== null) : ne.filter((I) => I.value !== null),
764
- gl
765
- ) : l.value.line.cutNullValues ? Ga(ne, gl) : Da(ne.filter((I) => I.value !== null), gl) : "",
766
- curveAreas: o.useArea ? Ut(
776
+ bl
777
+ ) : l.value.line.cutNullValues ? qa(ne, bl) : Ua(ne.filter((I) => I.value !== null), bl) : "",
778
+ curveAreas: o.useArea ? Qt(
767
779
  o.autoScaling ? l.value.line.cutNullValues ? ce : ce.filter((I) => I.value !== null) : l.value.line.cutNullValues ? ne : ne.filter((I) => I.value !== null),
768
- gl,
780
+ bl,
769
781
  l.value.line.cutNullValues
770
782
  ) : [],
771
- straight: o.autoScaling ? V : j,
783
+ straight: o.autoScaling ? P : j,
772
784
  groupId: _.value[o.scaleLabel].groupId
773
785
  };
774
786
  });
@@ -776,57 +788,57 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
776
788
  const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
777
789
  return a.filter((o) => o.type === "plot").map((o) => {
778
790
  Jl(o);
779
- const B = _.value[o.scaleLabel].min, F = _.value[o.scaleLabel].max;
780
- o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - B) / (F - B));
791
+ const N = _.value[o.scaleLabel].min, F = _.value[o.scaleLabel].max;
792
+ o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - N) / (F - N));
781
793
  const E = {
782
- valueMin: B,
794
+ valueMin: N,
783
795
  valueMax: F
784
796
  }, L = {
785
797
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
786
798
  min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
787
- }, C = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, w = Ke(L.min, L.max === L.min ? L.max * Y : L.max, C), N = Ke(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Y : E.valueMax, C), A = w.min >= 0 ? 0 : Math.abs(w.min), K = 0, oe = w.max + A, D = N.max + Math.abs(K), xe = o.stackIndex, Ae = c - 1 - xe, tl = s ? 1 - o.cumulatedStackRatio : 0, de = s ? r * tl + e * Ae : 0, P = s ? r * o.stackRatio : n.value.height, H = n.value.bottom - de - P * A / oe, Q = n.value.bottom - de - P * K / D, he = o.series.map((W, j) => {
788
- const V = f.value.useIndividualScale ? (o.absoluteValues[j] + Math.abs(A)) / oe : Ge(W);
799
+ }, C = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, S = Ke(L.min, L.max === L.min ? L.max * Y : L.max, C), V = Ke(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Y : E.valueMax, C), A = S.min >= 0 ? 0 : Math.abs(S.min), K = 0, oe = S.max + A, D = V.max + Math.abs(K), be = o.stackIndex, Ae = c - 1 - be, tl = s ? 1 - o.cumulatedStackRatio : 0, he = s ? r * tl + e * Ae : 0, H = s ? r * o.stackRatio : n.value.height, R = n.value.bottom - he - H * A / oe, Q = n.value.bottom - he - H * K / D, fe = o.series.map((X, j) => {
800
+ const P = f.value.useIndividualScale ? (o.absoluteValues[j] + Math.abs(A)) / oe : Ge(X);
789
801
  return {
790
802
  x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * j),
791
- y: T(n.value.bottom - de - P * V),
803
+ y: T(n.value.bottom - he - H * P),
792
804
  value: o.absoluteValues[j],
793
- comment: o.comments && o.comments.slice(y.value.start, y.value.end)[j] || ""
805
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
794
806
  };
795
- }), ne = o.absoluteValues.map((W) => N.min >= 0 ? (W - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (W + Math.abs(N.min)) / (N.max + Math.abs(N.min))), fl = o.series.map((W, j) => ({
807
+ }), ne = o.absoluteValues.map((X) => V.min >= 0 ? (X - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (X + Math.abs(V.min)) / (V.max + Math.abs(V.min))), xl = o.series.map((X, j) => ({
796
808
  x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * j),
797
- y: T(n.value.bottom - de - (P * ne[j] || 0)),
809
+ y: T(n.value.bottom - he - (H * ne[j] || 0)),
798
810
  value: o.absoluteValues[j],
799
- comment: o.comments && o.comments.slice(y.value.start, y.value.end)[j] || ""
800
- })), ce = w.ticks.map((W) => ({
801
- y: W >= 0 ? H - P * (W / oe) : H + P * Math.abs(W) / oe,
802
- value: W,
811
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
812
+ })), ce = S.ticks.map((X) => ({
813
+ y: X >= 0 ? R - H * (X / oe) : R + H * Math.abs(X) / oe,
814
+ value: X,
803
815
  prefix: o.prefix || l.value.chart.labels.prefix,
804
816
  suffix: o.suffix || l.value.chart.labels.suffix,
805
817
  datapoint: o
806
- })), He = N.ticks.map((W) => {
807
- const j = (W - N.min) / (N.max - N.min);
818
+ })), He = V.ticks.map((X) => {
819
+ const j = (X - V.min) / (V.max - V.min);
808
820
  return {
809
- y: W >= 0 ? Q - P * j : Q + P * j,
810
- value: W,
821
+ y: X >= 0 ? Q - H * j : Q + H * j,
822
+ value: X,
811
823
  prefix: o.prefix || l.value.chart.labels.prefix,
812
824
  suffix: o.suffix || l.value.chart.labels.suffix,
813
825
  datapoint: o
814
826
  };
815
827
  });
816
- return _.value[o.scaleLabel].name = o.name, _.value[o.scaleLabel].groupName = o.scaleLabel, _.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, _.value[o.scaleLabel].color = o.color, _.value[o.scaleLabel].scaleYLabels = o.autoScaling ? He : ce, _.value[o.scaleLabel].zeroPosition = o.autoScaling ? Q : H, _.value[o.scaleLabel].individualMax = o.autoScaling ? D : oe, _.value[o.scaleLabel].scaleLabel = o.scaleLabel, _.value[o.scaleLabel].id = o.id, _.value[o.scaleLabel].yOffset = de, _.value[o.scaleLabel].individualHeight = P, _.value[o.scaleLabel].autoScaleYLabels = He, _.value[o.scaleLabel].unique = De.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
828
+ return _.value[o.scaleLabel].name = o.name, _.value[o.scaleLabel].groupName = o.scaleLabel, _.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, _.value[o.scaleLabel].color = o.color, _.value[o.scaleLabel].scaleYLabels = o.autoScaling ? He : ce, _.value[o.scaleLabel].zeroPosition = o.autoScaling ? Q : R, _.value[o.scaleLabel].individualMax = o.autoScaling ? D : oe, _.value[o.scaleLabel].scaleLabel = o.scaleLabel, _.value[o.scaleLabel].id = o.id, _.value[o.scaleLabel].yOffset = he, _.value[o.scaleLabel].individualHeight = H, _.value[o.scaleLabel].autoScaleYLabels = He, _.value[o.scaleLabel].unique = De.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
817
829
  ...o,
818
- yOffset: de,
830
+ yOffset: he,
819
831
  autoScaleYLabels: He,
820
- individualHeight: P,
832
+ individualHeight: H,
821
833
  scaleYLabels: o.autoScaling ? He : ce,
822
- individualScale: o.autoScaling ? N : w,
834
+ individualScale: o.autoScaling ? V : S,
823
835
  individualMax: o.autoScaling ? D : oe,
824
- zeroPosition: o.autoScaling ? Q : H,
825
- plots: o.autoScaling ? fl : he,
836
+ zeroPosition: o.autoScaling ? Q : R,
837
+ plots: o.autoScaling ? xl : fe,
826
838
  groupId: _.value[o.scaleLabel].groupId
827
839
  };
828
840
  });
829
- }), dl = $(() => {
841
+ }), fl = $(() => {
830
842
  const a = we.value.map((r) => ({
831
843
  name: r.name,
832
844
  color: r.color,
@@ -864,8 +876,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
864
876
  individualHeight: r.individualHeight || n.value.height
865
877
  })), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(_.value) : [...a, ...c, ...e], t = s.flatMap((r) => r).length;
866
878
  return s.flatMap((r, o) => {
867
- let B = 0;
868
- B = f.value.isStacked ? n.value.left : n.value.left / t * (o + 1);
879
+ let N = 0;
880
+ N = f.value.isStacked ? n.value.left : n.value.left / t * (o + 1);
869
881
  const F = f.value.useIndividualScale && !f.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
870
882
  return {
871
883
  unique: r.unique,
@@ -882,51 +894,51 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
882
894
  scale: r.scale,
883
895
  yOffset: r.yOffset,
884
896
  individualHeight: r.individualHeight,
885
- x: B,
897
+ x: N,
886
898
  yLabels: r.scaleYLabels || r.scale.ticks.map((E) => ({
887
899
  y: E >= 0 ? r.zero - r.individualHeight * (E / r.max) : r.zero + r.individualHeight * Math.abs(E) / r.max,
888
900
  value: E
889
901
  }))
890
902
  };
891
903
  });
892
- }), za = $(() => ({
893
- datapoint: vl.value,
904
+ }), Ia = $(() => ({
905
+ datapoint: hl.value,
894
906
  seriesIndex: p.value,
895
907
  series: Te.value,
896
908
  bars: Pe.value,
897
909
  lines: we.value,
898
910
  plots: Le.value,
899
911
  config: l.value
900
- })), Tt = $(() => {
901
- let a = "", c = vl.value.map((t) => t.value).filter((t) => zl(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
912
+ })), Pt = $(() => {
913
+ let a = "", c = hl.value.map((t) => t.value).filter((t) => Cl(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
902
914
  const e = J.value[p.value], s = l.value.chart.tooltip.customFormat;
903
- return Zt(s) && Jt(() => s({
904
- absoluteIndex: p.value + y.value.start,
915
+ return jt(s) && eo(() => s({
916
+ absoluteIndex: p.value + m.value.start,
905
917
  seriesIndex: p.value,
906
- datapoint: vl.value,
918
+ datapoint: hl.value,
907
919
  series: Te.value,
908
920
  bars: Pe.value,
909
921
  lines: we.value,
910
922
  plots: Le.value,
911
923
  config: l.value
912
924
  })) ? s({
913
- absoluteIndex: p.value + y.value.start,
925
+ absoluteIndex: p.value + m.value.start,
914
926
  seriesIndex: p.value,
915
- datapoint: vl.value,
927
+ datapoint: hl.value,
916
928
  series: Te.value,
917
929
  bars: Pe.value,
918
930
  lines: we.value,
919
931
  plots: Le.value,
920
932
  config: l.value
921
- }) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), vl.value.forEach((t) => {
922
- if (zl(t.value)) {
933
+ }) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), hl.value.forEach((t) => {
934
+ if (Cl(t.value)) {
923
935
  let r = "", o = "";
924
936
  switch (il.value[t.type]) {
925
937
  case "bar":
926
938
  r = `<svg viewBox="0 0 40 40" height="14" width="14">${ta.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="${ta.pattern ? `url(#pattern_${U.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
927
939
  break;
928
940
  case "line":
929
- !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="${ze({ 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="${ze({ 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="${ze({ 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="${ze({ 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="${ze({ 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="${qa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<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>`;
941
+ !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="${ze({ 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="${ze({ 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="${ze({ 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="${ze({ 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="${ze({ 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="${Za({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<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>`;
930
942
  break;
931
943
  case "plot":
932
944
  if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
@@ -934,7 +946,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
934
946
  break;
935
947
  }
936
948
  if (t.shape === "star") {
937
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${qa({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
949
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Za({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
938
950
  break;
939
951
  }
940
952
  if (t.shape === "triangle") {
@@ -972,40 +984,40 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
972
984
  v: T(Math.abs(t.value) / c * 100),
973
985
  s: "%",
974
986
  r: l.value.chart.tooltip.roundingPercentage
975
- })})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(y.value.start, y.value.end)[p.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(y.value.start, y.value.end)[p.value]}</div>`);
987
+ })})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(m.value.start, m.value.end)[p.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)[p.value]}</div>`);
976
988
  }
977
989
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
978
- }), Ca = $(() => {
990
+ }), Ta = $(() => {
979
991
  if (Ie.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
980
- const a = fe.value.map((e) => ({
992
+ const a = ge.value.map((e) => ({
981
993
  label: e.name,
982
994
  color: e.color,
983
995
  type: e.type
984
996
  })), c = [];
985
997
  return J.value.forEach((e, s) => {
986
998
  const t = [e.text];
987
- fe.value.forEach((r) => {
988
- t.push(ge(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
999
+ ge.value.forEach((r) => {
1000
+ t.push(xe(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
989
1001
  }), c.push(t);
990
1002
  }), { head: a, body: c };
991
- }), Al = $(() => {
1003
+ }), Ml = $(() => {
992
1004
  const a = l.value.table.showSum;
993
- let c = [""].concat(fe.value.map((r) => r.name));
1005
+ let c = [""].concat(ge.value.map((r) => r.name));
994
1006
  a && (c = c.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
995
1007
  let e = [];
996
- for (let r = 0; r < b.value; r += 1) {
997
- const o = fe.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, F) => B + F, 0);
1008
+ for (let r = 0; r < y.value; r += 1) {
1009
+ const o = ge.value.map((N) => N.absoluteValues[r] ?? 0).reduce((N, F) => N + F, 0);
998
1010
  e.push(
999
1011
  [
1000
1012
  J.value[r].text ?? "-"
1001
- ].concat(fe.value.map(
1002
- (B) => re(
1003
- B.type === "line" ? l.value.line.labels.formatter : B.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1004
- B.absoluteValues[r] ?? 0,
1013
+ ].concat(ge.value.map(
1014
+ (N) => re(
1015
+ N.type === "line" ? l.value.line.labels.formatter : N.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1016
+ N.absoluteValues[r] ?? 0,
1005
1017
  me({
1006
- p: B.prefix || l.value.chart.labels.prefix,
1007
- v: B.absoluteValues[r] ?? 0,
1008
- s: B.suffix || l.value.chart.labels.suffix,
1018
+ p: N.prefix || l.value.chart.labels.prefix,
1019
+ v: N.absoluteValues[r] ?? 0,
1020
+ s: N.suffix || l.value.chart.labels.suffix,
1009
1021
  r: l.value.table.rounding
1010
1022
  })
1011
1023
  )
@@ -1024,59 +1036,59 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1024
1036
  outline: l.value.table.td.outline
1025
1037
  },
1026
1038
  breakpoint: l.value.table.responsiveBreakpoint
1027
- }, t = [l.value.table.columnNames.period].concat(fe.value.map((r) => r.name)).concat(l.value.table.columnNames.total);
1039
+ }, t = [l.value.table.columnNames.period].concat(ge.value.map((r) => r.name)).concat(l.value.table.columnNames.total);
1028
1040
  return { head: c, body: e, config: s, colNames: t };
1029
1041
  });
1030
- function Ia(a = null) {
1031
- const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...Ca.value.head.map((o) => o.label)], s = Ca.value.body, t = c.concat([e]).concat(s), r = lo(t);
1032
- a ? a(r) : ao({ csvContent: r, title: l.value.chart.title.text || "vue-ui-xy" });
1042
+ function Oa(a = null) {
1043
+ const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...Ta.value.head.map((o) => o.label)], s = Ta.value.body, t = c.concat([e]).concat(s), r = so(t);
1044
+ a ? a(r) : uo({ csvContent: r, title: l.value.chart.title.text || "vue-ui-xy" });
1033
1045
  }
1034
- function Ta(a, c = null) {
1046
+ function Na(a, c = null) {
1035
1047
  sa.value = a;
1036
- const e = fe.value.map((s) => ({
1048
+ const e = ge.value.map((s) => ({
1037
1049
  name: s.name,
1038
1050
  value: [null, void 0, NaN].includes(s.absoluteValues[c]) ? null : s.absoluteValues[c],
1039
1051
  color: s.color,
1040
1052
  type: s.type
1041
1053
  }));
1042
- a ? (p.value = c, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: c + y.value.start })) : (p.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: c + y.value.start }));
1054
+ a ? (p.value = c, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: c + m.value.start })) : (p.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: c + m.value.start }));
1043
1055
  }
1044
- function Oa() {
1056
+ function Va() {
1045
1057
  f.value.showTable = !f.value.showTable;
1046
1058
  }
1047
- function Na() {
1059
+ function Pa() {
1048
1060
  f.value.dataLabels.show = !f.value.dataLabels.show;
1049
1061
  }
1050
- function Va() {
1062
+ function Ha() {
1051
1063
  f.value.showTooltip = !f.value.showTooltip;
1052
1064
  }
1053
- function Pa(a) {
1065
+ function Ra(a) {
1054
1066
  al.value = a, ua.value += 1;
1055
1067
  }
1056
- function Ha() {
1068
+ function Ba() {
1057
1069
  if (!l.value.responsiveProportionalSizing) {
1058
- m.value.dataLabels = l.value.chart.grid.labels.fontSize, m.value.yAxis = l.value.chart.grid.labels.axis.fontSize, m.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, m.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius;
1070
+ b.value.dataLabels = l.value.chart.grid.labels.fontSize, b.value.yAxis = l.value.chart.grid.labels.axis.fontSize, b.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, b.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius;
1059
1071
  return;
1060
1072
  }
1061
- m.value.dataLabels = ol({
1073
+ b.value.dataLabels = ol({
1062
1074
  relator: ve.value,
1063
1075
  adjuster: 400,
1064
1076
  source: l.value.chart.grid.labels.fontSize,
1065
1077
  threshold: 10,
1066
1078
  fallback: 10
1067
- }), m.value.yAxis = ol({
1079
+ }), b.value.yAxis = ol({
1068
1080
  relator: ae.value,
1069
1081
  adjuster: 1e3,
1070
1082
  source: l.value.chart.grid.labels.axis.fontSize,
1071
1083
  threshold: 10,
1072
1084
  fallback: 10
1073
- }), m.value.xAxis = ol({
1085
+ }), b.value.xAxis = ol({
1074
1086
  relator: ae.value,
1075
1087
  adjuster: 1e3,
1076
1088
  source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1077
1089
  threshold: 10,
1078
1090
  fallback: 10
1079
- }), m.value.plotLabels = ol({
1091
+ }), b.value.plotLabels = ol({
1080
1092
  relator: ae.value,
1081
1093
  adjuster: 800,
1082
1094
  source: l.value.chart.labels.fontSize,
@@ -1096,27 +1108,27 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1096
1108
  fallback: 1
1097
1109
  });
1098
1110
  }
1099
- const hl = $(() => !!l.value.debug);
1100
- function Ra() {
1101
- Ua(g.dataset) ? (la({
1111
+ const gl = $(() => !!l.value.debug);
1112
+ function Ya() {
1113
+ Ja(g.dataset) ? (la({
1102
1114
  componentName: "VueUiXy",
1103
1115
  type: "dataset",
1104
- debug: hl.value
1105
- }), _l.value = !0) : g.dataset.forEach((c, e) => {
1116
+ debug: gl.value
1117
+ }), wl.value = !0) : g.dataset.forEach((c, e) => {
1106
1118
  [null, void 0].includes(c.name) && (la({
1107
1119
  componentName: "VueUiXy",
1108
1120
  type: "datasetSerieAttribute",
1109
1121
  property: "name (string)",
1110
1122
  index: e,
1111
- debug: hl.value
1112
- }), _l.value = !0);
1113
- }), hl.value && g.dataset.forEach((c) => {
1123
+ debug: gl.value
1124
+ }), wl.value = !0);
1125
+ }), gl.value && g.dataset.forEach((c) => {
1114
1126
  c.series.forEach((e, s) => {
1115
- zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1127
+ Cl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1116
1128
  -----> The serie '${c.name}' contains the value '${e}' at index ${s}.
1117
1129
  '${e}' was converted to null to allow the chart to display.`);
1118
1130
  });
1119
- }), Ua(g.dataset) || (_l.value = l.value.loading), na.value = l.value.chart.userOptions.showOnChartHover, Fl.value = l.value.chart.userOptions.keepStateOnChartLeave, pl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1131
+ }), Ja(g.dataset) || (wl.value = l.value.loading), na.value = l.value.chart.userOptions.showOnChartHover, El.value = l.value.chart.userOptions.keepStateOnChartLeave, kl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1120
1132
  dataLabels: {
1121
1133
  show: !0
1122
1134
  },
@@ -1128,55 +1140,55 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1128
1140
  const a = 12;
1129
1141
  if (l.value.responsive) {
1130
1142
  const e = je.value.parentNode;
1131
- We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
1143
+ Xe.value && (Xe.value.unobserve(Bl.value), Xe.value.disconnect());
1132
1144
  const { height: s, width: t } = e.getBoundingClientRect();
1133
1145
  let r = null, o = 0;
1134
1146
  l.value.chart.title.show && sl.value && (r = sl.value, o = r.getBoundingClientRect().height);
1135
- let B = null, F = 0;
1136
- l.value.chart.zoom.show && Ve.value > 6 && Wl.value && Ne.value && Ne.value.$el && (B = Ne.value.$el, F = B.getBoundingClientRect().height);
1147
+ let N = null, F = 0;
1148
+ l.value.chart.zoom.show && Ve.value > 6 && Wl.value && Ne.value && Ne.value.$el && (N = Ne.value.$el, F = N.getBoundingClientRect().height);
1137
1149
  let E = null, L = 0;
1138
1150
  l.value.chart.legend.show && el.value && (E = el.value, L = E.getBoundingClientRect().height);
1139
1151
  let C = 0;
1140
1152
  ul.value && (C = ul.value.getBoundingClientRect().height);
1141
1153
  let Y = 0;
1142
- rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t, bl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
1143
- const w = new ResizeObserver((N) => {
1144
- for (const A of N)
1154
+ rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t, pl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ba();
1155
+ const S = new ResizeObserver((V) => {
1156
+ for (const A of V)
1145
1157
  l.value.chart.title.show && sl.value ? o = sl.value.getBoundingClientRect().height : o = 0, Ne.value && Ne.value.$el ? F = Ne.value.$el.getBoundingClientRect().height : F = 0, el.value ? L = el.value.getBoundingClientRect().height : L = 0, ul.value ? C = ul.value.getBoundingClientRect().height : C = 0, rl.value ? Y = rl.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
1146
- ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize, bl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
1158
+ ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize, pl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ba();
1147
1159
  });
1148
1160
  });
1149
- We.value = w, Rl.value = e, w.observe(e);
1161
+ Xe.value = S, Bl.value = e, S.observe(e);
1150
1162
  } else
1151
- ve.value = l.value.chart.height, ae.value = l.value.chart.width, m.value.dataLabels = l.value.chart.grid.labels.fontSize, m.value.yAxis = l.value.chart.grid.labels.axis.fontSize, m.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, m.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius, bl.value = `0 0 ${ae.value} ${ve.value}`;
1163
+ ve.value = l.value.chart.height, ae.value = l.value.chart.width, b.value.dataLabels = l.value.chart.grid.labels.fontSize, b.value.yAxis = l.value.chart.grid.labels.axis.fontSize, b.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, b.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius, pl.value = `0 0 ${ae.value} ${ve.value}`;
1152
1164
  }
1153
- return Ba(() => {
1154
- Ra(), Kl(), document.addEventListener("mousemove", (a) => {
1155
- rt.value = {
1165
+ return Fa(() => {
1166
+ Ya(), Kl(), document.addEventListener("mousemove", (a) => {
1167
+ nt.value = {
1156
1168
  x: a.clientX,
1157
1169
  y: a.clientY
1158
1170
  };
1159
1171
  }), document.addEventListener("scroll", xa);
1160
- }), Ya(() => {
1161
- document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
1162
- }), oo({
1172
+ }), Ea(() => {
1173
+ document.removeEventListener("scroll", xa), Xe.value && (Xe.value.unobserve(Bl.value), Xe.value.disconnect());
1174
+ }), io({
1163
1175
  timeLabelsEls: ll,
1164
1176
  timeLabels: J,
1165
- slicer: y,
1177
+ slicer: m,
1166
1178
  configRef: l,
1167
1179
  rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1168
1180
  autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
1169
- isAutoSize: ct
1170
- }), Ml(() => g.dataset, (a) => {
1171
- Array.isArray(a) && a.length > 0 && (_l.value = !1), Ve.value = Math.max(...pe.value.map((c) => Ye({
1181
+ isAutoSize: dt
1182
+ }), zl(() => g.dataset, (a) => {
1183
+ Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...pe.value.map((c) => Ye({
1172
1184
  data: c.series,
1173
1185
  threshold: l.value.downsample.threshold
1174
- }).length)), y.value = {
1186
+ }).length)), m.value = {
1175
1187
  start: 0,
1176
1188
  end: Ve.value
1177
- }, Bl.value += 1, Yl.value += 1;
1178
- }, { deep: !0 }), Ml(() => g.config, (a) => {
1179
- Xl.value || (l.value = El()), Ra(), ia.value += 1, ra.value += 1, f.value = {
1189
+ }, Yl.value += 1, Fl.value += 1;
1190
+ }, { deep: !0 }), zl(() => g.config, (a) => {
1191
+ Gl.value || (l.value = Xl()), Ya(), ia.value += 1, ra.value += 1, f.value = {
1180
1192
  dataLabels: {
1181
1193
  show: !0
1182
1194
  },
@@ -1185,7 +1197,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1185
1197
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
1186
1198
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1187
1199
  };
1188
- }, { deep: !0 }), Ml(l, () => {
1200
+ }, { deep: !0 }), zl(l, () => {
1189
1201
  f.value = {
1190
1202
  dataLabels: {
1191
1203
  show: !0
@@ -1195,18 +1207,18 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1195
1207
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
1196
1208
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1197
1209
  };
1198
- }, { immediate: !0 }), Za({
1199
- getData: _t,
1200
- getImage: wt,
1210
+ }, { immediate: !0 }), Ka({
1211
+ getData: Lt,
1212
+ getImage: At,
1201
1213
  generatePdf: va,
1202
1214
  generateImage: da,
1203
- generateCsv: Ia,
1204
- toggleStack: ya,
1205
- toggleTable: Oa,
1206
- toggleLabels: Na,
1207
- toggleTooltip: Va,
1215
+ generateCsv: Oa,
1216
+ toggleStack: pa,
1217
+ toggleTable: Va,
1218
+ toggleLabels: Pa,
1219
+ toggleTooltip: Ha,
1208
1220
  toggleAnnotator: Zl,
1209
- toggleFullscreen: Pa
1221
+ toggleFullscreen: Ra
1210
1222
  }), (a, c) => (u(), i("div", {
1211
1223
  id: `vue-ui-xy_${U.value}`,
1212
1224
  class: Ue(`vue-ui-xy ${al.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
@@ -1216,15 +1228,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1216
1228
  onMouseenter: c[6] || (c[6] = () => ma(!0)),
1217
1229
  onMouseleave: c[7] || (c[7] = () => ma(!1))
1218
1230
  }, [
1219
- l.value.chart.userOptions.buttons.annotator && ye.value ? (u(), Me(v(ot), {
1231
+ l.value.chart.userOptions.buttons.annotator && de.value ? (u(), Me(v(ut), {
1220
1232
  key: 0,
1221
- svgRef: ye.value,
1233
+ svgRef: de.value,
1222
1234
  backgroundColor: l.value.chart.backgroundColor,
1223
1235
  color: l.value.chart.color,
1224
- active: yl.value,
1236
+ active: nl.value,
1225
1237
  onClose: Zl
1226
1238
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
1227
- $t.value ? (u(), i("div", {
1239
+ zt.value ? (u(), i("div", {
1228
1240
  key: 1,
1229
1241
  ref_key: "noTitle",
1230
1242
  ref: rl,
@@ -1238,7 +1250,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1238
1250
  class: "vue-ui-xy-title",
1239
1251
  style: z(`font-family:${l.value.chart.fontFamily}`)
1240
1252
  }, [
1241
- (u(), Me(uo, {
1253
+ (u(), Me(co, {
1242
1254
  key: `title_${ia.value}`,
1243
1255
  config: {
1244
1256
  title: {
@@ -1252,12 +1264,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1252
1264
  }
1253
1265
  }, null, 8, ["config"]))
1254
1266
  ], 4)) : d("", !0),
1255
- l.value.chart.userOptions.show && (Fl.value || pl.value) ? (u(), Me(v(ja), {
1267
+ l.value.chart.userOptions.show && (El.value || kl.value) ? (u(), Me(v(lt), {
1256
1268
  ref: "defails",
1257
1269
  key: `user_options_${ua.value}`,
1258
1270
  backgroundColor: l.value.chart.backgroundColor,
1259
1271
  color: l.value.chart.color,
1260
- isPrinting: v(Gl),
1272
+ isPrinting: v(Dl),
1261
1273
  isImaging: v(ca),
1262
1274
  uid: U.value,
1263
1275
  hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
@@ -1266,7 +1278,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1266
1278
  hasImg: l.value.chart.userOptions.buttons.img,
1267
1279
  hasLabel: l.value.chart.userOptions.buttons.labels,
1268
1280
  hasTable: l.value.chart.userOptions.buttons.table,
1269
- hasStack: Tl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1281
+ hasStack: Ol.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1270
1282
  hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1271
1283
  isStacked: f.value.isStacked,
1272
1284
  isFullscreen: al.value,
@@ -1275,22 +1287,22 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1275
1287
  isTooltip: f.value.showTooltip,
1276
1288
  titles: { ...l.value.chart.userOptions.buttonTitles },
1277
1289
  hasAnnotator: l.value.chart.userOptions.buttons.annotator,
1278
- isAnnotation: yl.value,
1290
+ isAnnotation: nl.value,
1279
1291
  callbacks: l.value.chart.userOptions.callbacks,
1280
1292
  printScale: l.value.chart.userOptions.print.scale,
1281
- onToggleFullscreen: Pa,
1293
+ onToggleFullscreen: Ra,
1282
1294
  onGeneratePdf: v(va),
1283
- onGenerateCsv: Ia,
1295
+ onGenerateCsv: Oa,
1284
1296
  onGenerateImage: v(da),
1285
- onToggleTable: Oa,
1286
- onToggleLabels: Na,
1287
- onToggleStack: ya,
1288
- onToggleTooltip: Va,
1297
+ onToggleTable: Va,
1298
+ onToggleLabels: Pa,
1299
+ onToggleStack: pa,
1300
+ onToggleTooltip: Ha,
1289
1301
  onToggleAnnotator: Zl,
1290
1302
  style: z({
1291
- visibility: Fl.value ? pl.value ? "visible" : "hidden" : "visible"
1303
+ visibility: El.value ? kl.value ? "visible" : "hidden" : "visible"
1292
1304
  })
1293
- }, Rt({ _: 2 }, [
1305
+ }, Et({ _: 2 }, [
1294
1306
  a.$slots.menuIcon ? {
1295
1307
  name: "menuIcon",
1296
1308
  fn: ue(({ isOpen: e, color: s }) => [
@@ -1364,72 +1376,75 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1364
1376
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
1365
1377
  (u(), i("svg", {
1366
1378
  ref_key: "svgRef",
1367
- ref: ye,
1379
+ ref: de,
1368
1380
  xmlns: "http://www.w3.org/2000/svg",
1369
1381
  class: Ue([{ "vue-data-ui-fullscreen--on": al.value, "vue-data-ui-fulscreen--off": !al.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
1370
1382
  width: "100%",
1371
- viewBox: bl.value,
1383
+ viewBox: pl.value,
1372
1384
  style: z({
1373
1385
  background: "transparent",
1374
1386
  color: l.value.chart.color,
1375
1387
  fontFamily: l.value.chart.fontFamily
1376
1388
  }),
1377
- "aria-label": St.value,
1389
+ "aria-label": Mt.value,
1378
1390
  role: "img",
1379
1391
  "aria-live": "polite",
1380
- preserveAspectRatio: "xMidYMid"
1392
+ preserveAspectRatio: "xMidYMid",
1393
+ onMousemove: wt,
1394
+ onMouseleave: La,
1395
+ onClick: St
1381
1396
  }, [
1382
1397
  x("g", {
1383
1398
  ref_key: "G",
1384
- ref: ut,
1399
+ ref: it,
1385
1400
  class: "vue-data-ui-g"
1386
1401
  }, [
1387
- xl(v(tt)),
1402
+ ml(v(st)),
1388
1403
  a.$slots["chart-background"] ? (u(), i("foreignObject", {
1389
1404
  key: 0,
1390
1405
  x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
1391
1406
  y: n.value.top,
1392
- width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value),
1407
+ width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / y.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / y.value),
1393
1408
  height: n.value.height < 0 ? 0 : n.value.height,
1394
1409
  style: {
1395
1410
  pointerEvents: "none"
1396
1411
  }
1397
1412
  }, [
1398
1413
  q(a.$slots, "chart-background", {}, void 0, !0)
1399
- ], 8, xo)) : d("", !0),
1400
- b.value > 0 ? (u(), i("g", mo, [
1401
- x("g", bo, [
1414
+ ], 8, po)) : d("", !0),
1415
+ y.value > 0 ? (u(), i("g", ko, [
1416
+ x("g", _o, [
1402
1417
  l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
1403
1418
  key: 0,
1404
1419
  stroke: l.value.chart.grid.stroke,
1405
1420
  "stroke-width": "1",
1406
1421
  x1: n.value.left + G.value,
1407
1422
  x2: n.value.right - G.value,
1408
- y1: v(R)(n.value.bottom),
1409
- y2: v(R)(n.value.bottom),
1423
+ y1: v(B)(n.value.bottom),
1424
+ y2: v(B)(n.value.bottom),
1410
1425
  "stroke-linecap": "round",
1411
1426
  style: { animation: "none !important" }
1412
- }, null, 8, yo)) : d("", !0),
1413
- f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 }, k(dl.value, (e) => (u(), i("g", null, [
1427
+ }, null, 8, wo)) : d("", !0),
1428
+ f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 }, k(fl.value, (e) => (u(), i("g", null, [
1414
1429
  e.id === M.value && e.yLabels.length ? (u(!0), i(h, { key: 0 }, k(e.yLabels, (s) => (u(), i("line", {
1415
1430
  x1: n.value.left + G.value,
1416
1431
  x2: n.value.right - G.value,
1417
- y1: v(R)(s.y),
1418
- y2: v(R)(s.y),
1432
+ y1: v(B)(s.y),
1433
+ y2: v(B)(s.y),
1419
1434
  stroke: e.color,
1420
1435
  "stroke-width": 0.5,
1421
1436
  "stroke-linecap": "round",
1422
1437
  style: { animation: "none !important" }
1423
- }, null, 8, wo))), 256)) : e.yLabels.length ? (u(!0), i(h, { key: 1 }, k(e.yLabels, (s) => (u(), i("line", {
1438
+ }, null, 8, Ao))), 256)) : e.yLabels.length ? (u(!0), i(h, { key: 1 }, k(e.yLabels, (s) => (u(), i("line", {
1424
1439
  x1: n.value.left + G.value,
1425
1440
  x2: n.value.right - G.value,
1426
- y1: v(R)(s.y),
1427
- y2: v(R)(s.y),
1441
+ y1: v(B)(s.y),
1442
+ y2: v(B)(s.y),
1428
1443
  stroke: l.value.chart.grid.stroke,
1429
1444
  "stroke-width": 0.5,
1430
1445
  "stroke-linecap": "round",
1431
1446
  style: { animation: "none !important" }
1432
- }, null, 8, So))), 256)) : d("", !0)
1447
+ }, null, 8, Mo))), 256)) : d("", !0)
1433
1448
  ]))), 256)) : d("", !0) : (u(), i(h, { key: 1 }, [
1434
1449
  l.value.chart.grid.labels.yAxis.showBaseline ? (u(), i("line", {
1435
1450
  key: 0,
@@ -1437,41 +1452,41 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1437
1452
  "stroke-width": "1",
1438
1453
  x1: n.value.left + G.value,
1439
1454
  x2: n.value.left + G.value,
1440
- y1: v(R)(n.value.top),
1441
- y2: v(R)(n.value.bottom),
1455
+ y1: v(B)(n.value.top),
1456
+ y2: v(B)(n.value.bottom),
1442
1457
  "stroke-linecap": "round",
1443
1458
  style: { animation: "none !important" }
1444
- }, null, 8, po)) : d("", !0),
1445
- l.value.chart.grid.showHorizontalLines ? (u(), i("g", ko, [
1446
- (u(!0), i(h, null, k(Aa.value, (e) => (u(), i("line", {
1459
+ }, null, 8, So)) : d("", !0),
1460
+ l.value.chart.grid.showHorizontalLines ? (u(), i("g", $o, [
1461
+ (u(!0), i(h, null, k(za.value, (e) => (u(), i("line", {
1447
1462
  x1: n.value.left + G.value,
1448
1463
  x2: n.value.right,
1449
- y1: v(R)(e.y),
1450
- y2: v(R)(e.y),
1464
+ y1: v(B)(e.y),
1465
+ y2: v(B)(e.y),
1451
1466
  stroke: l.value.chart.grid.stroke,
1452
1467
  "stroke-width": 0.5,
1453
1468
  "stroke-linecap": "round",
1454
1469
  style: { animation: "none !important" }
1455
- }, null, 8, _o))), 256))
1470
+ }, null, 8, Lo))), 256))
1456
1471
  ])) : d("", !0)
1457
1472
  ], 64)),
1458
- l.value.chart.grid.showVerticalLines ? (u(), i("g", $o, [
1473
+ l.value.chart.grid.showVerticalLines ? (u(), i("g", zo, [
1459
1474
  x("path", {
1460
- d: ft.value,
1475
+ d: xt.value,
1461
1476
  "stroke-width": 0.5,
1462
1477
  stroke: l.value.chart.grid.stroke,
1463
1478
  "stroke-linecap": "round",
1464
1479
  style: { animation: "none !important" }
1465
- }, null, 8, Lo)
1480
+ }, null, 8, Co)
1466
1481
  ])) : d("", !0),
1467
- l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", Ao, [
1482
+ l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", Io, [
1468
1483
  x("path", {
1469
- d: gt.value,
1484
+ d: bt.value,
1470
1485
  stroke: l.value.chart.grid.stroke,
1471
1486
  "stroke-width": 1,
1472
1487
  "stroke-linecap": "round",
1473
1488
  style: { animation: "none !important" }
1474
- }, null, 8, Mo)
1489
+ }, null, 8, To)
1475
1490
  ])) : d("", !0)
1476
1491
  ]),
1477
1492
  (u(!0), i(h, null, k(Pe.value, (e, s) => (u(), i("defs", {
@@ -1485,16 +1500,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1485
1500
  x("stop", {
1486
1501
  offset: "0%",
1487
1502
  "stop-color": e.color
1488
- }, null, 8, Co),
1503
+ }, null, 8, No),
1489
1504
  x("stop", {
1490
1505
  offset: "62%",
1491
1506
  "stop-color": `${v(Qe)(e.color, 0.02)}`
1492
- }, null, 8, Io),
1507
+ }, null, 8, Vo),
1493
1508
  x("stop", {
1494
1509
  offset: "100%",
1495
1510
  "stop-color": `${v(Qe)(e.color, 0.05)}`
1496
- }, null, 8, To)
1497
- ], 8, zo),
1511
+ }, null, 8, Po)
1512
+ ], 8, Oo),
1498
1513
  x("linearGradient", {
1499
1514
  id: `rectGradient_neg_${s}_${U.value}`,
1500
1515
  x2: "0%",
@@ -1503,16 +1518,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1503
1518
  x("stop", {
1504
1519
  offset: "0%",
1505
1520
  "stop-color": `${v(Qe)(e.color, 0.05)}`
1506
- }, null, 8, No),
1521
+ }, null, 8, Ro),
1507
1522
  x("stop", {
1508
1523
  offset: "38%",
1509
1524
  "stop-color": `${v(Qe)(e.color, 0.02)}`
1510
- }, null, 8, Vo),
1525
+ }, null, 8, Bo),
1511
1526
  x("stop", {
1512
1527
  offset: "100%",
1513
1528
  "stop-color": e.color
1514
- }, null, 8, Po)
1515
- ], 8, Oo)
1529
+ }, null, 8, Yo)
1530
+ ], 8, Ho)
1516
1531
  ]))), 128)),
1517
1532
  (u(!0), i(h, null, k(Le.value, (e, s) => (u(), i("defs", {
1518
1533
  key: `def_plot_${s}`
@@ -1528,12 +1543,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1528
1543
  x("stop", {
1529
1544
  offset: "0%",
1530
1545
  "stop-color": `${v(Qe)(e.color, 0.05)}`
1531
- }, null, 8, Ro),
1546
+ }, null, 8, Eo),
1532
1547
  x("stop", {
1533
1548
  offset: "100%",
1534
1549
  "stop-color": e.color
1535
- }, null, 8, Bo)
1536
- ], 8, Ho)
1550
+ }, null, 8, Xo)
1551
+ ], 8, Fo)
1537
1552
  ]))), 128)),
1538
1553
  (u(!0), i(h, null, k(we.value, (e, s) => (u(), i("defs", {
1539
1554
  key: `def_line_${s}`
@@ -1549,12 +1564,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1549
1564
  x("stop", {
1550
1565
  offset: "0%",
1551
1566
  "stop-color": `${v(Qe)(e.color, 0.05)}`
1552
- }, null, 8, Fo),
1567
+ }, null, 8, Go),
1553
1568
  x("stop", {
1554
1569
  offset: "100%",
1555
1570
  "stop-color": e.color
1556
- }, null, 8, Eo)
1557
- ], 8, Yo),
1571
+ }, null, 8, Do)
1572
+ ], 8, Wo),
1558
1573
  x("linearGradient", {
1559
1574
  id: `areaGradient_${s}_${U.value}`,
1560
1575
  x1: "0%",
@@ -1565,58 +1580,58 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1565
1580
  x("stop", {
1566
1581
  offset: "0%",
1567
1582
  "stop-color": `${v(Se)(v(Qe)(e.color, 0.03), l.value.line.area.opacity)}`
1568
- }, null, 8, Xo),
1583
+ }, null, 8, Uo),
1569
1584
  x("stop", {
1570
1585
  offset: "100%",
1571
1586
  "stop-color": `${v(Se)(e.color, l.value.line.area.opacity)}`
1572
- }, null, 8, Go)
1573
- ], 8, Wo)
1587
+ }, null, 8, Zo)
1588
+ ], 8, qo)
1574
1589
  ]))), 128)),
1575
- (u(!0), i(h, null, k(Lt.value, (e) => (u(), i("g", null, [
1590
+ (u(!0), i(h, null, k(Ct.value, (e) => (u(), i("g", null, [
1576
1591
  e.show ? (u(), i(h, { key: 0 }, [
1577
1592
  (u(!0), i(h, null, k(e.span, (s, t) => (u(), i("g", null, [
1578
1593
  x("rect", {
1579
1594
  style: z({
1580
1595
  transition: "none",
1581
- opacity: e.from + t >= y.value.start && e.from + t <= y.value.end - 1 ? 1 : 0
1596
+ opacity: e.from + t >= m.value.start && e.from + t <= m.value.end - 1 ? 1 : 0
1582
1597
  }),
1583
- x: n.value.left + n.value.width / b.value * (e.from + t - y.value.start),
1598
+ x: n.value.left + n.value.width / y.value * (e.from + t - m.value.start),
1584
1599
  y: n.value.top,
1585
1600
  height: n.value.height < 0 ? 10 : n.value.height,
1586
- width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
1601
+ width: n.value.width / y.value < 0 ? 1e-5 : n.value.width / y.value,
1587
1602
  fill: v(Se)(e.color, e.opacity)
1588
- }, null, 12, Do)
1603
+ }, null, 12, Jo)
1589
1604
  ]))), 256)),
1590
1605
  (u(!0), i(h, null, k(e.span, (s, t) => (u(), i("g", null, [
1591
1606
  e.caption.text && t === 0 ? (u(), i("foreignObject", {
1592
1607
  key: 0,
1593
- x: n.value.left + n.value.width / b.value * (e.from + t - y.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - n.value.width / b.value * e.span / 2),
1608
+ x: n.value.left + n.value.width / y.value * (e.from + t - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - n.value.width / y.value * e.span / 2),
1594
1609
  y: n.value.top + e.caption.offsetY,
1595
1610
  style: z({
1596
1611
  overflow: "visible",
1597
- opacity: e.to >= y.value.start && e.from < y.value.end ? 1 : 0
1612
+ opacity: e.to >= m.value.start && e.from < m.value.end ? 1 : 0
1598
1613
  }),
1599
1614
  height: "1",
1600
- width: e.caption.width === "auto" ? n.value.width / b.value * e.span : e.caption.width
1615
+ width: e.caption.width === "auto" ? n.value.width / y.value * e.span : e.caption.width
1601
1616
  }, [
1602
1617
  x("div", {
1603
1618
  style: z(`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"}`)
1604
1619
  }, le(e.caption.text), 5)
1605
- ], 12, qo)) : d("", !0)
1620
+ ], 12, Ko)) : d("", !0)
1606
1621
  ]))), 256))
1607
1622
  ], 64)) : d("", !0)
1608
1623
  ]))), 256)),
1609
- Ul.value ? (u(), i("g", Uo, [
1610
- (u(!0), i(h, null, k(b.value, (e, s) => (u(), i("g", {
1624
+ ba.value ? (u(), i("g", Qo, [
1625
+ (u(!0), i(h, null, k(y.value, (e, s) => (u(), i("g", {
1611
1626
  key: `tooltip_trap_highlighter_${s}`
1612
1627
  }, [
1613
1628
  x("rect", {
1614
- x: n.value.left + n.value.width / b.value * s,
1629
+ x: n.value.left + n.value.width / y.value * s,
1615
1630
  y: n.value.top,
1616
1631
  height: n.value.height < 0 ? 10 : n.value.height,
1617
- width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
1618
- fill: [O.value, p.value, Xe.value].includes(s) ? v(Se)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
1619
- }, null, 8, Zo)
1632
+ width: n.value.width / y.value < 0 ? 1e-5 : n.value.width / y.value,
1633
+ fill: [O.value, p.value, We.value].includes(s) ? v(Se)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
1634
+ }, null, 8, jo)
1620
1635
  ]))), 128))
1621
1636
  ])) : d("", !0),
1622
1637
  Pe.value.length ? (u(!0), i(h, { key: 1 }, k(Pe.value, (e, s) => (u(), i("g", {
@@ -1627,43 +1642,43 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1627
1642
  (u(!0), i(h, null, k(e.plots, (t, r) => (u(), i("g", {
1628
1643
  key: `bar_plot_${s}_${r}`
1629
1644
  }, [
1630
- ge(t.value) ? (u(), i("rect", {
1645
+ xe(t.value) ? (u(), i("rect", {
1631
1646
  key: 0,
1632
- x: Ll(t),
1633
- y: f.value.useIndividualScale ? Sa(t) : wa(t),
1634
- height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
1647
+ x: Al(t),
1648
+ y: f.value.useIndividualScale ? $a(t) : Sa(t),
1649
+ height: f.value.useIndividualScale ? Math.abs(wa(t)) : Math.abs(_a(t)),
1635
1650
  width: _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
1636
1651
  rx: l.value.bar.borderRadius,
1637
1652
  fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${U.value})` : `url(#rectGradient_neg_${s}_${U.value})` : e.color,
1638
1653
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1639
1654
  "stroke-width": l.value.bar.border.strokeWidth,
1640
- style: z(`${v(Xl) ? "transition:none !important" : ""}`)
1641
- }, null, 12, Jo)) : d("", !0),
1642
- ge(t.value) && a.$slots.pattern ? (u(), i("rect", {
1655
+ style: z(`${v(Gl) ? "transition:none !important" : ""}`)
1656
+ }, null, 12, es)) : d("", !0),
1657
+ xe(t.value) && a.$slots.pattern ? (u(), i("rect", {
1643
1658
  key: 1,
1644
- x: Ll(t),
1645
- y: f.value.useIndividualScale ? Sa(t) : wa(t),
1646
- height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
1659
+ x: Al(t),
1660
+ y: f.value.useIndividualScale ? $a(t) : Sa(t),
1661
+ height: f.value.useIndividualScale ? Math.abs(wa(t)) : Math.abs(_a(t)),
1647
1662
  width: _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
1648
1663
  rx: l.value.bar.borderRadius,
1649
1664
  fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
1650
1665
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1651
1666
  "stroke-width": l.value.bar.border.strokeWidth
1652
- }, null, 8, Ko)) : d("", !0),
1667
+ }, null, 8, ls)) : d("", !0),
1653
1668
  t.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
1654
1669
  key: 2,
1655
1670
  style: { overflow: "visible" },
1656
1671
  height: "12",
1657
1672
  width: (_e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) / 2) + l.value.chart.comments.width,
1658
- x: Ll(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1673
+ x: Al(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1659
1674
  y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
1660
1675
  }, [
1661
1676
  q(a.$slots, "plot-comment", {
1662
1677
  plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
1663
1678
  }, void 0, !0)
1664
- ], 8, Qo)) : d("", !0)
1679
+ ], 8, as)) : d("", !0)
1665
1680
  ]))), 128)),
1666
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", jo, [
1681
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(W)(e.plots).trend) ? (u(), i("g", ts, [
1667
1682
  x("defs", null, [
1668
1683
  x("marker", {
1669
1684
  id: `bar_arrow_${s}`,
@@ -1676,32 +1691,32 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1676
1691
  x("polygon", {
1677
1692
  points: `0 0, 7 ${7 / 2}, 0 7`,
1678
1693
  fill: e.color
1679
- }, null, 8, ls)
1680
- ], 8, es)
1694
+ }, null, 8, ss)
1695
+ ], 8, os)
1681
1696
  ]),
1682
1697
  e.plots.length > 1 ? (u(), i("line", {
1683
1698
  key: 0,
1684
- x1: v(X)(e.plots).x1 + _e(),
1685
- x2: v(X)(e.plots).x2 + _e(),
1686
- y1: v(R)(v(X)(e.plots).y1),
1687
- y2: v(R)(v(X)(e.plots).y2),
1699
+ x1: v(W)(e.plots).x1 + _e(),
1700
+ x2: v(W)(e.plots).x2 + _e(),
1701
+ y1: v(B)(v(W)(e.plots).y1),
1702
+ y2: v(B)(v(W)(e.plots).y2),
1688
1703
  "stroke-width": 1,
1689
1704
  stroke: e.color,
1690
1705
  "stroke-dasharray": 2,
1691
1706
  "marker-end": `url(#bar_arrow_${s})`
1692
- }, null, 8, as)) : d("", !0),
1707
+ }, null, 8, us)) : d("", !0),
1693
1708
  e.plots.length > 1 ? (u(), i("text", {
1694
1709
  key: 1,
1695
1710
  "text-anchor": "middle",
1696
- x: v(X)(e.plots).x2 + _e(),
1697
- y: v(X)(e.plots).y2 - 6,
1698
- "font-size": m.value.plotLabels,
1711
+ x: v(W)(e.plots).x2 + _e(),
1712
+ y: v(W)(e.plots).y2 - 6,
1713
+ "font-size": b.value.plotLabels,
1699
1714
  fill: e.color
1700
1715
  }, le(v(me)({
1701
- v: v(X)(e.plots).trend * 100,
1716
+ v: v(W)(e.plots).trend * 100,
1702
1717
  s: "%",
1703
1718
  r: 2
1704
- })), 9, ts)) : d("", !0)
1719
+ })), 9, rs)) : d("", !0)
1705
1720
  ])) : d("", !0)
1706
1721
  ], 6))), 128)) : d("", !0),
1707
1722
  !f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), i("line", {
@@ -1710,30 +1725,30 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1710
1725
  "stroke-width": "1",
1711
1726
  x1: n.value.left + G.value,
1712
1727
  x2: n.value.right - G.value,
1713
- y1: v(R)(ie.value),
1714
- y2: v(R)(ie.value),
1728
+ y1: v(B)(ie.value),
1729
+ y2: v(B)(ie.value),
1715
1730
  "stroke-linecap": "round",
1716
1731
  style: { animation: "none !important" }
1717
- }, null, 8, os)) : d("", !0),
1718
- l.value.chart.highlighter.useLine && (![null, void 0].includes(p.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ss, [
1732
+ }, null, 8, is)) : d("", !0),
1733
+ l.value.chart.highlighter.useLine && (![null, void 0].includes(p.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ns, [
1719
1734
  x("line", {
1720
- x1: n.value.left + n.value.width / b.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
1721
- x2: n.value.left + n.value.width / b.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
1722
- y1: v(R)(n.value.top),
1723
- y2: v(R)(n.value.bottom),
1735
+ x1: n.value.left + n.value.width / y.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / y.value / 2,
1736
+ x2: n.value.left + n.value.width / y.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / y.value / 2,
1737
+ y1: v(B)(n.value.top),
1738
+ y2: v(B)(n.value.bottom),
1724
1739
  stroke: l.value.chart.highlighter.color,
1725
1740
  "stroke-width": l.value.chart.highlighter.lineWidth,
1726
1741
  "stroke-dasharray": l.value.chart.highlighter.lineDasharray,
1727
1742
  "stroke-linecap": "round",
1728
1743
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1729
- }, null, 8, us)
1744
+ }, null, 8, cs)
1730
1745
  ])) : d("", !0),
1731
1746
  l.value.chart.grid.frame.show ? (u(), i("rect", {
1732
1747
  key: 4,
1733
1748
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
1734
1749
  x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
1735
1750
  y: n.value.top,
1736
- width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value),
1751
+ width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / y.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / y.value),
1737
1752
  height: n.value.height < 0 ? 0 : n.value.height,
1738
1753
  fill: "transparent",
1739
1754
  stroke: l.value.chart.grid.frame.stroke,
@@ -1741,52 +1756,52 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1741
1756
  "stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
1742
1757
  "stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
1743
1758
  "stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
1744
- }, null, 8, rs)) : d("", !0),
1759
+ }, null, 8, vs)) : d("", !0),
1745
1760
  l.value.chart.grid.labels.show ? (u(), i("g", {
1746
1761
  key: 5,
1747
1762
  ref_key: "scaleLabels",
1748
- ref: Hl
1763
+ ref: Rl
1749
1764
  }, [
1750
1765
  f.value.useIndividualScale ? (u(), i(h, { key: 0 }, [
1751
- (u(!0), i(h, null, k(dl.value, (e) => (u(), i("g", null, [
1766
+ (u(!0), i(h, null, k(fl.value, (e) => (u(), i("g", null, [
1752
1767
  x("line", {
1753
1768
  x1: e.x + G.value - n.value.individualOffsetX,
1754
1769
  x2: e.x + G.value - n.value.individualOffsetX,
1755
- y1: f.value.isStacked ? v(R)(n.value.bottom - e.yOffset - e.individualHeight) : v(R)(n.value.top),
1756
- y2: f.value.isStacked ? v(R)(n.value.bottom - e.yOffset) : v(R)(n.value.bottom),
1770
+ y1: f.value.isStacked ? v(B)(n.value.bottom - e.yOffset - e.individualHeight) : v(B)(n.value.top),
1771
+ y2: f.value.isStacked ? v(B)(n.value.bottom - e.yOffset) : v(B)(n.value.bottom),
1757
1772
  stroke: e.color,
1758
1773
  "stroke-width": l.value.chart.grid.stroke,
1759
1774
  "stroke-linecap": "round",
1760
1775
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
1761
- }, null, 12, is)
1776
+ }, null, 12, ds)
1762
1777
  ]))), 256)),
1763
- (u(!0), i(h, null, k(dl.value, (e) => (u(), i("g", {
1778
+ (u(!0), i(h, null, k(fl.value, (e) => (u(), i("g", {
1764
1779
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1765
1780
  }, [
1766
1781
  x("text", {
1767
1782
  fill: e.color,
1768
- "font-size": m.value.dataLabels * 0.8,
1783
+ "font-size": b.value.dataLabels * 0.8,
1769
1784
  "text-anchor": "middle",
1770
- transform: `translate(${e.x - m.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? n.value.bottom - e.yOffset - e.individualHeight / 2 : n.value.top + n.value.height / 2}) rotate(-90)`
1785
+ transform: `translate(${e.x - b.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? n.value.bottom - e.yOffset - e.individualHeight / 2 : n.value.top + n.value.height / 2}) rotate(-90)`
1771
1786
  }, le(e.name) + " " + le(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
1772
- ${e.scaleLabel}` : ""), 9, ns),
1787
+ ${e.scaleLabel}` : ""), 9, hs),
1773
1788
  (u(!0), i(h, null, k(e.yLabels, (s, t) => (u(), i(h, null, [
1774
1789
  l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
1775
1790
  key: 0,
1776
1791
  x1: e.x + 3 + G.value - l.value.chart.grid.labels.yAxis.crosshairSize - n.value.individualOffsetX,
1777
1792
  x2: e.x + G.value - n.value.individualOffsetX,
1778
- y1: v(R)(s.y),
1779
- y2: v(R)(s.y),
1793
+ y1: v(B)(s.y),
1794
+ y2: v(B)(s.y),
1780
1795
  stroke: e.color,
1781
1796
  "stroke-width": 1,
1782
1797
  "stroke-linecap": "round",
1783
1798
  style: { animation: "none !important" }
1784
- }, null, 8, cs)) : d("", !0)
1799
+ }, null, 8, fs)) : d("", !0)
1785
1800
  ], 64))), 256)),
1786
1801
  (u(!0), i(h, null, k(e.yLabels, (s, t) => (u(), i("text", {
1787
1802
  x: e.x - 5 + G.value - n.value.individualOffsetX,
1788
- y: v(R)(s.y) + m.value.dataLabels / 3,
1789
- "font-size": m.value.dataLabels,
1803
+ y: v(B)(s.y) + b.value.dataLabels / 3,
1804
+ "font-size": b.value.dataLabels,
1790
1805
  "text-anchor": "end",
1791
1806
  fill: e.color
1792
1807
  }, le(v(re)(
@@ -1799,30 +1814,30 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1799
1814
  r: l.value.chart.grid.labels.yAxis.rounding
1800
1815
  }),
1801
1816
  { datapoint: s.datapoint, seriesIndex: t }
1802
- )), 9, vs))), 256))
1817
+ )), 9, gs))), 256))
1803
1818
  ], 4))), 256))
1804
- ], 64)) : (u(!0), i(h, { key: 1 }, k(Aa.value, (e, s) => (u(), i("g", {
1819
+ ], 64)) : (u(!0), i(h, { key: 1 }, k(za.value, (e, s) => (u(), i("g", {
1805
1820
  key: `yLabel_${s}`
1806
1821
  }, [
1807
- ge(e) && e.value >= ke.value.min && e.value <= ke.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
1822
+ xe(e) && e.value >= ke.value.min && e.value <= ke.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
1808
1823
  key: 0,
1809
1824
  x1: n.value.left,
1810
1825
  x2: n.value.left - l.value.chart.grid.labels.yAxis.crosshairSize,
1811
- y1: v(R)(e.y),
1812
- y2: v(R)(e.y),
1826
+ y1: v(B)(e.y),
1827
+ y2: v(B)(e.y),
1813
1828
  stroke: l.value.chart.grid.stroke,
1814
1829
  "stroke-width": "1",
1815
1830
  "stroke-linecap": "round",
1816
1831
  style: { animation: "none !important" }
1817
- }, null, 8, ds)) : d("", !0),
1832
+ }, null, 8, xs)) : d("", !0),
1818
1833
  e.value >= ke.value.min && e.value <= ke.value.max ? (u(), i("text", {
1819
1834
  key: 1,
1820
1835
  x: n.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
1821
- y: v(T)(e.y + m.value.dataLabels / 3),
1822
- "font-size": m.value.dataLabels,
1836
+ y: v(T)(e.y + b.value.dataLabels / 3),
1837
+ "font-size": b.value.dataLabels,
1823
1838
  "text-anchor": "end",
1824
1839
  fill: l.value.chart.grid.labels.color
1825
- }, le(ge(e.value) ? v(re)(
1840
+ }, le(xe(e.value) ? v(re)(
1826
1841
  l.value.chart.grid.labels.yAxis.formatter,
1827
1842
  e.value,
1828
1843
  v(me)({
@@ -1831,7 +1846,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1831
1846
  s: e.suffix,
1832
1847
  r: l.value.chart.grid.labels.yAxis.rounding
1833
1848
  })
1834
- ) : ""), 9, hs)) : d("", !0)
1849
+ ) : ""), 9, bs)) : d("", !0)
1835
1850
  ]))), 128))
1836
1851
  ], 512)) : d("", !0),
1837
1852
  (u(!0), i(h, null, k(Le.value, (e, s) => (u(), i("g", {
@@ -1842,7 +1857,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1842
1857
  (u(!0), i(h, null, k(e.plots, (t, r) => (u(), i("g", {
1843
1858
  key: `circle_plot_${s}_${r}`
1844
1859
  }, [
1845
- t && ge(t.value) ? (u(), Me(Il, {
1860
+ t && xe(t.value) ? (u(), Me(Tl, {
1846
1861
  key: 0,
1847
1862
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
1848
1863
  color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${U.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
@@ -1859,14 +1874,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1859
1874
  x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1860
1875
  y: t.y + l.value.chart.comments.offsetY + 6
1861
1876
  }, [
1862
- x("div", gs, [
1877
+ x("div", ys, [
1863
1878
  q(a.$slots, "plot-comment", {
1864
1879
  plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
1865
1880
  }, void 0, !0)
1866
1881
  ])
1867
- ], 8, fs)) : d("", !0)
1882
+ ], 8, ms)) : d("", !0)
1868
1883
  ]))), 128)),
1869
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", xs, [
1884
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(W)(e.plots).trend) ? (u(), i("g", ps, [
1870
1885
  x("defs", null, [
1871
1886
  x("marker", {
1872
1887
  id: `plot_arrow_${s}`,
@@ -1879,32 +1894,32 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1879
1894
  x("polygon", {
1880
1895
  points: `0 0, 7 ${7 / 2}, 0 7`,
1881
1896
  fill: e.color
1882
- }, null, 8, bs)
1883
- ], 8, ms)
1897
+ }, null, 8, _s)
1898
+ ], 8, ks)
1884
1899
  ]),
1885
1900
  e.plots.length > 1 ? (u(), i("line", {
1886
1901
  key: 0,
1887
- x1: v(X)(e.plots).x1,
1888
- x2: v(X)(e.plots).x2,
1889
- y1: v(R)(v(X)(e.plots).y1),
1890
- y2: v(R)(v(X)(e.plots).y2),
1902
+ x1: v(W)(e.plots).x1,
1903
+ x2: v(W)(e.plots).x2,
1904
+ y1: v(B)(v(W)(e.plots).y1),
1905
+ y2: v(B)(v(W)(e.plots).y2),
1891
1906
  "stroke-width": 1,
1892
1907
  stroke: e.color,
1893
1908
  "stroke-dasharray": 2,
1894
1909
  "marker-end": `url(#plot_arrow_${s})`
1895
- }, null, 8, ys)) : d("", !0),
1910
+ }, null, 8, ws)) : d("", !0),
1896
1911
  e.plots.length > 1 ? (u(), i("text", {
1897
1912
  key: 1,
1898
1913
  "text-anchor": "middle",
1899
- x: v(X)(e.plots).x2,
1900
- y: v(X)(e.plots).y2 - 6,
1901
- "font-size": m.value.plotLabels,
1914
+ x: v(W)(e.plots).x2,
1915
+ y: v(W)(e.plots).y2 - 6,
1916
+ "font-size": b.value.plotLabels,
1902
1917
  fill: e.color
1903
1918
  }, le(v(me)({
1904
- v: v(X)(e.plots).trend * 100,
1919
+ v: v(W)(e.plots).trend * 100,
1905
1920
  s: "%",
1906
1921
  r: 2
1907
- })), 9, ps)) : d("", !0)
1922
+ })), 9, Ss)) : d("", !0)
1908
1923
  ])) : d("", !0)
1909
1924
  ], 6))), 128)),
1910
1925
  (u(!0), i(h, null, k(we.value, (e, s) => (u(), i("g", {
@@ -1919,7 +1934,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1919
1934
  "stroke-width": l.value.line.strokeWidth + 1,
1920
1935
  "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
1921
1936
  fill: "none"
1922
- }, null, 8, ks)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
1937
+ }, null, 8, $s)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
1923
1938
  key: 1,
1924
1939
  d: `M${e.straight}`,
1925
1940
  stroke: l.value.chart.backgroundColor,
@@ -1928,9 +1943,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1928
1943
  fill: "none",
1929
1944
  "stroke-linecap": "round",
1930
1945
  "stroke-linejoin": "round"
1931
- }, null, 8, _s)) : d("", !0)
1946
+ }, null, 8, Ls)) : d("", !0)
1932
1947
  ], 6))), 128)),
1933
- a.$slots.pattern ? (u(), i("defs", ws, [
1948
+ a.$slots.pattern ? (u(), i("defs", As, [
1934
1949
  (u(!0), i(h, null, k(Ie.value, (e, s) => q(a.$slots, "pattern", Ql({
1935
1950
  key: `serie_pattern_slot_${s}`
1936
1951
  }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${U.value}_${s}` }), void 0, !0)), 128))
@@ -1940,29 +1955,29 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1940
1955
  class: Ue(`serie_line_${s}`),
1941
1956
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1942
1957
  }, [
1943
- e.useArea && e.plots.length > 1 ? (u(), i("g", Ss, [
1958
+ e.useArea && e.plots.length > 1 ? (u(), i("g", Ms, [
1944
1959
  e.smooth ? (u(!0), i(h, { key: 0 }, k(e.curveAreas, (t, r) => (u(), i(h, { key: r }, [
1945
1960
  t ? (u(), i("path", {
1946
1961
  key: 0,
1947
1962
  d: t,
1948
1963
  fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(Se)(e.color, l.value.line.area.opacity)
1949
- }, null, 8, $s)) : d("", !0),
1964
+ }, null, 8, zs)) : d("", !0),
1950
1965
  a.$slots.pattern && t ? (u(), i("path", {
1951
1966
  key: 1,
1952
1967
  d: t,
1953
1968
  fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
1954
- }, null, 8, Ls)) : d("", !0)
1969
+ }, null, 8, Cs)) : d("", !0)
1955
1970
  ], 64))), 128)) : (u(!0), i(h, { key: 1 }, k(e.area.split(";"), (t, r) => (u(), i(h, { key: r }, [
1956
1971
  t ? (u(), i("path", {
1957
1972
  key: 0,
1958
1973
  d: `M${t}Z`,
1959
1974
  fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(Se)(e.color, l.value.line.area.opacity)
1960
- }, null, 8, As)) : d("", !0),
1975
+ }, null, 8, Is)) : d("", !0),
1961
1976
  a.$slots.pattern && t ? (u(), i("path", {
1962
1977
  key: 1,
1963
1978
  d: `M${t}Z`,
1964
1979
  fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
1965
- }, null, 8, Ms)) : d("", !0)
1980
+ }, null, 8, Ts)) : d("", !0)
1966
1981
  ], 64))), 128))
1967
1982
  ])) : d("", !0),
1968
1983
  e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
@@ -1973,7 +1988,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1973
1988
  "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
1974
1989
  fill: "none",
1975
1990
  "stroke-linecap": "round"
1976
- }, null, 8, zs)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
1991
+ }, null, 8, Os)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
1977
1992
  key: 2,
1978
1993
  d: `M${e.straight}`,
1979
1994
  stroke: e.color,
@@ -1982,11 +1997,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1982
1997
  fill: "none",
1983
1998
  "stroke-linecap": "round",
1984
1999
  "stroke-linejoin": "round"
1985
- }, null, 8, Cs)) : d("", !0),
2000
+ }, null, 8, Ns)) : d("", !0),
1986
2001
  (u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
1987
2002
  key: `circle_line_${s}_${r}`
1988
2003
  }, [
1989
- !La.value.linePlot && t && ge(t.value) || La.value.linePlot && t && ge(t.value) && (p.value !== null && p.value === r || O.value !== null && O.value === r) ? (u(), Me(Il, {
2004
+ !Ma.value.linePlot && t && xe(t.value) || Ma.value.linePlot && t && xe(t.value) && (p.value !== null && p.value === r || O.value !== null && O.value === r) ? (u(), Me(Tl, {
1990
2005
  key: 0,
1991
2006
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
1992
2007
  color: l.value.line.useGradient ? `url(#lineGradient_${s}_${U.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
@@ -2003,14 +2018,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2003
2018
  x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2004
2019
  y: t.y + l.value.chart.comments.offsetY + 6
2005
2020
  }, [
2006
- x("div", Ts, [
2021
+ x("div", Ps, [
2007
2022
  q(a.$slots, "plot-comment", {
2008
2023
  plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
2009
2024
  }, void 0, !0)
2010
2025
  ])
2011
- ], 8, Is)) : d("", !0)
2026
+ ], 8, Vs)) : d("", !0)
2012
2027
  ], 64))), 128)),
2013
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", Os, [
2028
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(W)(e.plots).trend) ? (u(), i("g", Hs, [
2014
2029
  x("defs", null, [
2015
2030
  x("marker", {
2016
2031
  id: `line_arrow_${s}`,
@@ -2023,35 +2038,35 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2023
2038
  x("polygon", {
2024
2039
  points: `0 0, 7 ${7 / 2}, 0 7`,
2025
2040
  fill: e.color
2026
- }, null, 8, Vs)
2027
- ], 8, Ns)
2041
+ }, null, 8, Bs)
2042
+ ], 8, Rs)
2028
2043
  ]),
2029
2044
  e.plots.length > 1 ? (u(), i("line", {
2030
2045
  key: 0,
2031
- x1: v(X)(e.plots).x1,
2032
- x2: v(X)(e.plots).x2,
2033
- y1: v(R)(v(X)(e.plots).y1),
2034
- y2: v(R)(v(X)(e.plots).y2),
2046
+ x1: v(W)(e.plots).x1,
2047
+ x2: v(W)(e.plots).x2,
2048
+ y1: v(B)(v(W)(e.plots).y1),
2049
+ y2: v(B)(v(W)(e.plots).y2),
2035
2050
  "stroke-width": 1,
2036
2051
  stroke: e.color,
2037
2052
  "stroke-dasharray": 2,
2038
2053
  "marker-end": `url(#line_arrow_${s})`
2039
- }, null, 8, Ps)) : d("", !0),
2054
+ }, null, 8, Ys)) : d("", !0),
2040
2055
  e.plots.length > 1 ? (u(), i("text", {
2041
2056
  key: 1,
2042
2057
  "text-anchor": "middle",
2043
- x: v(X)(e.plots).x2,
2044
- y: v(X)(e.plots).y2 - 6,
2045
- "font-size": m.value.plotLabels,
2058
+ x: v(W)(e.plots).x2,
2059
+ y: v(W)(e.plots).y2 - 6,
2060
+ "font-size": b.value.plotLabels,
2046
2061
  fill: e.color
2047
2062
  }, le(v(me)({
2048
- v: v(X)(e.plots).trend * 100,
2063
+ v: v(W)(e.plots).trend * 100,
2049
2064
  s: "%",
2050
2065
  r: 2
2051
- })), 9, Hs)) : d("", !0)
2066
+ })), 9, Fs)) : d("", !0)
2052
2067
  ])) : d("", !0)
2053
2068
  ], 6))), 128)),
2054
- (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g", Rs, [
2069
+ (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g", Es, [
2055
2070
  (u(!0), i(h, null, k(Pe.value, (e, s) => (u(), i(h, {
2056
2071
  key: `xLabel_bar_${s}`
2057
2072
  }, [
@@ -2060,13 +2075,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2060
2075
  }, [
2061
2076
  t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || p.value !== null && p.value === r || O.value !== null && O.value === r) && l.value.bar.labels.show ? (u(), i("text", {
2062
2077
  key: 0,
2063
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Ll(t) + _e() / 2 - Oe.value / 2,
2078
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Al(t) + _e() / 2 - Oe.value / 2,
2064
2079
  y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2065
2080
  "text-anchor": "middle",
2066
- "font-size": m.value.plotLabels,
2081
+ "font-size": b.value.plotLabels,
2067
2082
  fill: l.value.bar.labels.color,
2068
2083
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2069
- }, le(ge(t.value) ? v(re)(
2084
+ }, le(xe(t.value) ? v(re)(
2070
2085
  l.value.bar.labels.formatter,
2071
2086
  t.value,
2072
2087
  v(me)({
@@ -2079,24 +2094,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2079
2094
  datapoint: t,
2080
2095
  serie: e
2081
2096
  }
2082
- ) : ""), 13, Bs)) : d("", !0),
2097
+ ) : ""), 13, Xs)) : d("", !0),
2083
2098
  t && l.value.bar.serieName.show ? (u(), i("text", {
2084
2099
  key: 1,
2085
2100
  x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : t.x + _e() * 1.1,
2086
2101
  y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2087
2102
  "text-anchor": "middle",
2088
- "font-size": m.value.plotLabels,
2103
+ "font-size": b.value.plotLabels,
2089
2104
  fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2090
2105
  "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2091
2106
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2092
- }, le(l.value.bar.serieName.useAbbreviation ? v(Kt)({
2107
+ }, le(l.value.bar.serieName.useAbbreviation ? v(lo)({
2093
2108
  source: e.name,
2094
2109
  length: l.value.bar.serieName.abbreviationSize
2095
- }) : e.name), 13, Ys)) : d("", !0)
2110
+ }) : e.name), 13, Ws)) : d("", !0)
2096
2111
  ], 64))), 128))
2097
2112
  ], 64))), 128))
2098
2113
  ])) : d("", !0),
2099
- l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Fs, [
2114
+ l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Gs, [
2100
2115
  (u(!0), i(h, null, k(Le.value, (e, s) => (u(), i(h, {
2101
2116
  key: `xLabel_plot_${s}`
2102
2117
  }, [
@@ -2108,10 +2123,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2108
2123
  x: t.x,
2109
2124
  y: t.y + l.value.plot.labels.offsetY,
2110
2125
  "text-anchor": "middle",
2111
- "font-size": m.value.plotLabels,
2126
+ "font-size": b.value.plotLabels,
2112
2127
  fill: l.value.plot.labels.color,
2113
2128
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2114
- }, le(ge(t.value) ? v(re)(
2129
+ }, le(xe(t.value) ? v(re)(
2115
2130
  l.value.plot.labels.formatter,
2116
2131
  t.value,
2117
2132
  v(me)({
@@ -2124,10 +2139,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2124
2139
  datapoint: t,
2125
2140
  serie: e
2126
2141
  }
2127
- ) : ""), 13, Es)) : d("", !0)
2142
+ ) : ""), 13, Ds)) : d("", !0)
2128
2143
  ], 64))), 128))
2129
2144
  ], 64))), 128))
2130
- ])) : (u(), i("g", Ws, [
2145
+ ])) : (u(), i("g", qs, [
2131
2146
  (u(!0), i(h, null, k(Le.value, (e, s) => (u(), i(h, {
2132
2147
  key: `xLabel_plot_${s}`
2133
2148
  }, [
@@ -2135,7 +2150,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2135
2150
  key: `xLabel_plot_${s}_${r}`
2136
2151
  }, [
2137
2152
  l.value.plot.tag.followValue ? (u(), i(h, { key: 1 }, [
2138
- [O.value, p.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
2153
+ [O.value, p.value, We.value].includes(r) && e.useTag ? (u(), i("line", {
2139
2154
  key: 0,
2140
2155
  class: "vue-ui-xy-tag-plot",
2141
2156
  x1: n.value.left,
@@ -2146,7 +2161,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2146
2161
  "stroke-linecap": "round",
2147
2162
  "stroke-dasharray": "2",
2148
2163
  stroke: e.color
2149
- }, null, 8, Us)) : d("", !0)
2164
+ }, null, 8, Qs)) : d("", !0)
2150
2165
  ], 64)) : (u(), i(h, { key: 0 }, [
2151
2166
  t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
2152
2167
  key: 0,
@@ -2157,7 +2172,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2157
2172
  style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2158
2173
  }, [
2159
2174
  x("div", {
2160
- style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${m.value.plotLabels}px;border-radius: 2px;`),
2175
+ style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2161
2176
  innerHTML: v(re)(
2162
2177
  l.value.plot.tag.formatter,
2163
2178
  t.value,
@@ -2168,18 +2183,18 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2168
2183
  serieName: e.name
2169
2184
  }
2170
2185
  )
2171
- }, null, 12, Gs)
2172
- ], 12, Xs)) : d("", !0),
2186
+ }, null, 12, Zs)
2187
+ ], 12, Us)) : d("", !0),
2173
2188
  t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
2174
2189
  key: 1,
2175
- x: t.x - e.name.length * (m.value.plotLabels / 2),
2190
+ x: t.x - e.name.length * (b.value.plotLabels / 2),
2176
2191
  y: t.y - 20,
2177
2192
  height: 24,
2178
2193
  width: "150",
2179
2194
  style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2180
2195
  }, [
2181
2196
  x("div", {
2182
- style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${m.value.plotLabels}px;border-radius: 2px;`),
2197
+ style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2183
2198
  innerHTML: v(re)(
2184
2199
  l.value.plot.tag.formatter,
2185
2200
  t.value,
@@ -2190,13 +2205,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2190
2205
  serieName: e.name
2191
2206
  }
2192
2207
  )
2193
- }, null, 12, qs)
2194
- ], 12, Ds)) : d("", !0)
2208
+ }, null, 12, Ks)
2209
+ ], 12, Js)) : d("", !0)
2195
2210
  ], 64))
2196
2211
  ], 64))), 128))
2197
2212
  ], 64))), 128))
2198
2213
  ])),
2199
- l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g", Zs, [
2214
+ l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g", js, [
2200
2215
  (u(!0), i(h, null, k(we.value, (e, s) => (u(), i(h, {
2201
2216
  key: `xLabel_line_${s}`
2202
2217
  }, [
@@ -2208,10 +2223,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2208
2223
  x: t.x,
2209
2224
  y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2210
2225
  "text-anchor": "middle",
2211
- "font-size": m.value.plotLabels,
2226
+ "font-size": b.value.plotLabels,
2212
2227
  fill: l.value.line.labels.color,
2213
2228
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2214
- }, le(ge(t.value) ? v(re)(
2229
+ }, le(xe(t.value) ? v(re)(
2215
2230
  l.value.line.labels.formatter,
2216
2231
  t.value,
2217
2232
  v(me)({
@@ -2224,10 +2239,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2224
2239
  datapoint: t,
2225
2240
  serie: e
2226
2241
  }
2227
- ) : ""), 13, Js)) : d("", !0)
2242
+ ) : ""), 13, eu)) : d("", !0)
2228
2243
  ], 64))), 128))
2229
2244
  ], 64))), 128))
2230
- ])) : (u(), i("g", Ks, [
2245
+ ])) : (u(), i("g", lu, [
2231
2246
  (u(!0), i(h, null, k(we.value, (e, s) => (u(), i(h, {
2232
2247
  key: `xLabel_line_${s}`
2233
2248
  }, [
@@ -2235,7 +2250,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2235
2250
  key: `xLabel_line_${s}_${r}`
2236
2251
  }, [
2237
2252
  l.value.line.tag.followValue ? (u(), i(h, { key: 1 }, [
2238
- [O.value, p.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
2253
+ [O.value, p.value, We.value].includes(r) && e.useTag ? (u(), i("line", {
2239
2254
  key: 0,
2240
2255
  class: "vue-ui-xy-tag-line",
2241
2256
  x1: n.value.left,
@@ -2246,7 +2261,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2246
2261
  "stroke-linecap": "round",
2247
2262
  "stroke-dasharray": "2",
2248
2263
  stroke: e.color
2249
- }, null, 8, au)) : d("", !0)
2264
+ }, null, 8, uu)) : d("", !0)
2250
2265
  ], 64)) : (u(), i(h, { key: 0 }, [
2251
2266
  t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
2252
2267
  key: 0,
@@ -2257,7 +2272,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2257
2272
  style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2258
2273
  }, [
2259
2274
  x("div", {
2260
- style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${m.value.plotLabels}px;border-radius: 2px;`),
2275
+ style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2261
2276
  innerHTML: v(re)(
2262
2277
  l.value.line.tag.formatter,
2263
2278
  t.value,
@@ -2268,8 +2283,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2268
2283
  serieName: e.name
2269
2284
  }
2270
2285
  )
2271
- }, null, 12, js)
2272
- ], 12, Qs)) : d("", !0),
2286
+ }, null, 12, tu)
2287
+ ], 12, au)) : d("", !0),
2273
2288
  t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
2274
2289
  key: 1,
2275
2290
  x: t.x,
@@ -2279,7 +2294,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2279
2294
  style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2280
2295
  }, [
2281
2296
  x("div", {
2282
- style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${m.value.plotLabels}px;border-radius: 2px;`),
2297
+ style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2283
2298
  innerHTML: v(re)(
2284
2299
  l.value.line.tag.formatter,
2285
2300
  t.value,
@@ -2290,8 +2305,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2290
2305
  serieName: e.name
2291
2306
  }
2292
2307
  )
2293
- }, null, 12, lu)
2294
- ], 12, eu)) : d("", !0)
2308
+ }, null, 12, su)
2309
+ ], 12, ou)) : d("", !0)
2295
2310
  ], 64))
2296
2311
  ], 64))), 128))
2297
2312
  ], 64))), 128))
@@ -2304,38 +2319,38 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2304
2319
  }, [
2305
2320
  t && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
2306
2321
  key: 0,
2307
- x: t.x - m.value.plotLabels,
2322
+ x: t.x - b.value.plotLabels,
2308
2323
  y: t.y,
2309
- "font-size": m.value.plotLabels,
2324
+ "font-size": b.value.plotLabels,
2310
2325
  "text-anchor": "end",
2311
2326
  fill: e.color,
2312
- innerHTML: v(Cl)({
2327
+ innerHTML: v(Il)({
2313
2328
  content: e.name,
2314
- fontSize: m.value.plotLabels,
2329
+ fontSize: b.value.plotLabels,
2315
2330
  fill: e.color,
2316
- x: t.x - m.value.plotLabels,
2331
+ x: t.x - b.value.plotLabels,
2317
2332
  y: t.y,
2318
2333
  maxWords: 2
2319
2334
  }),
2320
2335
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2321
- }, null, 12, tu)) : d("", !0),
2336
+ }, null, 12, ru)) : d("", !0),
2322
2337
  t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
2323
2338
  key: 1,
2324
- x: t.x + m.value.plotLabels,
2339
+ x: t.x + b.value.plotLabels,
2325
2340
  y: t.y,
2326
- "font-size": m.value.plotLabels,
2341
+ "font-size": b.value.plotLabels,
2327
2342
  "text-anchor": "start",
2328
2343
  fill: e.color,
2329
- innerHTML: v(Cl)({
2344
+ innerHTML: v(Il)({
2330
2345
  content: e.name,
2331
- fontSize: m.value.plotLabels,
2346
+ fontSize: b.value.plotLabels,
2332
2347
  fill: e.color,
2333
- x: t.x + m.value.plotLabels,
2348
+ x: t.x + b.value.plotLabels,
2334
2349
  y: t.y,
2335
2350
  maxWords: 2
2336
2351
  }),
2337
2352
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2338
- }, null, 12, ou)) : d("", !0)
2353
+ }, null, 12, iu)) : d("", !0)
2339
2354
  ], 64))), 128))
2340
2355
  ], 64))), 128)),
2341
2356
  (u(!0), i(h, null, k(Le.value, (e, s) => (u(), i(h, {
@@ -2346,43 +2361,43 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2346
2361
  }, [
2347
2362
  t && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
2348
2363
  key: 0,
2349
- x: t.x - m.value.plotLabels,
2364
+ x: t.x - b.value.plotLabels,
2350
2365
  y: t.y,
2351
- "font-size": m.value.plotLabels,
2366
+ "font-size": b.value.plotLabels,
2352
2367
  "text-anchor": "end",
2353
2368
  fill: e.color,
2354
- innerHTML: v(Cl)({
2369
+ innerHTML: v(Il)({
2355
2370
  content: e.name,
2356
- fontSize: m.value.plotLabels,
2371
+ fontSize: b.value.plotLabels,
2357
2372
  fill: e.color,
2358
- x: t.x - m.value.plotLabels,
2373
+ x: t.x - b.value.plotLabels,
2359
2374
  y: t.y,
2360
2375
  maxWords: 2
2361
2376
  }),
2362
2377
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2363
- }, null, 12, su)) : d("", !0),
2378
+ }, null, 12, nu)) : d("", !0),
2364
2379
  t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
2365
2380
  key: 1,
2366
- x: t.x + m.value.plotLabels,
2381
+ x: t.x + b.value.plotLabels,
2367
2382
  y: t.y,
2368
- "font-size": m.value.plotLabels,
2383
+ "font-size": b.value.plotLabels,
2369
2384
  "text-anchor": "start",
2370
2385
  fill: e.color,
2371
- innerHTML: v(Cl)({
2386
+ innerHTML: v(Il)({
2372
2387
  content: e.name,
2373
- fontSize: m.value.plotLabels,
2388
+ fontSize: b.value.plotLabels,
2374
2389
  fill: e.color,
2375
- x: t.x + m.value.plotLabels,
2390
+ x: t.x + b.value.plotLabels,
2376
2391
  y: t.y,
2377
2392
  maxWords: 2
2378
2393
  }),
2379
2394
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2380
- }, null, 12, uu)) : d("", !0)
2395
+ }, null, 12, cu)) : d("", !0)
2381
2396
  ], 64))), 128))
2382
2397
  ], 64))), 128)),
2383
2398
  f.value.useIndividualScale && !f.value.isStacked ? (u(), i(h, { key: 12 }, [
2384
2399
  x("defs", null, [
2385
- (u(!0), i(h, null, k(dl.value, (e, s) => (u(), i("linearGradient", {
2400
+ (u(!0), i(h, null, k(fl.value, (e, s) => (u(), i("linearGradient", {
2386
2401
  id: `individual_scale_gradient_${U.value}_${s}`,
2387
2402
  x1: "0%",
2388
2403
  x2: "100%",
@@ -2393,15 +2408,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2393
2408
  offset: "0%",
2394
2409
  "stop-color": l.value.chart.backgroundColor,
2395
2410
  "stop-opacity": "0"
2396
- }, null, 8, iu),
2411
+ }, null, 8, du),
2397
2412
  x("stop", {
2398
2413
  offset: "100%",
2399
2414
  "stop-color": e.color,
2400
2415
  "stop-opacity": "0.2"
2401
- }, null, 8, nu)
2402
- ], 8, ru))), 256))
2416
+ }, null, 8, hu)
2417
+ ], 8, vu))), 256))
2403
2418
  ]),
2404
- (u(!0), i(h, null, k(dl.value, (e, s) => (u(), i("rect", {
2419
+ (u(!0), i(h, null, k(fl.value, (e, s) => (u(), i("rect", {
2405
2420
  x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + G.value - n.value.individualOffsetX,
2406
2421
  y: n.value.top,
2407
2422
  width: l.value.chart.grid.labels.yAxis.labelWidth + n.value.individualOffsetX,
@@ -2409,29 +2424,29 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2409
2424
  fill: M.value === e.groupId ? `url(#individual_scale_gradient_${U.value}_${s})` : "transparent",
2410
2425
  onMouseenter: (t) => M.value = e.groupId,
2411
2426
  onMouseleave: c[0] || (c[0] = (t) => M.value = null)
2412
- }, null, 40, cu))), 256))
2427
+ }, null, 40, fu))), 256))
2413
2428
  ], 64)) : d("", !0),
2414
2429
  x("g", null, [
2415
2430
  l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
2416
2431
  key: 0,
2417
2432
  ref_key: "yAxisLabel",
2418
- ref: Pl,
2419
- "font-size": m.value.yAxis,
2433
+ ref: Hl,
2434
+ "font-size": b.value.yAxis,
2420
2435
  fill: l.value.chart.grid.labels.color,
2421
2436
  transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
2422
2437
  "text-anchor": "middle",
2423
2438
  style: { transition: "none" }
2424
- }, le(l.value.chart.grid.labels.axis.yLabel), 9, vu)) : d("", !0),
2439
+ }, le(l.value.chart.grid.labels.axis.yLabel), 9, gu)) : d("", !0),
2425
2440
  l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
2426
2441
  key: 1,
2427
2442
  ref_key: "xAxisLabel",
2428
- ref: Vl,
2443
+ ref: Pl,
2429
2444
  "text-anchor": "middle",
2430
2445
  x: ae.value / 2,
2431
2446
  y: ve.value - 3,
2432
- "font-size": m.value.yAxis,
2447
+ "font-size": b.value.yAxis,
2433
2448
  fill: l.value.chart.grid.labels.color
2434
- }, le(l.value.chart.grid.labels.axis.xLabel), 9, du)) : d("", !0)
2449
+ }, le(l.value.chart.grid.labels.axis.xLabel), 9, xu)) : d("", !0)
2435
2450
  ]),
2436
2451
  l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
2437
2452
  key: 13,
@@ -2442,54 +2457,54 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2442
2457
  key: `time_label_${s}`,
2443
2458
  ref_for: !0
2444
2459
  }, {
2445
- x: n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2,
2460
+ x: n.value.left + n.value.width / y.value * s + n.value.width / y.value / 2,
2446
2461
  y: n.value.bottom,
2447
- fontSize: m.value.xAxis,
2462
+ fontSize: b.value.xAxis,
2448
2463
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2449
- transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + m.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2464
+ transform: `translate(${n.value.left + n.value.width / y.value * s + n.value.width / y.value / 2}, ${n.value.bottom + b.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2450
2465
  absoluteIndex: e.absoluteIndex,
2451
2466
  content: e.text,
2452
2467
  textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2453
- show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && p.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((y.value.end - y.value.start) / $l.value) === 0
2468
+ show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && y.value <= Ll.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && p.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((m.value.end - m.value.start) / Ll.value) === 0
2454
2469
  }), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, k(J.value, (e, s) => (u(), i("g", {
2455
2470
  key: `time_label_${s}`
2456
2471
  }, [
2457
- e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && p.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((y.value.end - y.value.start) / $l.value) === 0 ? (u(), i(h, { key: 0 }, [
2472
+ e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && y.value <= Ll.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && p.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((m.value.end - m.value.start) / Ll.value) === 0 ? (u(), i(h, { key: 0 }, [
2458
2473
  String(e.text).includes(`
2459
2474
  `) ? (u(), i("text", {
2460
2475
  key: 1,
2461
2476
  "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2462
- "font-size": m.value.xAxis,
2477
+ "font-size": b.value.xAxis,
2463
2478
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2464
- transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + m.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2479
+ transform: `translate(${n.value.left + n.value.width / y.value * s + n.value.width / y.value / 2}, ${n.value.bottom + b.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2465
2480
  style: z({
2466
2481
  cursor: ga() ? "pointer" : "default"
2467
2482
  }),
2468
- innerHTML: v(Qt)({
2483
+ innerHTML: v(ao)({
2469
2484
  content: String(e.text),
2470
- fontSize: m.value.xAxis,
2485
+ fontSize: b.value.xAxis,
2471
2486
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2472
2487
  x: 0,
2473
2488
  y: 0
2474
2489
  }),
2475
- onClick: () => ba(e, s)
2476
- }, null, 12, fu)) : (u(), i("text", {
2490
+ onClick: () => ya(e, s)
2491
+ }, null, 12, mu)) : (u(), i("text", {
2477
2492
  key: 0,
2478
2493
  class: "vue-data-ui-time-label",
2479
2494
  "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2480
- "font-size": m.value.xAxis,
2495
+ "font-size": b.value.xAxis,
2481
2496
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2482
- transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + m.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2497
+ transform: `translate(${n.value.left + n.value.width / y.value * s + n.value.width / y.value / 2}, ${n.value.bottom + b.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2483
2498
  style: z({
2484
2499
  cursor: ga() ? "pointer" : "default"
2485
2500
  }),
2486
- onClick: () => ba(e, s)
2487
- }, le(e.text || ""), 13, hu))
2501
+ onClick: () => ya(e, s)
2502
+ }, le(e.text || ""), 13, bu))
2488
2503
  ], 64)) : d("", !0)
2489
2504
  ]))), 128))
2490
2505
  ], 512)) : d("", !0),
2491
- Ma.value.length && !f.value.isStacked ? (u(), i("g", gu, [
2492
- (u(!0), i(h, null, k(Ma.value, (e) => (u(), i("g", {
2506
+ Ca.value.length && !f.value.isStacked ? (u(), i("g", yu, [
2507
+ (u(!0), i(h, null, k(Ca.value, (e) => (u(), i("g", {
2493
2508
  key: e.uid
2494
2509
  }, [
2495
2510
  e.yTop && e.show && isFinite(e.yTop) ? (u(), i("line", {
@@ -2503,7 +2518,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2503
2518
  "stroke-dasharray": e.config.line.strokeDasharray,
2504
2519
  "stroke-linecap": "round",
2505
2520
  style: { animation: "none !important" }
2506
- }, null, 8, xu)) : d("", !0),
2521
+ }, null, 8, pu)) : d("", !0),
2507
2522
  e.yBottom && e.show && isFinite(e.yBottom) ? (u(), i("line", {
2508
2523
  key: 1,
2509
2524
  x1: e.x1,
@@ -2515,7 +2530,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2515
2530
  "stroke-dasharray": e.config.line.strokeDasharray,
2516
2531
  "stroke-linecap": "round",
2517
2532
  style: { animation: "none !important" }
2518
- }, null, 8, mu)) : d("", !0),
2533
+ }, null, 8, ku)) : d("", !0),
2519
2534
  e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
2520
2535
  key: 2,
2521
2536
  y: Math.min(e.yTop, e.yBottom),
@@ -2524,7 +2539,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2524
2539
  height: v(T)(e.areaHeight, 0),
2525
2540
  fill: v(Se)(e.config.area.fill, e.config.area.opacity),
2526
2541
  style: { animation: "none !important" }
2527
- }, null, 8, bu)) : d("", !0),
2542
+ }, null, 8, _u)) : d("", !0),
2528
2543
  e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", Ql({
2529
2544
  key: 3,
2530
2545
  class: "vue-ui-xy-annotation-label-box"
@@ -2538,25 +2553,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2538
2553
  "font-size": e.config.label.fontSize,
2539
2554
  fill: e.config.label.color,
2540
2555
  "text-anchor": e.config.label.textAnchor
2541
- }, le(e.config.label.text), 9, yu)) : d("", !0)
2556
+ }, le(e.config.label.text), 9, wu)) : d("", !0)
2542
2557
  ]))), 128))
2543
2558
  ])) : d("", !0),
2544
- Ul.value ? (u(), i("g", pu, [
2545
- (u(!0), i(h, null, k(b.value, (e, s) => (u(), i("rect", {
2546
- key: `tooltip_trap_${s}`,
2547
- x: n.value.left + n.value.width / b.value * s,
2548
- y: n.value.top,
2549
- height: n.value.height < 0 ? 10 : n.value.height,
2550
- width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
2551
- fill: "transparent",
2552
- onMouseenter: (t) => Ta(!0, s),
2553
- onMouseleave: (t) => Ta(!1, s),
2554
- onClick: (t) => kt(s)
2555
- }, null, 40, ku))), 128))
2556
- ])) : d("", !0),
2557
- l.value.chart.timeTag.show && (![null, void 0].includes(p.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", _u, [
2559
+ l.value.chart.timeTag.show && (![null, void 0].includes(p.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", Su, [
2558
2560
  (u(), i("foreignObject", {
2559
- x: n.value.left + n.value.width / b.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) - 100 + n.value.width / b.value / 2,
2561
+ x: n.value.left + n.value.width / y.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) - 100 + n.value.width / y.value / 2,
2560
2562
  y: n.value.bottom,
2561
2563
  width: "200",
2562
2564
  height: "40",
@@ -2566,20 +2568,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2566
2568
  class: "vue-ui-xy-time-tag",
2567
2569
  style: z(`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`)
2568
2570
  }, le(J.value[(p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)].text || (p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)), 5)
2569
- ], 8, wu)),
2571
+ ], 8, $u)),
2570
2572
  x("circle", {
2571
- cx: n.value.left + n.value.width / b.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
2573
+ cx: n.value.left + n.value.width / y.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / y.value / 2,
2572
2574
  cy: n.value.bottom,
2573
2575
  r: l.value.chart.timeTag.circleMarker.radius,
2574
2576
  fill: l.value.chart.timeTag.circleMarker.color
2575
- }, null, 8, Su)
2577
+ }, null, 8, Lu)
2576
2578
  ])) : d("", !0)
2577
2579
  ])) : d("", !0),
2578
- q(a.$slots, "svg", { svg: it.value }, void 0, !0)
2580
+ q(a.$slots, "svg", { svg: ct.value }, void 0, !0)
2579
2581
  ], 512)
2580
- ], 14, go)),
2581
- a.$slots.watermark ? (u(), i("div", $u, [
2582
- q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Gl) || v(ca) })), void 0, !0)
2582
+ ], 46, yo)),
2583
+ a.$slots.watermark ? (u(), i("div", Au, [
2584
+ q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Dl) || v(ca) })), void 0, !0)
2583
2585
  ])) : d("", !0),
2584
2586
  (u(!0), i(h, null, k(we.value, (e, s) => (u(), i(h, {
2585
2587
  key: `tag_line_${s}`
@@ -2587,23 +2589,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2587
2589
  (u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
2588
2590
  key: `tag_line_${s}_${r}`
2589
2591
  }, [
2590
- [O.value, p.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
2592
+ [O.value, p.value, We.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
2591
2593
  key: 0,
2592
2594
  ref_for: !0,
2593
- ref: (o) => Sl(s, r, o, "right", "line"),
2595
+ ref: (o) => $l(s, r, o, "right", "line"),
2594
2596
  class: "vue-ui-xy-tag",
2595
2597
  "data-tag": "right",
2596
2598
  style: z({
2597
2599
  position: "fixed",
2598
2600
  top: v(Ee)({
2599
- svgElement: ye.value,
2601
+ svgElement: de.value,
2600
2602
  x: n.value.right + l.value.line.tag.fontSize / 1.5,
2601
2603
  y: t.y,
2602
2604
  element: Ce.value[`${s}_${r}_right_line`],
2603
2605
  position: "right"
2604
2606
  }).top + "px",
2605
2607
  left: v(Ee)({
2606
- svgElement: ye.value,
2608
+ svgElement: de.value,
2607
2609
  x: n.value.right + l.value.line.tag.fontSize / 1.5,
2608
2610
  y: t.y,
2609
2611
  element: Ce.value[`${s}_${r}_right_line`],
@@ -2618,12 +2620,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2618
2620
  opacity: 1
2619
2621
  })
2620
2622
  }, [
2621
- (u(), i("svg", Lu, [
2623
+ (u(), i("svg", Mu, [
2622
2624
  x("path", {
2623
2625
  d: "M 0,10 10,0 10,20 Z",
2624
2626
  fill: e.color,
2625
2627
  stroke: "none"
2626
- }, null, 8, Au)
2628
+ }, null, 8, zu)
2627
2629
  ])),
2628
2630
  x("div", {
2629
2631
  class: "vue-ui-xy-tag-content",
@@ -2637,25 +2639,25 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2637
2639
  serieName: e.name
2638
2640
  }
2639
2641
  )
2640
- }, null, 8, Mu)
2642
+ }, null, 8, Cu)
2641
2643
  ], 4)) : d("", !0),
2642
- [O.value, p.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
2644
+ [O.value, p.value, We.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
2643
2645
  key: 1,
2644
2646
  ref_for: !0,
2645
- ref: (o) => Sl(s, r, o, "left", "line"),
2647
+ ref: (o) => $l(s, r, o, "left", "line"),
2646
2648
  class: "vue-ui-xy-tag",
2647
2649
  "data-tag": "left",
2648
2650
  style: z({
2649
2651
  position: "fixed",
2650
2652
  top: v(Ee)({
2651
- svgElement: ye.value,
2653
+ svgElement: de.value,
2652
2654
  x: n.value.left - l.value.line.tag.fontSize / 1.5,
2653
2655
  y: t.y,
2654
2656
  element: Ce.value[`${s}_${r}_left_line`],
2655
2657
  position: "left"
2656
2658
  }).top + "px",
2657
2659
  left: v(Ee)({
2658
- svgElement: ye.value,
2660
+ svgElement: de.value,
2659
2661
  x: n.value.left - l.value.line.tag.fontSize / 1.5,
2660
2662
  y: t.y,
2661
2663
  element: Ce.value[`${s}_${r}_left_line`],
@@ -2670,12 +2672,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2670
2672
  opacity: 1
2671
2673
  })
2672
2674
  }, [
2673
- (u(), i("svg", zu, [
2675
+ (u(), i("svg", Iu, [
2674
2676
  x("path", {
2675
2677
  d: "M 0,0 10,10 0,20 Z",
2676
2678
  fill: e.color,
2677
2679
  stroke: "none"
2678
- }, null, 8, Cu)
2680
+ }, null, 8, Tu)
2679
2681
  ])),
2680
2682
  x("div", {
2681
2683
  class: "vue-ui-xy-tag-content",
@@ -2689,7 +2691,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2689
2691
  serieName: e.name
2690
2692
  }
2691
2693
  )
2692
- }, null, 8, Iu)
2694
+ }, null, 8, Ou)
2693
2695
  ], 4)) : d("", !0)
2694
2696
  ], 64))), 128))
2695
2697
  ], 64))), 128)),
@@ -2699,23 +2701,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2699
2701
  (u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
2700
2702
  key: `tag_plot_${s}_${r}`
2701
2703
  }, [
2702
- [O.value, p.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
2704
+ [O.value, p.value, We.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
2703
2705
  key: 0,
2704
2706
  ref_for: !0,
2705
- ref: (o) => Sl(s, r, o, "right", "plot"),
2707
+ ref: (o) => $l(s, r, o, "right", "plot"),
2706
2708
  class: "vue-ui-xy-tag",
2707
2709
  "data-tag": "right",
2708
2710
  style: z({
2709
2711
  position: "fixed",
2710
2712
  top: v(Ee)({
2711
- svgElement: ye.value,
2713
+ svgElement: de.value,
2712
2714
  x: n.value.right + l.value.plot.tag.fontSize / 1.5,
2713
2715
  y: t.y,
2714
2716
  element: Ce.value[`${s}_${r}_right_plot`],
2715
2717
  position: "right"
2716
2718
  }).top + "px",
2717
2719
  left: v(Ee)({
2718
- svgElement: ye.value,
2720
+ svgElement: de.value,
2719
2721
  x: n.value.right + l.value.plot.tag.fontSize / 1.5,
2720
2722
  y: t.y,
2721
2723
  element: Ce.value[`${s}_${r}_right_plot`],
@@ -2730,12 +2732,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2730
2732
  opacity: 1
2731
2733
  })
2732
2734
  }, [
2733
- (u(), i("svg", Tu, [
2735
+ (u(), i("svg", Nu, [
2734
2736
  x("path", {
2735
2737
  d: "M 0,10 10,0 10,20 Z",
2736
2738
  fill: e.color,
2737
2739
  stroke: "none"
2738
- }, null, 8, Ou)
2740
+ }, null, 8, Vu)
2739
2741
  ])),
2740
2742
  x("div", {
2741
2743
  class: "vue-ui-xy-tag-content",
@@ -2749,25 +2751,25 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2749
2751
  serieName: e.name
2750
2752
  }
2751
2753
  )
2752
- }, null, 8, Nu)
2754
+ }, null, 8, Pu)
2753
2755
  ], 4)) : d("", !0),
2754
- [O.value, p.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
2756
+ [O.value, p.value, We.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
2755
2757
  key: 1,
2756
2758
  ref_for: !0,
2757
- ref: (o) => Sl(s, r, o, "left", "plot"),
2759
+ ref: (o) => $l(s, r, o, "left", "plot"),
2758
2760
  class: "vue-ui-xy-tag",
2759
2761
  "data-tag": "left",
2760
2762
  style: z({
2761
2763
  position: "fixed",
2762
2764
  top: v(Ee)({
2763
- svgElement: ye.value,
2765
+ svgElement: de.value,
2764
2766
  x: n.value.left - l.value.plot.tag.fontSize / 1.5,
2765
2767
  y: t.y,
2766
2768
  element: Ce.value[`${s}_${r}_left_plot`],
2767
2769
  position: "left"
2768
2770
  }).top + "px",
2769
2771
  left: v(Ee)({
2770
- svgElement: ye.value,
2772
+ svgElement: de.value,
2771
2773
  x: n.value.left - l.value.plot.tag.fontSize / 1.5,
2772
2774
  y: t.y,
2773
2775
  element: Ce.value[`${s}_${r}_left_plot`],
@@ -2782,12 +2784,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2782
2784
  opacity: 1
2783
2785
  })
2784
2786
  }, [
2785
- (u(), i("svg", Vu, [
2787
+ (u(), i("svg", Hu, [
2786
2788
  x("path", {
2787
2789
  d: "M 0,0 10,10 0,20 Z",
2788
2790
  fill: e.color,
2789
2791
  stroke: "none"
2790
- }, null, 8, Pu)
2792
+ }, null, 8, Ru)
2791
2793
  ])),
2792
2794
  x("div", {
2793
2795
  class: "vue-ui-xy-tag-content",
@@ -2801,14 +2803,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2801
2803
  serieName: e.name
2802
2804
  }
2803
2805
  )
2804
- }, null, 8, Hu)
2806
+ }, null, 8, Bu)
2805
2807
  ], 4)) : d("", !0)
2806
2808
  ], 64))), 128))
2807
2809
  ], 64))), 128)),
2808
- l.value.chart.zoom.show && Ve.value > 6 && Wl.value ? (u(), Me(so, {
2810
+ l.value.chart.zoom.show && Ve.value > 6 && Wl.value ? (u(), Me(no, {
2809
2811
  ref_key: "chartSlicer",
2810
2812
  ref: Ne,
2811
- key: `slicer_${Bl.value}`,
2813
+ key: `slicer_${Yl.value}`,
2812
2814
  background: l.value.chart.zoom.color,
2813
2815
  fontSize: l.value.chart.zoom.fontSize,
2814
2816
  useResetSlot: l.value.chart.zoom.useResetSlot,
@@ -2818,7 +2820,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2818
2820
  inputColor: l.value.chart.zoom.color,
2819
2821
  selectColor: l.value.chart.zoom.highlightColor,
2820
2822
  borderColor: l.value.chart.backgroundColor,
2821
- minimap: It.value,
2823
+ minimap: Vt.value,
2822
2824
  smoothMinimap: l.value.chart.zoom.minimap.smooth,
2823
2825
  minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
2824
2826
  minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
@@ -2829,18 +2831,18 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2829
2831
  verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
2830
2832
  max: Ve.value,
2831
2833
  min: 0,
2832
- valueStart: y.value.start,
2833
- valueEnd: y.value.end,
2834
- start: y.value.start,
2835
- "onUpdate:start": c[1] || (c[1] = (e) => y.value.start = e),
2836
- end: y.value.end,
2837
- "onUpdate:end": c[2] || (c[2] = (e) => y.value.end = e),
2834
+ valueStart: m.value.start,
2835
+ valueEnd: m.value.end,
2836
+ start: m.value.start,
2837
+ "onUpdate:start": c[1] || (c[1] = (e) => m.value.start = e),
2838
+ end: m.value.end,
2839
+ "onUpdate:end": c[2] || (c[2] = (e) => m.value.end = e),
2838
2840
  refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
2839
- refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Tl.dataset.map((e) => v(Ye)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
2841
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Ol.dataset.map((e) => v(Ye)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
2840
2842
  enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
2841
2843
  enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
2842
- onReset: pt,
2843
- onTrapMouse: mt
2844
+ onReset: _t,
2845
+ onTrapMouse: yt
2844
2846
  }, {
2845
2847
  "reset-action": ue(({ reset: e }) => [
2846
2848
  q(a.$slots, "reset-action", Ze(Je({ reset: e })), void 0, !0)
@@ -2856,10 +2858,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2856
2858
  }, [
2857
2859
  (u(!0), i(h, null, k(Te.value, (e, s) => (u(), i("div", {
2858
2860
  key: `div_legend_item_${s}`,
2859
- onClick: (t) => $a(e),
2861
+ onClick: (t) => Aa(e),
2860
2862
  class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": te.value.includes(e.id) })
2861
2863
  }, [
2862
- il.value[e.type] === "line" ? (u(), i("svg", Bu, [
2864
+ il.value[e.type] === "line" ? (u(), i("svg", Fu, [
2863
2865
  x("rect", {
2864
2866
  x: "0",
2865
2867
  y: "7.5",
@@ -2869,8 +2871,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2869
2871
  height: "3",
2870
2872
  width: "20",
2871
2873
  fill: e.color
2872
- }, null, 8, Yu),
2873
- xl(Il, {
2874
+ }, null, 8, Eu),
2875
+ ml(Tl, {
2874
2876
  plot: { x: 10, y: 9 },
2875
2877
  radius: 4,
2876
2878
  color: e.color,
@@ -2878,7 +2880,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2878
2880
  stroke: l.value.chart.backgroundColor,
2879
2881
  strokeWidth: 0.5
2880
2882
  }, null, 8, ["color", "shape", "stroke"])
2881
- ])) : il.value[e.type] === "bar" ? (u(), i("svg", Fu, [
2883
+ ])) : il.value[e.type] === "bar" ? (u(), i("svg", Xu, [
2882
2884
  il.value[e.type] === "bar" && a.$slots.pattern ? (u(), i("rect", {
2883
2885
  key: 0,
2884
2886
  x: "0",
@@ -2888,7 +2890,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2888
2890
  width: "40",
2889
2891
  stroke: "none",
2890
2892
  fill: e.color
2891
- }, null, 8, Eu)) : d("", !0),
2893
+ }, null, 8, Wu)) : d("", !0),
2892
2894
  il.value[e.type] === "bar" ? (u(), i("rect", {
2893
2895
  key: 1,
2894
2896
  x: "0",
@@ -2898,9 +2900,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2898
2900
  width: "40",
2899
2901
  stroke: "none",
2900
2902
  fill: a.$slots.pattern ? `url(#pattern_${U.value}_${e.slotAbsoluteIndex})` : e.color
2901
- }, null, 8, Wu)) : d("", !0)
2902
- ])) : (u(), i("svg", Xu, [
2903
- xl(Il, {
2903
+ }, null, 8, Gu)) : d("", !0)
2904
+ ])) : (u(), i("svg", Du, [
2905
+ ml(Tl, {
2904
2906
  plot: { x: 6, y: 6 },
2905
2907
  radius: 5,
2906
2908
  color: e.color,
@@ -2910,7 +2912,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2910
2912
  x("span", {
2911
2913
  style: z(`color:${l.value.chart.legend.color}`)
2912
2914
  }, le(e.name), 5)
2913
- ], 10, Ru))), 128))
2915
+ ], 10, Yu))), 128))
2914
2916
  ], 4)) : (u(), i("div", {
2915
2917
  key: 7,
2916
2918
  ref_key: "chartLegend",
@@ -2926,7 +2928,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2926
2928
  }, [
2927
2929
  q(a.$slots, "source", {}, void 0, !0)
2928
2930
  ], 512)) : d("", !0),
2929
- xl(v(Qa), {
2931
+ ml(v(et), {
2930
2932
  show: f.value.showTooltip && sa.value,
2931
2933
  backgroundColor: l.value.chart.tooltip.backgroundColor,
2932
2934
  color: l.value.chart.tooltip.color,
@@ -2938,19 +2940,21 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2938
2940
  position: l.value.chart.tooltip.position,
2939
2941
  offsetY: l.value.chart.tooltip.offsetY,
2940
2942
  parent: a.$refs.chart,
2941
- content: Tt.value,
2943
+ content: Pt.value,
2942
2944
  isFullscreen: al.value,
2943
- isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function"
2945
+ isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
2946
+ smooth: l.value.chart.tooltip.smooth,
2947
+ backdropFilter: l.value.chart.tooltip.backdropFilter
2944
2948
  }, {
2945
2949
  "tooltip-before": ue(() => [
2946
- q(a.$slots, "tooltip-before", Ze(Je({ ...za.value })), void 0, !0)
2950
+ q(a.$slots, "tooltip-before", Ze(Je({ ...Ia.value })), void 0, !0)
2947
2951
  ]),
2948
2952
  "tooltip-after": ue(() => [
2949
- q(a.$slots, "tooltip-after", Ze(Je({ ...za.value })), void 0, !0)
2953
+ q(a.$slots, "tooltip-after", Ze(Je({ ...Ia.value })), void 0, !0)
2950
2954
  ]),
2951
2955
  _: 3
2952
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2953
- Wl.value ? (u(), Me(v(at), {
2956
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
2957
+ Wl.value ? (u(), Me(v(ot), {
2954
2958
  key: 9,
2955
2959
  hideDetails: "",
2956
2960
  config: {
@@ -2968,44 +2972,44 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2968
2972
  }, {
2969
2973
  content: ue(() => [
2970
2974
  x("div", {
2971
- style: z(`${v(Gl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2975
+ style: z(`${v(Dl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2972
2976
  }, [
2973
- x("div", Gu, [
2974
- Bt(x("input", {
2977
+ x("div", qu, [
2978
+ Xt(x("input", {
2975
2979
  type: "checkbox",
2976
- "onUpdate:modelValue": c[3] || (c[3] = (e) => nl.value = e)
2980
+ "onUpdate:modelValue": c[3] || (c[3] = (e) => cl.value = e)
2977
2981
  }, null, 512), [
2978
- [Yt, nl.value]
2982
+ [Wt, cl.value]
2979
2983
  ]),
2980
2984
  x("div", {
2981
- onClick: c[4] || (c[4] = (e) => nl.value = !nl.value),
2985
+ onClick: c[4] || (c[4] = (e) => cl.value = !cl.value),
2982
2986
  style: { cursor: "pointer" }
2983
2987
  }, [
2984
- xl(v(et), {
2988
+ ml(v(at), {
2985
2989
  name: "chartLine",
2986
2990
  size: 20,
2987
2991
  stroke: l.value.chart.color
2988
2992
  }, null, 8, ["stroke"])
2989
2993
  ])
2990
2994
  ]),
2991
- nl.value ? (u(), Me(v(lt), {
2992
- key: `sparkline_${Yl.value}`,
2993
- dataset: Mt.value,
2994
- config: zt.value
2995
- }, null, 8, ["dataset", "config"])) : (u(), Me(v(Ka), {
2995
+ cl.value ? (u(), Me(v(tt), {
2996
+ key: `sparkline_${Fl.value}`,
2997
+ dataset: Tt.value,
2998
+ config: Ot.value
2999
+ }, null, 8, ["dataset", "config"])) : (u(), Me(v(ja), {
2996
3000
  key: `table_${ra.value}`,
2997
- colNames: Al.value.colNames,
2998
- head: Al.value.head,
2999
- body: Al.value.body,
3000
- config: Al.value.config,
3001
+ colNames: Ml.value.colNames,
3002
+ head: Ml.value.head,
3003
+ body: Ml.value.body,
3004
+ config: Ml.value.config,
3001
3005
  title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
3002
3006
  onClose: c[5] || (c[5] = (e) => f.value.showTable = !1)
3003
3007
  }, {
3004
3008
  th: ue(({ th: e }) => [
3005
- x("div", { innerHTML: e }, null, 8, Du)
3009
+ x("div", { innerHTML: e }, null, 8, Uu)
3006
3010
  ]),
3007
3011
  td: ue(({ td: e }) => [
3008
- Ft(le(isNaN(Number(e)) ? e : v(me)({
3012
+ Gt(le(isNaN(Number(e)) ? e : v(me)({
3009
3013
  p: l.value.chart.labels.prefix,
3010
3014
  v: e,
3011
3015
  s: l.value.chart.labels.suffix,
@@ -3018,10 +3022,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
3018
3022
  ]),
3019
3023
  _: 1
3020
3024
  }, 8, ["config"])) : d("", !0),
3021
- v(Xl) ? (u(), Me(co, { key: 10 })) : d("", !0)
3022
- ], 46, fo));
3025
+ v(Gl) ? (u(), Me(go, { key: 10 })) : d("", !0)
3026
+ ], 46, mo));
3023
3027
  }
3024
- }, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-0e1aac69"]]);
3028
+ }, nr = /* @__PURE__ */ bo(Zu, [["__scopeId", "data-v-d7bd80c1"]]);
3025
3029
  export {
3026
- rr as default
3030
+ nr as default
3027
3031
  };