vue-data-ui 3.0.0-next.2 → 3.0.0-next.20

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