vue-data-ui 2.2.90 → 2.2.91

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 (58) hide show
  1. package/dist/data-table-d-VcuH-r.js +1488 -0
  2. package/dist/{index.es-Cgqo-FBk.js → index.es-Dc9Fd4o6.js} +1 -1
  3. package/dist/legend-DJCYLsl_.js +61 -0
  4. package/dist/style.css +1 -1
  5. package/dist/themes-lgjsYHsH.js +4967 -0
  6. package/dist/title-BF-9Qcni.js +56 -0
  7. package/dist/tooltip-D85WEOKi.js +94 -0
  8. package/dist/user-options-DZgCz8UA.js +415 -0
  9. package/dist/vue-data-ui.js +455 -61
  10. package/dist/vue-ui-3d-bar-DW7kGJSz.js +20360 -0
  11. package/dist/vue-ui-age-pyramid-4hcuKpFY.js +781 -0
  12. package/dist/vue-ui-annotator-C83FVvl8.js +2175 -0
  13. package/dist/vue-ui-candlestick-diclGj95.js +807 -0
  14. package/dist/vue-ui-chestnut-ACetHLdG.js +1049 -0
  15. package/dist/vue-ui-cursor-Rx7UNaYT.js +229 -0
  16. package/dist/vue-ui-dashboard-B3PlN0ks.js +231 -0
  17. package/dist/vue-ui-digits-CxMXID42.js +154 -0
  18. package/dist/vue-ui-donut-DMiwVXNd.js +1534 -0
  19. package/dist/vue-ui-dumbbell-B_X1T8TR.js +621 -0
  20. package/dist/vue-ui-flow-B72wzQ6V.js +451 -0
  21. package/dist/vue-ui-galaxy-DXX5yivT.js +482 -0
  22. package/dist/vue-ui-gauge-Cs9PDurH.js +466 -0
  23. package/dist/vue-ui-heatmap-PcoNSLdN.js +581 -0
  24. package/dist/vue-ui-kpi-DchEmPtB.js +55 -0
  25. package/dist/vue-ui-mini-loader-DltJLkqy.js +131 -0
  26. package/dist/vue-ui-molecule-CWvukBzs.js +746 -0
  27. package/dist/vue-ui-mood-radar-DEfdtIi8.js +544 -0
  28. package/dist/vue-ui-nested-donuts-9URpqgXE.js +768 -0
  29. package/dist/vue-ui-onion-C0eowUT6.js +551 -0
  30. package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +647 -0
  31. package/dist/vue-ui-quadrant-_ddVAm9V.js +1174 -0
  32. package/dist/vue-ui-quick-chart-Cio0hDYO.js +1310 -0
  33. package/dist/vue-ui-radar-Dyg38i33.js +853 -0
  34. package/dist/vue-ui-rating-CE1Lmwd2.js +271 -0
  35. package/dist/vue-ui-relation-circle-BMlB3k3d.js +303 -0
  36. package/dist/vue-ui-rings-BuXeijvb.js +507 -0
  37. package/dist/vue-ui-scatter-B1hZfOua.js +870 -0
  38. package/dist/vue-ui-screenshot-0QXgxzGs.js +160 -0
  39. package/dist/vue-ui-smiley-B7kR7exr.js +763 -0
  40. package/dist/vue-ui-spark-trend-BmL2KiYL.js +245 -0
  41. package/dist/vue-ui-sparkgauge-BMzFv14L.js +158 -0
  42. package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +243 -0
  43. package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +244 -0
  44. package/dist/vue-ui-strip-plot-DyN6P0JO.js +614 -0
  45. package/dist/vue-ui-table-DM3zL89q.js +2180 -0
  46. package/dist/vue-ui-table-heatmap-gWx0Nslu.js +237 -0
  47. package/dist/vue-ui-thermometer-Bcqv5kd_.js +384 -0
  48. package/dist/vue-ui-timer-BIFxjujK.js +451 -0
  49. package/dist/vue-ui-tiremarks-zBwHpED_.js +248 -0
  50. package/dist/vue-ui-treemap-BaplVc_z.js +719 -0
  51. package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +734 -0
  52. package/dist/vue-ui-waffle-COOzH7M3.js +635 -0
  53. package/dist/vue-ui-wheel-BEpuVTBk.js +226 -0
  54. package/dist/vue-ui-word-cloud-DNqxAAiX.js +344 -0
  55. package/dist/vue-ui-xy-_mHq-czW.js +2058 -0
  56. package/dist/vue-ui-xy-canvas-DqX8Gee5.js +1003 -0
  57. package/package.json +1 -1
  58. package/dist/index-DZlxUin4.js +0 -57288
