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

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