@@ -0,0 +1,870 @@
1
+ import { computed as m, ref as b, onMounted as Ye, onBeforeUnmount as Ee, openBlock as s, createElementBlock as i, normalizeClass as ze, normalizeStyle as X, createVNode as te, createCommentVNode as c, createBlock as q, unref as L, createSlots as Ve, withCtx as _, renderSlot as B, normalizeProps as ne, guardReactiveProps as ve, createElementVNode as y, Fragment as N, renderList as W, toDisplayString as w, createTextVNode as Ge, nextTick as Re } from "vue";
2
+ import { _ as Ue, e as qe, f as He, p as V, i as Je, j as ye, g as Ke, k as Se, N as Le, X as Qe, P as Ze, o as ce, a as Ae, n as H, D as et, y as tt, z as lt, v as at, w as ot } from "./data-table-d-VcuH-r.js";
3
+ import { t as st, u as ut } from "./vue-ui-age-pyramid-4hcuKpFY.js";
4
+ import { t as it } from "./themes-lgjsYHsH.js";
5
+ import { u as Te, _ as rt } from "./title-BF-9Qcni.js";
6
+ import { U as nt } from "./user-options-DZgCz8UA.js";
7
+ import { _ as vt } from "./tooltip-D85WEOKi.js";
8
+ import { L as yt } from "./legend-DJCYLsl_.js";
9
+ import { u as ct, a as dt, S as ht, A as pt } from "./vue-ui-3d-bar-DW7kGJSz.js";
10
+ const ft = ["id"], gt = ["xmlns", "viewBox"], xt = { key: 0 }, mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kt = { key: 1 }, _t = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], wt = { key: 0 }, $t = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Mt = { key: 1 }, Ct = { key: 2 }, zt = ["id"], St = ["stop-color"], Lt = ["stop-color"], At = ["id"], Tt = ["stop-color"], Bt = ["stop-color"], Nt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Ft = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Wt = { key: 0 }, Pt = ["d", "stroke", "stroke-width"], It = ["d", "stroke", "stroke-width"], Ot = ["d", "stroke", "stroke-width"], Xt = ["d", "stroke", "stroke-width"], Dt = {
11
+ key: 3,
12
+ style: { "pointer-events": "none !important" }
13
+ }, jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Et = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Vt = ["x", "y", "font-size", "fill", "font-weight"], Gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Rt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ut = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], qt = { key: 4 }, Ht = ["x", "y", "font-size", "fill"], Jt = ["x", "y", "font-size", "fill"], Kt = ["id", "transform", "font-size", "font-weight", "fill"], Qt = { key: 5 }, Zt = ["x", "y", "font-size", "fill"], el = ["x", "y", "font-size", "fill"], tl = ["font-size", "font-weight", "fill", "x", "y"], ll = ["id"], al = ["x", "y", "width", "height"], ol = { key: 6 }, sl = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], ul = ["x", "y", "fill", "font-size", "font-weight"], il = ["onClick"], rl = {
14
+ key: 0,
15
+ style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
16
+ }, nl = {
17
+ viewBox: "0 0 20 20",
18
+ height: "20",
19
+ width: "20",
20
+ style: { overflow: "hidden", background: "transparent" }
21
+ }, vl = { key: 0 }, yl = ["innerHTML"], cl = {
22
+ __name: "vue-ui-scatter",
23
+ props: {
24
+ config: {
25
+ type: Object,
26
+ default() {
27
+ return {};
28
+ }
29
+ },
30
+ dataset: {
31
+ type: Array,
32
+ default() {
33
+ return [];
34
+ }
35
+ }
36
+ },
37
+ setup(Be, { expose: Ne }) {
38
+ const P = Be, { vue_ui_scatter: Fe } = ct(), J = m(() => !!P.dataset && P.dataset.length), $ = b(qe()), We = b(null), le = b(!1), ae = b(""), de = b(0), R = b(null), he = b(null), pe = b(null), e = m(() => {
39
+ const l = Te({
40
+ userConfig: P.config,
41
+ defaultConfig: Fe
42
+ });
43
+ return l.theme ? {
44
+ ...Te({
45
+ userConfig: it.vue_ui_scatter[l.theme] || P.config,
46
+ defaultConfig: l
47
+ }),
48
+ customPalette: He[l.theme] || V
49
+ } : l;
50
+ }), K = b(null);
51
+ Ye(() => {
52
+ if (Je(P.dataset) && ye({
53
+ componentName: "VueUiScatter",
54
+ type: "dataset"
55
+ }), e.value.responsive) {
56
+ const l = st(() => {
57
+ const { width: r, height: t } = ut({
58
+ chart: R.value,
59
+ title: e.value.style.title.text ? he.value : null,
60
+ legend: e.value.style.legend.show ? pe.value : null
61
+ });
62
+ M.value.width = r, M.value.height = t;
63
+ });
64
+ K.value = new ResizeObserver(l), K.value.observe(R.value.parentNode);
65
+ }
66
+ }), Ee(() => {
67
+ K.value && K.value.disconnect();
68
+ });
69
+ const { isPrinting: Pe, isImaging: Ie, generatePdf: fe, generateImage: ge } = dt({
70
+ elementId: `vue-ui-scatter_${$.value}`,
71
+ fileName: e.value.style.title.text || "vue-ui-scatter"
72
+ }), xe = m(() => Ke(e.value.customPalette)), I = b({
73
+ showTable: e.value.table.show,
74
+ showTooltip: e.value.style.tooltip.show
75
+ }), M = b({
76
+ height: e.value.style.layout.height,
77
+ width: e.value.style.layout.width
78
+ }), Q = m(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), u = m(() => ({
79
+ top: e.value.style.layout.padding.top + Q.value,
80
+ right: M.value.width - e.value.style.layout.padding.right - Q.value,
81
+ bottom: M.value.height - e.value.style.layout.padding.bottom,
82
+ left: e.value.style.layout.padding.left,
83
+ height: M.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Q.value,
84
+ width: M.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - Q.value
85
+ })), f = m(() => {
86
+ P.dataset.forEach((a, n) => {
87
+ Se({
88
+ datasetObject: a,
89
+ requiredAttributes: ["values"]
90
+ }).forEach((g) => {
91
+ ye({
92
+ componentName: "VueUiScatter",
93
+ type: "datasetSerieAttribute",
94
+ property: g,
95
+ index: n
96
+ });
97
+ }), a.values && a.values.forEach((g, j) => {
98
+ Se({
99
+ datasetObject: g,
100
+ requiredAttributes: ["x", "y"]
101
+ }).forEach((G) => {
102
+ ye({
103
+ componentName: "VueUiScatter",
104
+ type: "datasetSerieAttribute",
105
+ property: `values.${G}`,
106
+ index: `${n} - ${j}`
107
+ });
108
+ });
109
+ });
110
+ });
111
+ const l = Math.min(...D.value.filter((a) => !p.value.includes(a.id)).flatMap((a) => a.values.map((n) => n.x))), r = Math.max(...D.value.filter((a) => !p.value.includes(a.id)).flatMap((a) => a.values.map((n) => n.x))), t = Math.min(...D.value.filter((a) => !p.value.includes(a.id)).flatMap((a) => a.values.map((n) => n.y))), o = Math.max(...D.value.filter((a) => !p.value.includes(a.id)).flatMap((a) => a.values.map((n) => n.y)));
112
+ return { xMin: l >= 0 ? 0 : l, xMax: r, yMin: t >= 0 ? 0 : t, yMax: o };
113
+ }), d = m(() => ({
114
+ x: u.value.left + Math.abs(f.value.xMin) / (f.value.xMax + Math.abs(f.value.xMin)) * u.value.width,
115
+ y: u.value.bottom - Math.abs(f.value.yMin) / (f.value.yMax + Math.abs(f.value.yMin)) * u.value.height
116
+ })), D = m(() => P.dataset.map((l, r) => {
117
+ const t = `cluster_${$.value}_${r}`;
118
+ return {
119
+ ...l,
120
+ id: t,
121
+ color: l.color ? l.color : xe.value[r] || V[r] || V[r % V.length],
122
+ opacity: p.value.includes(t) ? 0.5 : 1,
123
+ shape: l.shape ?? "circle",
124
+ segregate: () => we(t),
125
+ isSegregated: p.value.includes(t)
126
+ };
127
+ })), Oe = m(() => ({
128
+ cy: "scatter-div-legend",
129
+ backgroundColor: e.value.style.legend.backgroundColor,
130
+ color: e.value.style.legend.color,
131
+ fontSize: e.value.style.legend.fontSize,
132
+ paddingBottom: 12,
133
+ fontWeight: e.value.style.legend.bold ? "bold" : ""
134
+ })), oe = m(() => D.value.map((l, r) => ({
135
+ ...l,
136
+ plots: l.values.map((t) => ({
137
+ x: u.value.left + (t.x + Math.abs(f.value.xMin)) / (f.value.xMax + Math.abs(f.value.xMin)) * u.value.width,
138
+ y: u.value.bottom - (t.y + Math.abs(f.value.yMin)) / (f.value.yMax + Math.abs(f.value.yMin)) * u.value.height,
139
+ v: {
140
+ ...t,
141
+ name: t.name || ""
142
+ },
143
+ clusterName: l.name,
144
+ color: l.color ? l.color : xe.value[r] || V[r] || V[r % V.length],
145
+ id: `plot_${$.value}_${Math.random()}`,
146
+ weight: t.weight ?? e.value.style.layout.plots.radius
147
+ }))
148
+ })).filter((l) => !p.value.includes(l.id))), C = m(() => oe.value.map((l) => {
149
+ const r = l.plots.reduce((h, Y) => h + Y.x, 0) / l.plots.length, t = l.plots.reduce((h, Y) => h + Y.y, 0) / l.plots.length;
150
+ let o = 0, a = 0, n = 0;
151
+ for (const h of l.plots)
152
+ o += (h.x - r) * (h.y - t), a += (h.x - r) ** 2, n += (h.y - t) ** 2;
153
+ const g = o / Math.sqrt(a * n), j = g * (Math.sqrt(n) / Math.sqrt(a)), G = t - j * r, T = {
154
+ x1: u.value.left,
155
+ x2: u.value.right,
156
+ y1: j * u.value.left + G,
157
+ y2: j * u.value.right + G,
158
+ coefficient: g
159
+ }, k = (T.y2 - T.y1) / (T.x2 - T.x1), S = T.y1 - k * T.x1, F = Math.min(M.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (u.value.top - S) / k)), ee = {
160
+ x: F,
161
+ y: k * F + S <= e.value.style.layout.padding.top ? u.value.top : k * F + S
162
+ };
163
+ return {
164
+ ...l,
165
+ correlation: T,
166
+ label: ee,
167
+ plots: l.plots.map((h) => {
168
+ const Y = (h.x + k * h.y - k * S) / (1 + Math.pow(k, 2)), ue = (k * h.x + Math.pow(k, 2) * h.y + S) / (1 + Math.pow(k, 2)), x = Math.sqrt(Math.pow(h.x - Y, 2) + Math.pow(h.y - ue, 2));
169
+ return {
170
+ ...h,
171
+ deviation: x,
172
+ shape: l.shape,
173
+ color: l.color
174
+ };
175
+ })
176
+ };
177
+ })), me = m(() => Math.max(...C.value.flatMap((l) => l.plots.map((r) => Math.abs(r.deviation)))));
178
+ function Xe() {
179
+ return C.value;
180
+ }
181
+ function be(l, r) {
182
+ const t = Array.isArray(l) ? l.flatMap((x) => x.plots.map((E) => ({
183
+ x: E.x,
184
+ y: E.y
185
+ }))) : l.plots.map((x) => ({
186
+ x: x.x,
187
+ y: x.y
188
+ }));
189
+ let o = 1 / 0, a = -1 / 0, n = 1 / 0, g = -1 / 0;
190
+ t.forEach(({ x, y: E }) => {
191
+ o = Math.min(o, x), a = Math.max(a, x), n = Math.min(n, E), g = Math.max(g, E);
192
+ });
193
+ const j = a - o, G = g - n, T = j / r, k = G / r, S = Array(r).fill(0), F = Array(r).fill(0);
194
+ t.forEach(({ x, y: E }) => {
195
+ const ie = Math.floor((x - o) / T), re = Math.floor((E - n) / k);
196
+ S[ie] || (S[ie] = 0), F[re] || (F[re] = 0), S[ie] += 1, F[re] += 1;
197
+ });
198
+ const ee = [], h = [];
199
+ for (let x = 0; x < r; x += 1)
200
+ ee.push(o + (x + 0.5) * T), h.push(n + (x + 0.5) * k);
201
+ const Y = Math.max(...S), ue = Math.max(...F);
202
+ return { x: S, y: F, avgX: ee, avgY: h, maxX: Y, maxY: ue };
203
+ }
204
+ const O = m(() => e.value.style.layout.marginalBars.tranches), z = m(() => be(oe.value, O.value)), De = m(() => {
205
+ const l = u.value.top - e.value.style.layout.marginalBars.offset, r = u.value.right + e.value.style.layout.marginalBars.offset;
206
+ return oe.value.map((t) => {
207
+ const o = be(t, O.value);
208
+ return {
209
+ coords: o,
210
+ dX: Le(o.avgX.map((a, n) => ({
211
+ x: a,
212
+ y: l - o.x[n] / o.maxX * e.value.style.layout.marginalBars.size
213
+ }))),
214
+ dY: Le(o.avgY.map((a, n) => ({
215
+ y: a,
216
+ x: r + e.value.style.layout.marginalBars.size * o.y[n] / o.maxY
217
+ }))),
218
+ color: t.color,
219
+ id: t.id
220
+ };
221
+ });
222
+ }), A = b(void 0), v = b(null), se = b(null);
223
+ function ke(l, r) {
224
+ A.value = l.id, v.value = l;
225
+ let t = "";
226
+ se.value = {
227
+ datapoint: l,
228
+ seriesIndex: r,
229
+ series: C.value,
230
+ config: e.value
231
+ };
232
+ const o = e.value.style.tooltip.customFormat;
233
+ tt(o) && lt(() => o({
234
+ datapoint: l,
235
+ seriesIndex: r,
236
+ series: C.value,
237
+ config: e.value
238
+ })) ? ae.value = o({
239
+ datapoint: l,
240
+ seriesIndex: r,
241
+ series: C.value,
242
+ config: e.value
243
+ }) : (l.clusterName && (t += `<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`), l.v.name && (t += `<div>${l.v.name}</div>`), t += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, t += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x) ? "-" : H({
244
+ p: e.value.style.tooltip.prefix,
245
+ v: l.v.x,
246
+ s: e.value.style.tooltip.suffix,
247
+ r: e.value.style.tooltip.roundingValue
248
+ })}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" : H({
249
+ p: e.value.style.tooltip.prefix,
250
+ v: l.v.y,
251
+ s: e.value.style.tooltip.suffix,
252
+ r: e.value.style.tooltip.roundingValue
253
+ })}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${H({
254
+ v: l.deviation,
255
+ r: e.value.style.layout.plots.deviation.roundingValue
256
+ })}</b>`, t += "</div>", ae.value = `<div>${t}</div>`), le.value = !0;
257
+ }
258
+ function _e() {
259
+ le.value = !1, A.value = void 0, v.value = null;
260
+ }
261
+ const p = b([]);
262
+ function we(l) {
263
+ p.value.includes(l) ? p.value = p.value.filter((r) => r !== l) : p.value.length < P.dataset.length - 1 && p.value.push(l);
264
+ }
265
+ function $e() {
266
+ Re(() => {
267
+ const l = ["", e.value.table.translations.correlationCoefficient, e.value.table.translations.nbrPlots, `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`, `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`], r = C.value.map((a) => [
268
+ a.name,
269
+ a.correlation.coefficient,
270
+ a.plots.length,
271
+ a.plots.map((n) => n.v.x).reduce((n, g) => n + g, 0) / a.plots.length,
272
+ a.plots.map((n) => n.v.y).reduce((n, g) => n + g, 0) / a.plots.length
273
+ ]), t = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([l]).concat(r), o = at(t);
274
+ ot({ csvContent: o, title: e.value.style.title.text || "vue-ui-heatmap" });
275
+ });
276
+ }
277
+ const Z = m(() => {
278
+ const l = [
279
+ e.value.table.translations.series,
280
+ e.value.table.translations.correlationCoefficient,
281
+ e.value.table.translations.nbrPlots,
282
+ `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`,
283
+ `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`
284
+ ], r = C.value.map((o) => [
285
+ {
286
+ shape: o.shape,
287
+ content: o.name,
288
+ color: o.color
289
+ },
290
+ Number((o.correlation.coefficient ?? 0).toFixed(e.value.table.td.roundingValue)).toLocaleString(),
291
+ o.plots.length.toLocaleString(),
292
+ Number((o.plots.map((a) => a.v.x ?? 0).reduce((a, n) => a + n, 0) / o.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString(),
293
+ Number((o.plots.map((a) => a.v.y ?? 0).reduce((a, n) => a + n, 0) / o.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString()
294
+ ]), t = {
295
+ th: {
296
+ backgroundColor: e.value.table.th.backgroundColor,
297
+ color: e.value.table.th.color,
298
+ outline: e.value.table.th.outline
299
+ },
300
+ td: {
301
+ backgroundColor: e.value.table.td.backgroundColor,
302
+ color: e.value.table.td.color,
303
+ outline: e.value.table.td.outline
304
+ },
305
+ breakpoint: e.value.table.responsiveBreakpoint
306
+ };
307
+ return { head: l, body: r, config: t, colNames: l };
308
+ }), U = b(!1);
309
+ function je(l) {
310
+ U.value = l, de.value += 1;
311
+ }
312
+ function Me() {
313
+ I.value.showTable = !I.value.showTable;
314
+ }
315
+ function Ce() {
316
+ I.value.showTooltip = !I.value.showTooltip;
317
+ }
318
+ return Ne({
319
+ getData: Xe,
320
+ generatePdf: fe,
321
+ generateCsv: $e,
322
+ generateImage: ge,
323
+ toggleTable: Me,
324
+ toggleTooltip: Ce
325
+ }), (l, r) => (s(), i("div", {
326
+ class: ze(`vue-ui-scatter ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
327
+ ref_key: "scatterChart",
328
+ ref: R,
329
+ id: `vue-ui-scatter_${$.value}`,
330
+ style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
331
+ }, [
332
+ e.value.style.title.text ? (s(), i("div", {
333
+ key: 0,
334
+ ref_key: "chartTitle",
335
+ ref: he,
336
+ style: X(`width:100%;background:${e.value.style.backgroundColor}`)
337
+ }, [
338
+ te(rt, {
339
+ config: {
340
+ title: {
341
+ cy: "scatter-div-title",
342
+ ...e.value.style.title
343
+ },
344
+ subtitle: {
345
+ cy: "scatter-div-subtitle",
346
+ ...e.value.style.title.subtitle
347
+ }
348
+ }
349
+ }, null, 8, ["config"])
350
+ ], 4)) : c("", !0),
351
+ e.value.userOptions.show && J.value ? (s(), q(nt, {
352
+ ref_key: "details",
353
+ ref: We,
354
+ key: `user_options_${de.value}`,
355
+ backgroundColor: e.value.style.backgroundColor,
356
+ color: e.value.style.color,
357
+ isImaging: L(Ie),
358
+ isPrinting: L(Pe),
359
+ uid: $.value,
360
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
361
+ hasPdf: e.value.userOptions.buttons.pdf,
362
+ hasImg: e.value.userOptions.buttons.img,
363
+ hasXls: e.value.userOptions.buttons.csv,
364
+ hasTable: e.value.userOptions.buttons.table,
365
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
366
+ isTooltip: I.value.showTooltip,
367
+ isFullscreen: U.value,
368
+ titles: { ...e.value.userOptions.buttonTitles },
369
+ chartElement: R.value,
370
+ onToggleFullscreen: je,
371
+ onGeneratePdf: L(fe),
372
+ onGenerateCsv: $e,
373
+ onGenerateImage: L(ge),
374
+ onToggleTable: Me,
375
+ onToggleTooltip: Ce
376
+ }, Ve({ _: 2 }, [
377
+ l.$slots.optionTooltip ? {
378
+ name: "optionTooltip",
379
+ fn: _(() => [
380
+ B(l.$slots, "optionTooltip", {}, void 0, !0)
381
+ ]),
382
+ key: "0"
383
+ } : void 0,
384
+ l.$slots.optionPdf ? {
385
+ name: "optionPdf",
386
+ fn: _(() => [
387
+ B(l.$slots, "optionPdf", {}, void 0, !0)
388
+ ]),
389
+ key: "1"
390
+ } : void 0,
391
+ l.$slots.optionCsv ? {
392
+ name: "optionCsv",
393
+ fn: _(() => [
394
+ B(l.$slots, "optionCsv", {}, void 0, !0)
395
+ ]),
396
+ key: "2"
397
+ } : void 0,
398
+ l.$slots.optionImg ? {
399
+ name: "optionImg",
400
+ fn: _(() => [
401
+ B(l.$slots, "optionImg", {}, void 0, !0)
402
+ ]),
403
+ key: "3"
404
+ } : void 0,
405
+ l.$slots.optionTable ? {
406
+ name: "optionTable",
407
+ fn: _(() => [
408
+ B(l.$slots, "optionTable", {}, void 0, !0)
409
+ ]),
410
+ key: "4"
411
+ } : void 0,
412
+ l.$slots.optionFullscreen ? {
413
+ name: "optionFullscreen",
414
+ fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
415
+ B(l.$slots, "optionFullscreen", ne(ve({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
416
+ ]),
417
+ key: "5"
418
+ } : void 0
419
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
420
+ J.value ? (s(), i("svg", {
421
+ key: 2,
422
+ xmlns: L(Qe),
423
+ class: ze({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
424
+ viewBox: `0 0 ${M.value.width <= 0 ? 10 : M.value.width} ${M.value.height <= 0 ? 10 : M.value.height}`,
425
+ style: X(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)
426
+ }, [
427
+ e.value.style.layout.axis.show ? (s(), i("g", xt, [
428
+ y("line", {
429
+ x1: d.value.x,
430
+ x2: d.value.x,
431
+ y1: u.value.top,
432
+ y2: u.value.bottom,
433
+ stroke: e.value.style.layout.axis.stroke,
434
+ "stroke-width": e.value.style.layout.axis.strokeWidth,
435
+ "stroke-linecap": "round"
436
+ }, null, 8, mt),
437
+ y("line", {
438
+ x1: u.value.left,
439
+ x2: u.value.right,
440
+ y1: d.value.y,
441
+ y2: d.value.y,
442
+ stroke: e.value.style.layout.axis.stroke,
443
+ "stroke-width": e.value.style.layout.axis.strokeWidth,
444
+ "stroke-linecap": "round"
445
+ }, null, 8, bt)
446
+ ])) : c("", !0),
447
+ e.value.style.layout.plots.giftWrap.show ? (s(), i("g", kt, [
448
+ (s(!0), i(N, null, W(C.value, (t, o) => (s(), i("g", null, [
449
+ t.plots.length > 2 ? (s(), i("polygon", {
450
+ key: 0,
451
+ points: L(Ze)({ series: t.plots }),
452
+ fill: `${t.color}${L(ce)[e.value.style.layout.plots.giftWrap.fillOpacity * 100]}`,
453
+ "stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
454
+ "stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
455
+ stroke: t.color,
456
+ "stroke-linejoin": "round",
457
+ "stroke-linecap": "round"
458
+ }, null, 8, _t)) : c("", !0)
459
+ ]))), 256))
460
+ ])) : c("", !0),
461
+ (s(!0), i(N, null, W(C.value, (t, o) => (s(), i("g", null, [
462
+ !t.shape || t.shape === "circle" ? (s(), i("g", wt, [
463
+ (s(!0), i(N, null, W(t.plots, (a, n) => (s(), i("circle", {
464
+ cx: a.x,
465
+ cy: a.y,
466
+ r: A.value && A.value === a.id ? a.weight * 2 : a.weight,
467
+ fill: `${t.color}${L(ce)[e.value.style.layout.plots.opacity * 100]}`,
468
+ stroke: e.value.style.layout.plots.stroke,
469
+ "stroke-width": e.value.style.layout.plots.strokeWidth,
470
+ onMouseover: (g) => ke(a, o),
471
+ onMouseleave: _e,
472
+ style: X(`opacity:${A.value && A.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / me.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
473
+ }, null, 44, $t))), 256))
474
+ ])) : (s(), i("g", Mt, [
475
+ (s(!0), i(N, null, W(t.plots, (a, n) => (s(), q(Ae, {
476
+ plot: { x: a.x, y: a.y },
477
+ radius: A.value && A.value === a.id ? a.weight * 2 : a.weight,
478
+ shape: t.shape,
479
+ color: `${t.color}${L(ce)[e.value.style.layout.plots.opacity * 100]}`,
480
+ stroke: e.value.style.layout.plots.stroke,
481
+ strokeWidth: e.value.style.layout.plots.strokeWidth,
482
+ onMouseover: (g) => ke(a, o),
483
+ onMouseleave: _e,
484
+ style: X(`opacity:${A.value && A.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / me.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
485
+ }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
486
+ ]))
487
+ ]))), 256)),
488
+ e.value.style.layout.marginalBars.show ? (s(), i("g", Ct, [
489
+ y("defs", null, [
490
+ y("linearGradient", {
491
+ id: `marginal_x_${$.value}`,
492
+ x1: "0%",
493
+ y1: "0%",
494
+ x2: "0%",
495
+ y2: "100%"
496
+ }, [
497
+ y("stop", {
498
+ offset: "0%",
499
+ "stop-color": e.value.style.layout.marginalBars.fill
500
+ }, null, 8, St),
501
+ y("stop", {
502
+ offset: "100%",
503
+ "stop-color": e.value.style.backgroundColor
504
+ }, null, 8, Lt)
505
+ ], 8, zt),
506
+ y("linearGradient", {
507
+ id: `marginal_y_${$.value}`,
508
+ x1: "0%",
509
+ x2: "100%",
510
+ y1: "0%",
511
+ y2: "0%"
512
+ }, [
513
+ y("stop", {
514
+ offset: "0%",
515
+ "stop-color": e.value.style.backgroundColor
516
+ }, null, 8, Tt),
517
+ y("stop", {
518
+ offset: "100%",
519
+ "stop-color": e.value.style.layout.marginalBars.fill
520
+ }, null, 8, Bt)
521
+ ], 8, At)
522
+ ]),
523
+ (s(!0), i(N, null, W(z.value.x, (t, o) => (s(), i("g", null, [
524
+ t && z.value.avgX[o] ? (s(), i("rect", {
525
+ key: 0,
526
+ x: z.value.avgX[o] - u.value.width / O.value / 2,
527
+ y: u.value.top - e.value.style.layout.marginalBars.offset - t / z.value.maxX * e.value.style.layout.marginalBars.size,
528
+ width: u.value.width / O.value <= 0 ? 1e-4 : u.value.width / O.value,
529
+ height: t / z.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / z.value.maxX * e.value.style.layout.marginalBars.size,
530
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${$.value})` : e.value.style.layout.marginalBars.fill,
531
+ style: X(`opacity:${e.value.style.layout.marginalBars.opacity}`),
532
+ stroke: e.value.style.backgroundColor,
533
+ "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
534
+ rx: e.value.style.layout.marginalBars.borderRadius
535
+ }, null, 12, Nt)) : c("", !0)
536
+ ]))), 256)),
537
+ (s(!0), i(N, null, W(z.value.y, (t, o) => (s(), i("g", null, [
538
+ t && z.value.avgY[o] ? (s(), i("rect", {
539
+ key: 0,
540
+ x: u.value.right + e.value.style.layout.marginalBars.offset,
541
+ y: z.value.avgY[o] - u.value.height / O.value / 2,
542
+ height: u.value.height / O.value <= 0 ? 1e-4 : u.value.height / O.value,
543
+ width: t / z.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / z.value.maxY * e.value.style.layout.marginalBars.size,
544
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${$.value})` : e.value.style.layout.marginalBars.fill,
545
+ style: X(`opacity:${e.value.style.layout.marginalBars.opacity}`),
546
+ stroke: e.value.style.backgroundColor,
547
+ "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
548
+ rx: e.value.style.layout.marginalBars.borderRadius
549
+ }, null, 12, Ft)) : c("", !0)
550
+ ]))), 256)),
551
+ e.value.style.layout.marginalBars.showLines ? (s(), i("g", Wt, [
552
+ (s(!0), i(N, null, W(De.value, (t) => (s(), i(N, null, [
553
+ p.value.includes(t.id) ? c("", !0) : (s(), i("path", {
554
+ key: 0,
555
+ d: `M ${t.dX}`,
556
+ stroke: e.value.style.backgroundColor,
557
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
558
+ "stroke-linecap": "round",
559
+ "stroke-linejoin": "round",
560
+ fill: "none"
561
+ }, null, 8, Pt)),
562
+ p.value.includes(t.id) ? c("", !0) : (s(), i("path", {
563
+ key: 1,
564
+ d: `M ${t.dX}`,
565
+ stroke: t.color,
566
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
567
+ "stroke-linecap": "round",
568
+ "stroke-linejoin": "round",
569
+ fill: "none"
570
+ }, null, 8, It)),
571
+ p.value.includes(t.id) ? c("", !0) : (s(), i("path", {
572
+ key: 2,
573
+ d: `M ${t.dY}`,
574
+ stroke: e.value.style.backgroundColor,
575
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
576
+ "stroke-linecap": "round",
577
+ "stroke-linejoin": "round",
578
+ fill: "none"
579
+ }, null, 8, Ot)),
580
+ p.value.includes(t.id) ? c("", !0) : (s(), i("path", {
581
+ key: 3,
582
+ d: `M ${t.dY}`,
583
+ stroke: t.color,
584
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
585
+ "stroke-linecap": "round",
586
+ "stroke-linejoin": "round",
587
+ fill: "none"
588
+ }, null, 8, Xt))
589
+ ], 64))), 256))
590
+ ])) : c("", !0)
591
+ ])) : c("", !0),
592
+ v.value && e.value.style.layout.plots.selectors.show ? (s(), i("g", Dt, [
593
+ y("line", {
594
+ x1: d.value.x,
595
+ x2: v.value.x,
596
+ y1: v.value.y,
597
+ y2: v.value.y,
598
+ stroke: e.value.style.layout.plots.selectors.stroke,
599
+ "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
600
+ "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
601
+ "stroke-linecap": "round",
602
+ class: "line-pointer"
603
+ }, null, 8, jt),
604
+ y("line", {
605
+ x1: v.value.x,
606
+ x2: v.value.x,
607
+ y1: d.value.y,
608
+ y2: v.value.y,
609
+ stroke: e.value.style.layout.plots.selectors.stroke,
610
+ "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
611
+ "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
612
+ "stroke-linecap": "round",
613
+ class: "line-pointer"
614
+ }, null, 8, Yt),
615
+ y("text", {
616
+ x: d.value.x + (v.value.x > d.value.x ? -6 : 6),
617
+ y: v.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
618
+ "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
619
+ fill: e.value.style.layout.plots.selectors.labels.color,
620
+ "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
621
+ "text-anchor": v.value.x > d.value.x ? "end" : "start"
622
+ }, w(L(H)({
623
+ p: e.value.style.layout.plots.selectors.labels.prefix,
624
+ v: v.value.v.y,
625
+ s: e.value.style.layout.plots.selectors.labels.suffix,
626
+ r: e.value.style.layout.plots.selectors.labels.rounding
627
+ })), 9, Et),
628
+ y("text", {
629
+ x: v.value.x,
630
+ y: d.value.y + (v.value.y > d.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
631
+ "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
632
+ fill: e.value.style.layout.plots.selectors.labels.color,
633
+ "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
634
+ "text-anchor": "middle"
635
+ }, w(L(H)({
636
+ p: e.value.style.layout.plots.selectors.labels.prefix,
637
+ v: v.value.v.x,
638
+ s: e.value.style.layout.plots.selectors.labels.suffix,
639
+ r: e.value.style.layout.plots.selectors.labels.rounding
640
+ })), 9, Vt),
641
+ y("circle", {
642
+ cx: d.value.x,
643
+ cy: v.value.y,
644
+ r: e.value.style.layout.plots.selectors.markers.radius,
645
+ fill: e.value.style.layout.plots.selectors.markers.fill,
646
+ stroke: e.value.style.layout.plots.selectors.markers.stroke,
647
+ "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
648
+ class: "line-pointer"
649
+ }, null, 8, Gt),
650
+ y("circle", {
651
+ cx: v.value.x,
652
+ cy: d.value.y,
653
+ r: e.value.style.layout.plots.selectors.markers.radius,
654
+ fill: e.value.style.layout.plots.selectors.markers.fill,
655
+ stroke: e.value.style.layout.plots.selectors.markers.stroke,
656
+ "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
657
+ class: "line-pointer"
658
+ }, null, 8, Rt),
659
+ e.value.style.layout.plots.selectors.labels.showName ? (s(), i("text", {
660
+ key: 0,
661
+ x: v.value.x,
662
+ y: v.value.y + (v.value.y < d.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
663
+ "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
664
+ fill: e.value.style.layout.plots.selectors.labels.color,
665
+ "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
666
+ "text-anchor": v.value.x < u.value.left + 100 ? "start" : v.value.x > u.value.right - 100 ? "end" : v.value.x > d.value.x ? "start" : "end"
667
+ }, w(v.value.v.name), 9, Ut)) : c("", !0)
668
+ ])) : c("", !0),
669
+ e.value.style.layout.dataLabels.xAxis.show ? (s(), i("g", qt, [
670
+ y("text", {
671
+ x: u.value.left - 5,
672
+ y: d.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
673
+ "text-anchor": "end",
674
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
675
+ fill: e.value.style.layout.dataLabels.xAxis.color
676
+ }, w(Number(f.value.xMin.toFixed(e.value.style.layout.dataLabels.xAxis.rounding)).toLocaleString()), 9, Ht),
677
+ y("text", {
678
+ x: u.value.right + 3,
679
+ y: d.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
680
+ "text-anchor": "start",
681
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
682
+ fill: e.value.style.layout.dataLabels.xAxis.color
683
+ }, w(Number(f.value.xMax.toFixed(e.value.style.layout.dataLabels.xAxis.rounding)).toLocaleString()), 9, Jt),
684
+ y("text", {
685
+ id: `vue-ui-scatter-xAxis-label-${$.value}`,
686
+ transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize * 2}, ${u.value.top + u.value.height / 2}), rotate(-90)`,
687
+ "text-anchor": "middle",
688
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
689
+ "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
690
+ fill: e.value.style.layout.dataLabels.xAxis.color
691
+ }, w(e.value.style.layout.dataLabels.xAxis.name), 9, Kt)
692
+ ])) : c("", !0),
693
+ e.value.style.layout.dataLabels.yAxis.show ? (s(), i("g", Qt, [
694
+ y("text", {
695
+ x: d.value.x,
696
+ y: u.value.bottom + e.value.style.layout.dataLabels.yAxis.fontSize + 3,
697
+ "text-anchor": "middle",
698
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
699
+ fill: e.value.style.layout.dataLabels.yAxis.color
700
+ }, w(Number(f.value.yMin.toFixed(e.value.style.layout.dataLabels.yAxis.rounding)).toLocaleString()), 9, Zt),
701
+ y("text", {
702
+ x: d.value.x,
703
+ y: u.value.top - e.value.style.layout.dataLabels.yAxis.fontSize / 2,
704
+ "text-anchor": "middle",
705
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
706
+ fill: e.value.style.layout.dataLabels.yAxis.color
707
+ }, w(Number(f.value.yMax.toFixed(e.value.style.layout.dataLabels.yAxis.rounding)).toLocaleString()), 9, el),
708
+ y("text", {
709
+ "text-anchor": "middle",
710
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
711
+ "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
712
+ fill: e.value.style.layout.dataLabels.yAxis.color,
713
+ x: u.value.left + u.value.width / 2,
714
+ y: u.value.bottom + 8 + e.value.style.layout.dataLabels.yAxis.fontSize * 2
715
+ }, w(e.value.style.layout.dataLabels.yAxis.name), 9, tl)
716
+ ])) : c("", !0),
717
+ y("clipPath", {
718
+ id: `clip_path_${$.value}`
719
+ }, [
720
+ y("rect", {
721
+ x: u.value.left,
722
+ y: u.value.top,
723
+ width: u.value.width <= 0 ? 1e-4 : u.value.width,
724
+ height: u.value.height <= 0 ? 1e-4 : u.value.height
725
+ }, null, 8, al)
726
+ ], 8, ll),
727
+ e.value.style.layout.correlation.show ? (s(), i("g", ol, [
728
+ (s(!0), i(N, null, W(C.value, (t, o) => (s(), i("line", {
729
+ x1: t.correlation.x1,
730
+ x2: t.correlation.x2,
731
+ y1: t.correlation.y1,
732
+ y2: t.correlation.y2,
733
+ "stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
734
+ stroke: t.color,
735
+ "stroke-width": e.value.style.layout.correlation.strokeWidth,
736
+ "clip-path": `url(#clip_path_${$.value})`
737
+ }, null, 8, sl))), 256)),
738
+ (s(!0), i(N, null, W(C.value, (t, o) => (s(), i("g", null, [
739
+ e.value.style.layout.correlation.label.show ? (s(), i("text", {
740
+ key: 0,
741
+ x: t.label.x,
742
+ y: t.label.y,
743
+ fill: e.value.style.layout.correlation.label.useSerieColor ? t.color : e.value.style.layout.correlation.label.color,
744
+ "font-size": e.value.style.layout.correlation.label.fontSize,
745
+ "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
746
+ }, w(Number(t.correlation.coefficient.toFixed(e.value.style.layout.correlation.label.roundingValue)).toLocaleString()), 9, ul)) : c("", !0)
747
+ ]))), 256))
748
+ ])) : c("", !0),
749
+ B(l.$slots, "svg", { svg: M.value }, void 0, !0)
750
+ ], 14, gt)) : c("", !0),
751
+ J.value ? c("", !0) : (s(), q(ht, {
752
+ key: 3,
753
+ config: {
754
+ type: "quadrant",
755
+ style: {
756
+ backgroundColor: e.value.style.backgroundColor,
757
+ quadrant: {
758
+ grid: {
759
+ color: e.value.style.layout.axis.stroke
760
+ },
761
+ plots: {
762
+ color: e.value.style.layout.axis.stroke,
763
+ radius: 1
764
+ }
765
+ }
766
+ }
767
+ }
768
+ }, null, 8, ["config"])),
769
+ y("div", {
770
+ ref_key: "chartLegend",
771
+ ref: pe
772
+ }, [
773
+ e.value.style.legend.show ? (s(), q(yt, {
774
+ key: 0,
775
+ legendSet: D.value,
776
+ config: Oe.value,
777
+ onClickMarker: r[0] || (r[0] = ({ legend: t }) => we(t.id))
778
+ }, {
779
+ item: _(({ legend: t }) => [
780
+ y("div", {
781
+ onClick: (o) => t.segregate(),
782
+ style: X(`opacity:${p.value.includes(t.id) ? 0.5 : 1}`)
783
+ }, w(t.name), 13, il)
784
+ ]),
785
+ _: 1
786
+ }, 8, ["legendSet", "config"])) : B(l.$slots, "legend", {
787
+ key: 1,
788
+ legend: D.value
789
+ }, void 0, !0)
790
+ ], 512),
791
+ te(vt, {
792
+ show: I.value.showTooltip && le.value,
793
+ backgroundColor: e.value.style.tooltip.backgroundColor,
794
+ color: e.value.style.tooltip.color,
795
+ borderRadius: e.value.style.tooltip.borderRadius,
796
+ borderColor: e.value.style.tooltip.borderColor,
797
+ borderWidth: e.value.style.tooltip.borderWidth,
798
+ fontSize: e.value.style.tooltip.fontSize,
799
+ backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
800
+ parent: R.value,
801
+ content: ae.value,
802
+ isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
803
+ }, {
804
+ "tooltip-before": _(() => [
805
+ B(l.$slots, "tooltip-before", ne(ve({ ...se.value })), void 0, !0)
806
+ ]),
807
+ "tooltip-after": _(() => [
808
+ B(l.$slots, "tooltip-after", ne(ve({ ...se.value })), void 0, !0)
809
+ ]),
810
+ default: _(() => [
811
+ e.value.style.tooltip.showShape ? (s(), i("div", rl, [
812
+ (s(), i("svg", nl, [
813
+ te(Ae, {
814
+ shape: v.value.shape,
815
+ color: v.value.color,
816
+ plot: { x: 10, y: 10 },
817
+ radius: 7
818
+ }, null, 8, ["shape", "color"])
819
+ ]))
820
+ ])) : c("", !0)
821
+ ]),
822
+ _: 3
823
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "parent", "content", "isCustom"]),
824
+ J.value ? (s(), q(pt, {
825
+ key: 4,
826
+ hideDetails: "",
827
+ config: {
828
+ open: I.value.showTable,
829
+ maxHeight: 1e4,
830
+ body: {
831
+ backgroundColor: e.value.style.backgroundColor,
832
+ color: e.value.style.color
833
+ },
834
+ head: {
835
+ backgroundColor: e.value.style.backgroundColor,
836
+ color: e.value.style.color
837
+ }
838
+ }
839
+ }, {
840
+ content: _(() => [
841
+ te(et, {
842
+ colNames: Z.value.colNames,
843
+ head: Z.value.head,
844
+ body: Z.value.body,
845
+ config: Z.value.config,
846
+ title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
847
+ onClose: r[1] || (r[1] = (t) => I.value.showTable = !1)
848
+ }, {
849
+ th: _(({ th: t }) => [
850
+ Ge(w(t), 1)
851
+ ]),
852
+ td: _(({ td: t }) => [
853
+ t.shape ? (s(), i("div", vl, [
854
+ y("span", null, w(t.content), 1)
855
+ ])) : (s(), i("div", {
856
+ key: 1,
857
+ innerHTML: t
858
+ }, null, 8, yl))
859
+ ]),
860
+ _: 1
861
+ }, 8, ["colNames", "head", "body", "config", "title"])
862
+ ]),
863
+ _: 1
864
+ }, 8, ["config"])) : c("", !0)
865
+ ], 14, ft));
866
+ }
867
+ }, _l = /* @__PURE__ */ Ue(cl, [["__scopeId", "data-v-134a7dfd"]]);
868
+ export {
869
+ _l as default
870
+ };