vue-data-ui 2.12.8-beta.3 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
- package/dist/dom-to-png-4VVH9Qna.js +247 -0
- package/dist/img-Dy6IrSzX.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DVZpeH84.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Q as H, Z, a7 as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as J } from "./useNestedProp-
|
|
4
|
-
import { defineAsyncComponent as W, resolveComponent as R, createElementBlock as a, openBlock as i, normalizeStyle as y, normalizeClass as E, createBlock as B, createCommentVNode as u, createVNode as U, createSlots as
|
|
5
|
-
import { S as Xe } from "./Slicer-
|
|
6
|
-
import Ue from "./Title-
|
|
7
|
-
import { _ as Ze } from "./Shape-
|
|
1
|
+
import { Q as H, Z, a7 as te, a8 as j, a9 as le, aa as re, ab as ie, ac as ae, ad as se, c as Q, A as ne, F as ce, w as oe, s as he, o as ue, a1 as de, ae as ge, x as fe, C as Ie, y as Ne, a6 as me, e as xe, r as be, f as $, af as Fe, T as _e, U as ye, q as Ae, b as Le, z as Ce, d as Se, ag as ke, v as we, ah as Oe, D as Ge, a4 as ve, ai as pe, i as Me, G as ze, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-BXbyT0Qn.js";
|
|
2
|
+
import { u as Be } from "./useMouse-AicQS8Vf.js";
|
|
3
|
+
import { u as J } from "./useNestedProp-DVZpeH84.js";
|
|
4
|
+
import { defineAsyncComponent as W, resolveComponent as R, createElementBlock as a, openBlock as i, normalizeStyle as y, normalizeClass as E, createBlock as B, createCommentVNode as u, createVNode as U, createSlots as We, withCtx as V, renderSlot as G, normalizeProps as Y, guardReactiveProps as q, createElementVNode as f, Fragment as g, renderList as N, toDisplayString as T, mergeProps as K, withDirectives as Ee, vModelCheckbox as Ye, createTextVNode as qe } from "vue";
|
|
5
|
+
import { S as Xe } from "./Slicer-CxdgZOQ7.js";
|
|
6
|
+
import Ue from "./Title-DoWqzga-.js";
|
|
7
|
+
import { _ as Ze } from "./Shape-CnD-h_98.js";
|
|
8
8
|
import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const Ke = Q(), Qe = {
|
|
10
10
|
name: "vue-ui-xy",
|
|
@@ -28,15 +28,15 @@ const Ke = Q(), Qe = {
|
|
|
28
28
|
Title: Ue,
|
|
29
29
|
// Must be ready in responsive mode
|
|
30
30
|
Shape: Ze,
|
|
31
|
-
DataTable: W(() => import("./DataTable-
|
|
32
|
-
Tooltip: W(() => import("./Tooltip-
|
|
33
|
-
UserOptions: W(() => import("./UserOptions-
|
|
34
|
-
BaseIcon: W(() => import("./BaseIcon-
|
|
35
|
-
TableSparkline: W(() => import("./vue-ui-table-sparkline-
|
|
36
|
-
Skeleton: W(() => import("./vue-ui-skeleton-
|
|
37
|
-
Accordion: W(() => import("./vue-ui-accordion-
|
|
38
|
-
PackageVersion: W(() => import("./PackageVersion-
|
|
39
|
-
PenAndPaper: W(() => import("./PenAndPaper-
|
|
31
|
+
DataTable: W(() => import("./DataTable-DBkfb6pd.js")),
|
|
32
|
+
Tooltip: W(() => import("./Tooltip-DYCBNM-_.js")),
|
|
33
|
+
UserOptions: W(() => import("./UserOptions-B3q-xfQV.js")),
|
|
34
|
+
BaseIcon: W(() => import("./BaseIcon-P7wV92Er.js")),
|
|
35
|
+
TableSparkline: W(() => import("./vue-ui-table-sparkline-CMhk8rpj.js")),
|
|
36
|
+
Skeleton: W(() => import("./vue-ui-skeleton-Fxr752Oi.js")),
|
|
37
|
+
Accordion: W(() => import("./vue-ui-accordion-CXsjHe1y.js")),
|
|
38
|
+
PackageVersion: W(() => import("./PackageVersion-C5fpg4GN.js")),
|
|
39
|
+
PenAndPaper: W(() => import("./PenAndPaper-BRkuVFb4.js"))
|
|
40
40
|
},
|
|
41
41
|
data() {
|
|
42
42
|
this.dataset.forEach((d, r) => {
|
|
@@ -54,15 +54,15 @@ const Ke = Q(), Qe = {
|
|
|
54
54
|
return {
|
|
55
55
|
resizeObserver: null,
|
|
56
56
|
observedEl: null,
|
|
57
|
-
themePalettes:
|
|
58
|
-
themes:
|
|
57
|
+
themePalettes: De,
|
|
58
|
+
themes: He,
|
|
59
59
|
slicerStep: 0,
|
|
60
60
|
selectedScale: null,
|
|
61
61
|
CTX: null,
|
|
62
62
|
CANVAS: null,
|
|
63
|
-
opacity:
|
|
63
|
+
opacity: Re,
|
|
64
64
|
useSafeValues: !0,
|
|
65
|
-
palette:
|
|
65
|
+
palette: Ve,
|
|
66
66
|
height: 600,
|
|
67
67
|
width: 1e3,
|
|
68
68
|
viewBox: "0 0 1000 600",
|
|
@@ -170,7 +170,7 @@ const Ke = Q(), Qe = {
|
|
|
170
170
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
171
171
|
const t = this.datasetWithIds.filter((r) => !this.segregatedSeries.includes(r.id)), s = Math.max(...t.map((r) => r.series.length)), o = [];
|
|
172
172
|
for (let r = 0; r < s; r += 1)
|
|
173
|
-
o.push(t.map((e) => e.series[r] || 0).reduce((e,
|
|
173
|
+
o.push(t.map((e) => e.series[r] || 0).reduce((e, m) => (e || 0) + (m || 0), 0));
|
|
174
174
|
const d = Math.min(...o);
|
|
175
175
|
return o.map((r) => r + (d < 0 ? Math.abs(d) : 0));
|
|
176
176
|
},
|
|
@@ -220,7 +220,7 @@ const Ke = Q(), Qe = {
|
|
|
220
220
|
yOffset: e.yOffset || 0,
|
|
221
221
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
222
222
|
})), d = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...s, ...o], r = d.flatMap((e) => e).length;
|
|
223
|
-
return d.flatMap((e,
|
|
223
|
+
return d.flatMap((e, m) => ({
|
|
224
224
|
unique: e.unique,
|
|
225
225
|
id: e.id,
|
|
226
226
|
groupId: e.groupId,
|
|
@@ -230,7 +230,7 @@ const Ke = Q(), Qe = {
|
|
|
230
230
|
scale: e.scale,
|
|
231
231
|
yOffset: e.yOffset,
|
|
232
232
|
individualHeight: e.individualHeight,
|
|
233
|
-
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / r * (
|
|
233
|
+
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / r * (m + 1),
|
|
234
234
|
yLabels: e.scaleYLabels || e.scale.ticks.map((b) => ({
|
|
235
235
|
y: b >= 0 ? e.zero - e.individualHeight * (b / e.max) : e.zero + e.individualHeight * Math.abs(b) / e.max,
|
|
236
236
|
value: b
|
|
@@ -382,7 +382,7 @@ const Ke = Q(), Qe = {
|
|
|
382
382
|
}, e = {
|
|
383
383
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
384
384
|
min: t.scaleMin || Math.min(...t.absoluteValues.filter((A) => ![void 0, null].includes(A))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((A) => ![null, void 0].includes(A)))
|
|
385
|
-
},
|
|
385
|
+
}, m = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(e.min, e.max === e.min ? e.max * b : e.max, m) : this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * b : e.max, m), I = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * b : r.valueMax, m) : this.calculateNiceScaleWithExactExtremes(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * b : r.valueMax, m), v = x.min >= 0 ? 0 : Math.abs(x.min), S = 0, k = x.max + v, O = I.max + Math.abs(S), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, w = this.drawingArea.bottom - F - C * v / k, p = this.drawingArea.bottom - F - C * S / O, l = this.absoluteDataset.filter((A) => A.type === "bar").filter((A) => !this.segregatedSeries.includes(A.id)).length, c = t.series.map((A, z) => {
|
|
386
386
|
const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[z] + v) / k : this.ratioToMax(A), D = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * z : this.drawingArea.left + this.slot.bar * s + this.slot.bar * z * l - this.barSlot / 2 - s * this.barPeriodGap;
|
|
387
387
|
return {
|
|
388
388
|
yOffset: this.checkNaN(F),
|
|
@@ -406,7 +406,7 @@ const Ke = Q(), Qe = {
|
|
|
406
406
|
individualMax: this.checkNaN(k),
|
|
407
407
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
|
|
408
408
|
};
|
|
409
|
-
}), L =
|
|
409
|
+
}), L = x.ticks.map((A) => ({
|
|
410
410
|
y: A >= 0 ? w - C * (A / k) : w + C * Math.abs(A) / k,
|
|
411
411
|
value: A,
|
|
412
412
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
@@ -428,7 +428,7 @@ const Ke = Q(), Qe = {
|
|
|
428
428
|
autoScaleYLabels: M,
|
|
429
429
|
individualHeight: C,
|
|
430
430
|
scaleYLabels: t.autoScaling ? M : L,
|
|
431
|
-
individualScale: t.autoScaling ? I :
|
|
431
|
+
individualScale: t.autoScaling ? I : x,
|
|
432
432
|
individualMax: t.autoScaling ? O : k,
|
|
433
433
|
zeroPosition: t.autoScaling ? p : w,
|
|
434
434
|
plots: t.autoScaling ? h : c,
|
|
@@ -447,15 +447,15 @@ const Ke = Q(), Qe = {
|
|
|
447
447
|
}, r = {
|
|
448
448
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
449
449
|
min: t.scaleMin || (Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues))
|
|
450
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
451
|
-
const
|
|
450
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.min, r.max === r.min ? r.max * m : r.max, e) : this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * m : r.max, e), x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * m : d.valueMax, e) : this.calculateNiceScaleWithExactExtremes(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * m : d.valueMax, e), I = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, S = b.max + Math.abs(I), k = x.max + Math.abs(v), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - F * I / S, w = this.drawingArea.bottom - O - F * v / k, p = t.series.map((_, P) => {
|
|
451
|
+
const ee = this.mutableConfig.useIndividualScale ? (t.absoluteValues[P] + Math.abs(I)) / S : this.ratioToMax(_);
|
|
452
452
|
return {
|
|
453
453
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
454
|
-
y: this.checkNaN(this.drawingArea.bottom - O - F *
|
|
454
|
+
y: this.checkNaN(this.drawingArea.bottom - O - F * ee),
|
|
455
455
|
value: t.absoluteValues[P],
|
|
456
456
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
457
457
|
};
|
|
458
|
-
}), l = t.absoluteValues.map((_) =>
|
|
458
|
+
}), l = t.absoluteValues.map((_) => x.min >= 0 ? (_ - Math.abs(x.min)) / (x.max - Math.abs(x.min)) : (_ + Math.abs(x.min)) / (x.max + Math.abs(x.min))), c = t.series.map((_, P) => [void 0, null].includes(t.absoluteValues[P]) ? {
|
|
459
459
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
460
460
|
y: C,
|
|
461
461
|
value: t.absoluteValues[P],
|
|
@@ -471,8 +471,8 @@ const Ke = Q(), Qe = {
|
|
|
471
471
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
472
472
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
473
473
|
datapoint: t
|
|
474
|
-
})), z =
|
|
475
|
-
const P = (_ -
|
|
474
|
+
})), z = x.ticks.map((_) => {
|
|
475
|
+
const P = (_ - x.min) / (x.max - x.min);
|
|
476
476
|
return {
|
|
477
477
|
y: _ >= 0 ? w - F * P : w + F * P,
|
|
478
478
|
value: _,
|
|
@@ -489,7 +489,7 @@ const Ke = Q(), Qe = {
|
|
|
489
489
|
autoScaleYLabels: z,
|
|
490
490
|
individualHeight: F,
|
|
491
491
|
scaleYLabels: t.autoScaling ? z : A,
|
|
492
|
-
individualScale: t.autoScaling ?
|
|
492
|
+
individualScale: t.autoScaling ? x : b,
|
|
493
493
|
individualMax: t.autoScaling ? k : S,
|
|
494
494
|
zeroPosition: t.autoScaling ? w : C,
|
|
495
495
|
curve: t.autoScaling ? h : n,
|
|
@@ -522,7 +522,7 @@ const Ke = Q(), Qe = {
|
|
|
522
522
|
}, r = {
|
|
523
523
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
524
524
|
min: t.scaleMin || Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues)
|
|
525
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
525
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, b = this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * m : r.max, e), x = this.calculateNiceScaleWithExactExtremes(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * m : d.valueMax, e), I = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, S = b.max + I, k = x.max + Math.abs(v), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - F * I / S, w = this.drawingArea.bottom - O - F * v / k, p = t.series.map((L, M) => {
|
|
526
526
|
const A = this.mutableConfig.useIndividualScale ? (t.absoluteValues[M] + Math.abs(I)) / S : this.ratioToMax(L);
|
|
527
527
|
return {
|
|
528
528
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
@@ -530,7 +530,7 @@ const Ke = Q(), Qe = {
|
|
|
530
530
|
value: t.absoluteValues[M],
|
|
531
531
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
532
532
|
};
|
|
533
|
-
}), l = t.absoluteValues.map((L) =>
|
|
533
|
+
}), l = t.absoluteValues.map((L) => x.min >= 0 ? (L - Math.abs(x.min)) / (x.max - Math.abs(x.min)) : (L + Math.abs(x.min)) / (x.max + Math.abs(x.min))), c = t.series.map((L, M) => ({
|
|
534
534
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
535
535
|
y: this.checkNaN(this.drawingArea.bottom - O - (F * l[M] || 0)),
|
|
536
536
|
value: t.absoluteValues[M],
|
|
@@ -541,8 +541,8 @@ const Ke = Q(), Qe = {
|
|
|
541
541
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
542
542
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
543
543
|
datapoint: t
|
|
544
|
-
})), h =
|
|
545
|
-
const M = (L -
|
|
544
|
+
})), h = x.ticks.map((L) => {
|
|
545
|
+
const M = (L - x.min) / (x.max - x.min);
|
|
546
546
|
return {
|
|
547
547
|
y: L >= 0 ? w - F * M : w + F * M,
|
|
548
548
|
value: L,
|
|
@@ -557,7 +557,7 @@ const Ke = Q(), Qe = {
|
|
|
557
557
|
autoScaleYLabels: h,
|
|
558
558
|
individualHeight: F,
|
|
559
559
|
scaleYLabels: t.autoScaling ? h : n,
|
|
560
|
-
individualScale: t.autoScaling ?
|
|
560
|
+
individualScale: t.autoScaling ? x : b,
|
|
561
561
|
individualMax: t.autoScaling ? k : S,
|
|
562
562
|
zeroPosition: t.autoScaling ? w : C,
|
|
563
563
|
plots: t.autoScaling ? c : p,
|
|
@@ -569,8 +569,8 @@ const Ke = Q(), Qe = {
|
|
|
569
569
|
function t(d) {
|
|
570
570
|
const r = /* @__PURE__ */ new Set();
|
|
571
571
|
return d.forEach((e) => {
|
|
572
|
-
const
|
|
573
|
-
r.add(
|
|
572
|
+
const m = e.scaleLabel || "__noScaleLabel__";
|
|
573
|
+
r.add(m);
|
|
574
574
|
}), r.size;
|
|
575
575
|
}
|
|
576
576
|
const s = t(this.absoluteDataset.filter((d) => !this.segregatedSeries.includes(d.id))), o = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? s * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
@@ -644,7 +644,7 @@ const Ke = Q(), Qe = {
|
|
|
644
644
|
t && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
645
645
|
let o = [];
|
|
646
646
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
647
|
-
const
|
|
647
|
+
const m = this.relativeDataset.map((b) => b.absoluteValues[e] ?? 0).reduce((b, x) => b + x, 0);
|
|
648
648
|
o.push(
|
|
649
649
|
[
|
|
650
650
|
this.timeLabels[e].text ?? "-"
|
|
@@ -659,7 +659,7 @@ const Ke = Q(), Qe = {
|
|
|
659
659
|
r: this.FINAL_CONFIG.table.rounding
|
|
660
660
|
})
|
|
661
661
|
)
|
|
662
|
-
)).concat(t ? (
|
|
662
|
+
)).concat(t ? (m ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
663
663
|
);
|
|
664
664
|
}
|
|
665
665
|
const d = {
|
|
@@ -722,13 +722,13 @@ const Ke = Q(), Qe = {
|
|
|
722
722
|
config: this.FINAL_CONFIG
|
|
723
723
|
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`), this.selectedSeries.forEach((r) => {
|
|
724
724
|
if (this.isSafeValue(r.value)) {
|
|
725
|
-
let e = "",
|
|
725
|
+
let e = "", m = "";
|
|
726
726
|
switch (this.icons[r.type]) {
|
|
727
727
|
case "bar":
|
|
728
728
|
e = `<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${r.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${r.slotAbsoluteIndex}` : r.color}" /></svg>`;
|
|
729
729
|
break;
|
|
730
730
|
case "line":
|
|
731
|
-
!r.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(r.shape) ?
|
|
731
|
+
!r.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(r.shape) ? m = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" />` : r.shape === "triangle" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "square" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "diamond" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "pentagon" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "hexagon" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "star" && (m = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" points="${Z({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${r.color}" />${m}</svg>`;
|
|
732
732
|
break;
|
|
733
733
|
case "plot":
|
|
734
734
|
if (!r.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(r.shape)) {
|
|
@@ -797,13 +797,13 @@ const Ke = Q(), Qe = {
|
|
|
797
797
|
},
|
|
798
798
|
annotationsY() {
|
|
799
799
|
const t = this.FINAL_CONFIG.chart.annotations;
|
|
800
|
-
if (!t.length || t.every((
|
|
800
|
+
if (!t.length || t.every((m) => !m.show) || t.every((m) => m.yAxis.yTop === null && m.yAxis.yBottom === null))
|
|
801
801
|
return [];
|
|
802
|
-
const s = t.filter((
|
|
802
|
+
const s = t.filter((m) => m.show && (m.yAxis.yTop != null || m.yAxis.yBottom != null));
|
|
803
803
|
if (!s.length) return [];
|
|
804
804
|
const { bottom: o, height: d, left: r, right: e } = this.drawingArea;
|
|
805
|
-
return s.map((
|
|
806
|
-
const { yTop: b, yBottom:
|
|
805
|
+
return s.map((m) => {
|
|
806
|
+
const { yTop: b, yBottom: x, label: I } = m.yAxis, v = b != null && x != null && Math.abs(b - x) > 0, S = b == null ? null : o - d * this.ratioToMax(b), k = x == null ? null : o - d * this.ratioToMax(x), O = this.getTextMeasurer(I.fontSize);
|
|
807
807
|
O.font = `${I.fontSize}px sans-serif`;
|
|
808
808
|
const F = O.measureText(I.text).width, C = I.fontSize, w = (I.position === "start" ? r + I.padding.left : e - I.padding.right) + I.offsetX, l = (S != null && k != null ? Math.min(S, k) : S ?? k) - I.fontSize / 3 + I.offsetY - I.padding.top;
|
|
809
809
|
let c;
|
|
@@ -815,7 +815,7 @@ const Ke = Q(), Qe = {
|
|
|
815
815
|
areaHeight: v ? Math.abs(S - k) : 0,
|
|
816
816
|
yTop: S,
|
|
817
817
|
yBottom: k,
|
|
818
|
-
config:
|
|
818
|
+
config: m.yAxis,
|
|
819
819
|
x1: r,
|
|
820
820
|
x2: e,
|
|
821
821
|
_text: { x: w, y: l },
|
|
@@ -846,46 +846,46 @@ const Ke = Q(), Qe = {
|
|
|
846
846
|
document.removeEventListener("scroll", this.hideTags), this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
847
847
|
},
|
|
848
848
|
methods: {
|
|
849
|
-
abbreviate:
|
|
850
|
-
adaptColorToBackground:
|
|
851
|
-
applyDataLabel:
|
|
852
|
-
assignStackRatios:
|
|
853
|
-
calcLinearProgression:
|
|
854
|
-
calculateNiceScale:
|
|
855
|
-
calculateNiceScaleWithExactExtremes:
|
|
856
|
-
checkNaN:
|
|
857
|
-
closestDecimal:
|
|
858
|
-
convertColorToHex:
|
|
859
|
-
convertConfigColors:
|
|
860
|
-
convertCustomPalette:
|
|
861
|
-
createCsvContent:
|
|
862
|
-
createSmoothPath:
|
|
863
|
-
createStraightPath:
|
|
864
|
-
createTSpans:
|
|
849
|
+
abbreviate: Te,
|
|
850
|
+
adaptColorToBackground: ze,
|
|
851
|
+
applyDataLabel: Me,
|
|
852
|
+
assignStackRatios: pe,
|
|
853
|
+
calcLinearProgression: ve,
|
|
854
|
+
calculateNiceScale: Ge,
|
|
855
|
+
calculateNiceScaleWithExactExtremes: Oe,
|
|
856
|
+
checkNaN: we,
|
|
857
|
+
closestDecimal: ke,
|
|
858
|
+
convertColorToHex: Se,
|
|
859
|
+
convertConfigColors: Ce,
|
|
860
|
+
convertCustomPalette: Le,
|
|
861
|
+
createCsvContent: Ae,
|
|
862
|
+
createSmoothPath: ye,
|
|
863
|
+
createStraightPath: _e,
|
|
864
|
+
createTSpans: Fe,
|
|
865
865
|
dataLabel: $,
|
|
866
|
-
downloadCsv:
|
|
867
|
-
error:
|
|
866
|
+
downloadCsv: be,
|
|
867
|
+
error: xe,
|
|
868
868
|
forceValidValue: me,
|
|
869
|
-
functionReturnsString:
|
|
870
|
-
hasDeepProperty:
|
|
871
|
-
isFunction:
|
|
872
|
-
isSafeValue:
|
|
873
|
-
largestTriangleThreeBucketsArray:
|
|
874
|
-
objectIsEmpty:
|
|
875
|
-
setOpacity:
|
|
876
|
-
shiftHue:
|
|
877
|
-
translateSize:
|
|
878
|
-
treeShake:
|
|
879
|
-
useMouse:
|
|
869
|
+
functionReturnsString: Ne,
|
|
870
|
+
hasDeepProperty: Ie,
|
|
871
|
+
isFunction: fe,
|
|
872
|
+
isSafeValue: ge,
|
|
873
|
+
largestTriangleThreeBucketsArray: de,
|
|
874
|
+
objectIsEmpty: ue,
|
|
875
|
+
setOpacity: he,
|
|
876
|
+
shiftHue: oe,
|
|
877
|
+
translateSize: ce,
|
|
878
|
+
treeShake: ne,
|
|
879
|
+
useMouse: Be,
|
|
880
880
|
useNestedProp: J,
|
|
881
881
|
createUid: Q,
|
|
882
|
-
placeXYTag:
|
|
883
|
-
createSmoothPathWithCuts:
|
|
884
|
-
createStraightPathWithCuts:
|
|
885
|
-
createAreaWithCuts:
|
|
886
|
-
createIndividualAreaWithCuts:
|
|
882
|
+
placeXYTag: se,
|
|
883
|
+
createSmoothPathWithCuts: ae,
|
|
884
|
+
createStraightPathWithCuts: ie,
|
|
885
|
+
createAreaWithCuts: re,
|
|
886
|
+
createIndividualAreaWithCuts: le,
|
|
887
887
|
createSmoothAreaSegments: j,
|
|
888
|
-
createIndividualArea:
|
|
888
|
+
createIndividualArea: te,
|
|
889
889
|
getTextMeasurer(t, s, o) {
|
|
890
890
|
if (!this._textMeasurer) {
|
|
891
891
|
const d = document.createElement("canvas");
|
|
@@ -931,7 +931,7 @@ const Ke = Q(), Qe = {
|
|
|
931
931
|
};
|
|
932
932
|
},
|
|
933
933
|
prepareConfig() {
|
|
934
|
-
const t =
|
|
934
|
+
const t = Pe().vue_ui_xy;
|
|
935
935
|
if (!Object.keys(this.config || {}).length)
|
|
936
936
|
return t;
|
|
937
937
|
const s = this.useNestedProp({
|
|
@@ -980,10 +980,10 @@ const Ke = Q(), Qe = {
|
|
|
980
980
|
const { height: o, width: d } = s.getBoundingClientRect();
|
|
981
981
|
let r = null, e = 0;
|
|
982
982
|
this.FINAL_CONFIG.chart.title.show && (r = this.$refs.chartTitle, e = r.getBoundingClientRect().height);
|
|
983
|
-
let
|
|
984
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (
|
|
985
|
-
let
|
|
986
|
-
this.FINAL_CONFIG.chart.legend.show && (
|
|
983
|
+
let m = null, b = 0;
|
|
984
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (m = this.$refs.chartSlicer.$el, b = m.getBoundingClientRect().height);
|
|
985
|
+
let x = null, I = 0;
|
|
986
|
+
this.FINAL_CONFIG.chart.legend.show && (x = this.$refs.chartLegend, I = x.getBoundingClientRect().height);
|
|
987
987
|
let v = 0;
|
|
988
988
|
this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height);
|
|
989
989
|
let S = 0;
|
|
@@ -1165,7 +1165,7 @@ const Ke = Q(), Qe = {
|
|
|
1165
1165
|
async generatePdf() {
|
|
1166
1166
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1167
1167
|
try {
|
|
1168
|
-
const { default: t } = await import("./pdf-
|
|
1168
|
+
const { default: t } = await import("./pdf-ZrUvUcH9.js");
|
|
1169
1169
|
await t({
|
|
1170
1170
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1171
1171
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1178,9 +1178,9 @@ const Ke = Q(), Qe = {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
}, 100);
|
|
1180
1180
|
},
|
|
1181
|
-
generateCsv() {
|
|
1182
|
-
const
|
|
1183
|
-
this.downloadCsv({ csvContent:
|
|
1181
|
+
generateCsv(t = null) {
|
|
1182
|
+
const s = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], o = ["", ...this.table.head.map((m) => m.label)], d = this.table.body, r = s.concat([o]).concat(d), e = this.createCsvContent(r);
|
|
1183
|
+
t ? t(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1184
1184
|
},
|
|
1185
1185
|
showSpinnerImage() {
|
|
1186
1186
|
this.isImaging = !0;
|
|
@@ -1188,7 +1188,7 @@ const Ke = Q(), Qe = {
|
|
|
1188
1188
|
async generateImage() {
|
|
1189
1189
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1190
1190
|
try {
|
|
1191
|
-
const { default: t } = await import("./img-
|
|
1191
|
+
const { default: t } = await import("./img-Dy6IrSzX.js");
|
|
1192
1192
|
await t({
|
|
1193
1193
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1194
1194
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1208,60 +1208,60 @@ const Ke = Q(), Qe = {
|
|
|
1208
1208
|
ref: "noTitle",
|
|
1209
1209
|
class: "vue-data-ui-no-title-space",
|
|
1210
1210
|
style: "height:36px; width: 100%; background:transparent"
|
|
1211
|
-
}, et = ["viewBox", "aria-label"], tt = ["x", "y", "width", "height"], lt = { key: 1 }, rt = { class: "vue-ui-xy-grid" }, it = ["stroke", "x1", "x2", "y1", "y2"], at = ["stroke", "x1", "x2", "y1", "y2"], st = { key: 1 }, nt = ["x1", "x2", "y1", "y2", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke"], ht = { key: 3 }, ut = ["x1", "x2", "y1", "y2", "stroke"], dt = ["id"], gt = ["stop-color"], ft = ["stop-color"], It = ["stop-color"], Nt = ["id"],
|
|
1211
|
+
}, et = ["viewBox", "aria-label"], tt = ["x", "y", "width", "height"], lt = { key: 1 }, rt = { class: "vue-ui-xy-grid" }, it = ["stroke", "x1", "x2", "y1", "y2"], at = ["stroke", "x1", "x2", "y1", "y2"], st = { key: 1 }, nt = ["x1", "x2", "y1", "y2", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke"], ht = { key: 3 }, ut = ["x1", "x2", "y1", "y2", "stroke"], dt = ["id"], gt = ["stop-color"], ft = ["stop-color"], It = ["stop-color"], Nt = ["id"], mt = ["stop-color"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["id"], _t = ["stop-color"], yt = ["stop-color"], At = ["id"], Lt = ["stop-color"], Ct = ["stop-color"], St = ["id"], kt = ["stop-color"], wt = ["stop-color"], Ot = ["x", "y", "height", "width", "fill"], Gt = ["x", "y", "width"], vt = ["x", "y", "height", "width", "fill"], pt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Mt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], zt = ["width", "x", "y"], Tt = { key: 0 }, Pt = ["id"], Vt = ["fill"], Rt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ht = ["x", "y", "font-size", "fill"], Dt = ["stroke", "x1", "x2", "y1", "y2"], Bt = { key: 2 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Et = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Yt = { key: 4 }, qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = ["fill", "font-size", "transform"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Zt = ["x", "y", "font-size", "fill"], Jt = ["x1", "x2", "y1", "y2", "stroke"], Kt = ["x", "y", "font-size", "fill"], Qt = ["width", "x", "y"], jt = { style: { width: "100%" } }, $t = { key: 0 }, el = ["id"], tl = ["fill"], ll = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], rl = ["x", "y", "font-size", "fill"], il = ["d", "stroke", "stroke-width", "stroke-dasharray"], al = ["d", "stroke", "stroke-width", "stroke-dasharray"], sl = { key: 5 }, nl = { key: 0 }, cl = ["d", "fill"], ol = ["d", "fill"], hl = ["d", "fill"], ul = ["d", "fill"], dl = ["d", "stroke", "stroke-width", "stroke-dasharray"], gl = ["d", "stroke", "stroke-width", "stroke-dasharray"], fl = ["width", "x", "y"], Il = { style: { width: "100%" } }, Nl = { key: 3 }, ml = ["id"], xl = ["fill"], bl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Fl = ["x", "y", "font-size", "fill"], _l = { key: 6 }, yl = ["x", "y", "font-size", "fill"], Al = ["x", "y", "font-size", "fill", "font-weight"], Ll = { key: 7 }, Cl = ["x", "y", "font-size", "fill"], Sl = { key: 8 }, kl = ["x", "y"], wl = ["innerHTML"], Ol = ["x", "y"], Gl = ["innerHTML"], vl = ["x1", "x2", "y1", "y2", "stroke"], pl = { key: 9 }, Ml = ["x", "y", "font-size", "fill"], zl = { key: 10 }, Tl = ["x", "y"], Pl = ["innerHTML"], Vl = ["x", "y"], Rl = ["innerHTML"], Hl = ["x1", "x2", "y1", "y2", "stroke"], Dl = ["x", "y", "font-size", "fill", "innerHTML"], Bl = ["x", "y", "font-size", "fill", "innerHTML"], Wl = ["x", "y", "font-size", "fill", "innerHTML"], El = ["x", "y", "font-size", "fill", "innerHTML"], Yl = ["id"], ql = ["stop-color"], Xl = ["stop-color"], Ul = ["x", "y", "width", "height", "fill", "onMouseenter"], Zl = ["font-size", "fill", "transform"], Jl = ["x", "y", "font-size", "fill"], Kl = { key: 12 }, Ql = ["y1", "y2", "x1", "x2", "stroke"], jl = ["text-anchor", "font-size", "fill", "transform", "onClick"], $l = { key: 13 }, er = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], tr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], lr = ["y", "x", "width", "height", "fill"], rr = ["id", "x", "y", "font-size", "fill", "text-anchor"], ir = ["x", "y", "height", "width", "onMouseenter", "onClick"], ar = {
|
|
1212
1212
|
key: 14,
|
|
1213
1213
|
style: { "pointer-events": "none" }
|
|
1214
|
-
},
|
|
1214
|
+
}, sr = ["x", "y"], nr = ["cx", "cy", "r", "fill"], cr = {
|
|
1215
1215
|
key: 5,
|
|
1216
1216
|
class: "vue-data-ui-watermark"
|
|
1217
|
-
},
|
|
1217
|
+
}, or = {
|
|
1218
1218
|
class: "vue-ui-xy-tag-arrow",
|
|
1219
1219
|
height: "20",
|
|
1220
1220
|
viewBox: "0 0 10 20",
|
|
1221
1221
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1222
|
-
},
|
|
1222
|
+
}, hr = ["fill"], ur = ["innerHTML"], dr = {
|
|
1223
1223
|
class: "vue-ui-xy-tag-arrow",
|
|
1224
1224
|
height: "100%",
|
|
1225
1225
|
viewBox: "0 0 10 20",
|
|
1226
1226
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1227
|
-
},
|
|
1227
|
+
}, gr = ["fill"], fr = ["innerHTML"], Ir = {
|
|
1228
1228
|
class: "vue-ui-xy-tag-arrow",
|
|
1229
1229
|
height: "20",
|
|
1230
1230
|
viewBox: "0 0 10 20",
|
|
1231
1231
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1232
|
-
},
|
|
1232
|
+
}, Nr = ["fill"], mr = ["innerHTML"], xr = {
|
|
1233
1233
|
class: "vue-ui-xy-tag-arrow",
|
|
1234
1234
|
height: "100%",
|
|
1235
1235
|
viewBox: "0 0 10 20",
|
|
1236
1236
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1237
|
-
},
|
|
1237
|
+
}, br = ["fill"], Fr = ["innerHTML"], _r = ["onClick"], yr = {
|
|
1238
1238
|
key: 0,
|
|
1239
1239
|
viewBox: "0 0 20 12",
|
|
1240
1240
|
height: "14",
|
|
1241
1241
|
width: "20"
|
|
1242
|
-
},
|
|
1242
|
+
}, Ar = ["stroke", "fill"], Lr = {
|
|
1243
1243
|
key: 1,
|
|
1244
1244
|
viewBox: "0 0 40 40",
|
|
1245
1245
|
height: "14",
|
|
1246
1246
|
width: "14"
|
|
1247
|
-
},
|
|
1247
|
+
}, Cr = ["fill"], Sr = ["fill"], kr = {
|
|
1248
1248
|
key: 2,
|
|
1249
1249
|
viewBox: "0 0 12 12",
|
|
1250
1250
|
height: "14",
|
|
1251
1251
|
width: "14"
|
|
1252
|
-
},
|
|
1252
|
+
}, wr = {
|
|
1253
1253
|
key: 9,
|
|
1254
1254
|
ref: "chartLegend"
|
|
1255
|
-
},
|
|
1255
|
+
}, Or = {
|
|
1256
1256
|
key: 10,
|
|
1257
1257
|
ref: "source",
|
|
1258
1258
|
dir: "auto"
|
|
1259
|
-
},
|
|
1259
|
+
}, Gr = {
|
|
1260
1260
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1261
1261
|
"data-dom-to-png-ignore": ""
|
|
1262
|
-
},
|
|
1263
|
-
function
|
|
1264
|
-
const
|
|
1262
|
+
}, vr = ["innerHTML"];
|
|
1263
|
+
function pr(t, s, o, d, r, e) {
|
|
1264
|
+
const m = R("PenAndPaper"), b = R("Title"), x = R("UserOptions"), I = R("PackageVersion"), v = R("Shape"), S = R("Skeleton"), k = R("Slicer"), O = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), w = R("DataTable"), p = R("Accordion");
|
|
1265
1265
|
return i(), a("div", {
|
|
1266
1266
|
id: `vue-ui-xy_${r.uniqueId}`,
|
|
1267
1267
|
class: E(`vue-ui-xy ${r.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -1270,7 +1270,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
1270
1270
|
onMouseenter: s[7] || (s[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1271
1271
|
onMouseleave: s[8] || (s[8] = () => e.setUserOptionsVisibility(!1))
|
|
1272
1272
|
}, [
|
|
1273
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (i(), B(
|
|
1273
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (i(), B(m, {
|
|
1274
1274
|
key: 0,
|
|
1275
1275
|
svgRef: r.svgRef,
|
|
1276
1276
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1299,7 +1299,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
}, null, 8, ["config"]))
|
|
1301
1301
|
], 4)) : u("", !0),
|
|
1302
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (r.keepUserOptionState || r.userOptionsVisible) ? (i(), B(
|
|
1302
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (r.keepUserOptionState || r.userOptionsVisible) ? (i(), B(x, {
|
|
1303
1303
|
ref: "defails",
|
|
1304
1304
|
key: `user_options_${r.step}`,
|
|
1305
1305
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1336,7 +1336,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
1336
1336
|
style: y({
|
|
1337
1337
|
visibility: r.keepUserOptionState ? r.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1338
1338
|
})
|
|
1339
|
-
},
|
|
1339
|
+
}, We({ _: 2 }, [
|
|
1340
1340
|
t.$slots.menuIcon ? {
|
|
1341
1341
|
name: "menuIcon",
|
|
1342
1342
|
fn: V(({ isOpen: l, color: c }) => [
|
|
@@ -1533,11 +1533,11 @@ function vr(t, s, o, d, r, e) {
|
|
|
1533
1533
|
f("stop", {
|
|
1534
1534
|
offset: "0%",
|
|
1535
1535
|
"stop-color": `${e.shiftHue(l.color, 0.05)}`
|
|
1536
|
-
}, null, 8,
|
|
1536
|
+
}, null, 8, mt),
|
|
1537
1537
|
f("stop", {
|
|
1538
1538
|
offset: "38%",
|
|
1539
1539
|
"stop-color": `${e.shiftHue(l.color, 0.02)}`
|
|
1540
|
-
}, null, 8,
|
|
1540
|
+
}, null, 8, xt),
|
|
1541
1541
|
f("stop", {
|
|
1542
1542
|
offset: "100%",
|
|
1543
1543
|
"stop-color": l.color
|
|
@@ -1737,7 +1737,8 @@ function vr(t, s, o, d, r, e) {
|
|
|
1737
1737
|
x2: e.drawingArea.right - e.xPadding,
|
|
1738
1738
|
y1: e.forceValidValue(e.zero),
|
|
1739
1739
|
y2: e.forceValidValue(e.zero),
|
|
1740
|
-
"stroke-linecap": "round"
|
|
1740
|
+
"stroke-linecap": "round",
|
|
1741
|
+
style: { animation: "none !important" }
|
|
1741
1742
|
}, null, 8, Dt)) : u("", !0),
|
|
1742
1743
|
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (i(), a("g", Bt, [
|
|
1743
1744
|
f("line", {
|
|
@@ -1754,7 +1755,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
1754
1755
|
])) : u("", !0),
|
|
1755
1756
|
e.FINAL_CONFIG.chart.grid.frame.show ? (i(), a("rect", {
|
|
1756
1757
|
key: 3,
|
|
1757
|
-
style: { pointerEvents: "none", transition: "none" },
|
|
1758
|
+
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
1758
1759
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
1759
1760
|
y: e.drawingArea.top,
|
|
1760
1761
|
width: e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries) < 0 ? 0 : e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries),
|
|
@@ -1777,7 +1778,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
1777
1778
|
stroke: l.color,
|
|
1778
1779
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1779
1780
|
"stroke-linecap": "round",
|
|
1780
|
-
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1781
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1781
1782
|
}, null, 12, qt)
|
|
1782
1783
|
]))), 256)),
|
|
1783
1784
|
(i(!0), a(g, null, N(e.allScales, (l) => (i(), a("g", {
|
|
@@ -1789,15 +1790,19 @@ function vr(t, s, o, d, r, e) {
|
|
|
1789
1790
|
"text-anchor": "middle",
|
|
1790
1791
|
transform: `translate(${l.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${r.mutableConfig.isStacked ? e.drawingArea.bottom - l.yOffset - l.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1791
1792
|
}, T(l.name) + " " + T(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `- ${l.scaleLabel}` : ""), 9, Xt),
|
|
1792
|
-
(i(!0), a(g, null, N(l.yLabels, (c, n) => (i(), a(
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1793
|
+
(i(!0), a(g, null, N(l.yLabels, (c, n) => (i(), a(g, null, [
|
|
1794
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (i(), a("line", {
|
|
1795
|
+
key: 0,
|
|
1796
|
+
x1: l.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
|
|
1797
|
+
x2: l.x + e.xPadding,
|
|
1798
|
+
y1: e.forceValidValue(c.y),
|
|
1799
|
+
y2: e.forceValidValue(c.y),
|
|
1800
|
+
stroke: l.color,
|
|
1801
|
+
"stroke-width": 1,
|
|
1802
|
+
"stroke-linecap": "round",
|
|
1803
|
+
style: { animation: "none !important" }
|
|
1804
|
+
}, null, 8, Ut)) : u("", !0)
|
|
1805
|
+
], 64))), 256)),
|
|
1801
1806
|
(i(!0), a(g, null, N(l.yLabels, (c, n) => (i(), a("text", {
|
|
1802
1807
|
x: l.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
1803
1808
|
y: e.forceValidValue(c.y) + r.fontSizes.dataLabels / 3,
|
|
@@ -1819,15 +1824,16 @@ function vr(t, s, o, d, r, e) {
|
|
|
1819
1824
|
], 64)) : (i(!0), a(g, { key: 1 }, N(e.yLabels, (l, c) => (i(), a("g", {
|
|
1820
1825
|
key: `yLabel_${c}`
|
|
1821
1826
|
}, [
|
|
1822
|
-
e.canShowValue(l) && l.value >= e.niceScale.min && l.value <= e.niceScale.max ? (i(), a("line", {
|
|
1827
|
+
e.canShowValue(l) && l.value >= e.niceScale.min && l.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (i(), a("line", {
|
|
1823
1828
|
key: 0,
|
|
1824
1829
|
x1: e.drawingArea.left + e.xPadding,
|
|
1825
|
-
x2: e.drawingArea.left -
|
|
1830
|
+
x2: e.drawingArea.left - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize + e.xPadding,
|
|
1826
1831
|
y1: e.forceValidValue(l.y),
|
|
1827
1832
|
y2: e.forceValidValue(l.y),
|
|
1828
1833
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1829
1834
|
"stroke-width": "1",
|
|
1830
|
-
"stroke-linecap": "round"
|
|
1835
|
+
"stroke-linecap": "round",
|
|
1836
|
+
style: { animation: "none !important" }
|
|
1831
1837
|
}, null, 8, Jt)) : u("", !0),
|
|
1832
1838
|
l.value >= e.niceScale.min && l.value <= e.niceScale.max ? (i(), a("text", {
|
|
1833
1839
|
key: 1,
|
|
@@ -2035,8 +2041,8 @@ function vr(t, s, o, d, r, e) {
|
|
|
2035
2041
|
f("polygon", {
|
|
2036
2042
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2037
2043
|
fill: l.color
|
|
2038
|
-
}, null, 8,
|
|
2039
|
-
], 8,
|
|
2044
|
+
}, null, 8, xl)
|
|
2045
|
+
], 8, ml)
|
|
2040
2046
|
]),
|
|
2041
2047
|
l.plots.length > 1 ? (i(), a("line", {
|
|
2042
2048
|
key: 0,
|
|
@@ -2438,7 +2444,6 @@ function vr(t, s, o, d, r, e) {
|
|
|
2438
2444
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2439
2445
|
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Jl)) : u("", !0)
|
|
2440
2446
|
]),
|
|
2441
|
-
s[9] || (s[9] = ee('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),
|
|
2442
2447
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(), a("g", Kl, [
|
|
2443
2448
|
t.$slots["time-label"] ? (i(!0), a(g, { key: 0 }, N(e.timeLabels, (l, c) => G(t.$slots, "time-label", K({
|
|
2444
2449
|
key: `time_label_${c}`,
|
|
@@ -2456,20 +2461,32 @@ function vr(t, s, o, d, r, e) {
|
|
|
2456
2461
|
}), void 0, !0)), 128)) : (i(!0), a(g, { key: 1 }, N(e.timeLabels, (l, c) => (i(), a("g", {
|
|
2457
2462
|
key: `time_label_${c}`
|
|
2458
2463
|
}, [
|
|
2459
|
-
l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (i(), a(
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2464
|
+
l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (i(), a(g, { key: 0 }, [
|
|
2465
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (i(), a("line", {
|
|
2466
|
+
key: 0,
|
|
2467
|
+
y1: e.drawingArea.bottom,
|
|
2468
|
+
y2: e.drawingArea.bottom + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize,
|
|
2469
|
+
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
|
|
2470
|
+
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
|
|
2471
|
+
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
2472
|
+
"stroke-width": 1,
|
|
2473
|
+
"stroke-linecap": "round",
|
|
2474
|
+
style: { animation: "none !important " }
|
|
2475
|
+
}, null, 8, Ql)) : u("", !0),
|
|
2476
|
+
f("text", {
|
|
2477
|
+
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2478
|
+
"font-size": r.fontSizes.xAxis,
|
|
2479
|
+
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2480
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2481
|
+
style: {
|
|
2482
|
+
cursor: "pointer"
|
|
2483
|
+
},
|
|
2484
|
+
onClick: () => e.selectTimeLabel(l, c)
|
|
2485
|
+
}, T(l.text || ""), 9, jl)
|
|
2486
|
+
], 64)) : u("", !0)
|
|
2470
2487
|
]))), 128))
|
|
2471
2488
|
])) : u("", !0),
|
|
2472
|
-
e.annotationsY.length && !r.mutableConfig.isStacked ? (i(), a("g",
|
|
2489
|
+
e.annotationsY.length && !r.mutableConfig.isStacked ? (i(), a("g", $l, [
|
|
2473
2490
|
(i(!0), a(g, null, N(e.annotationsY, (l) => (i(), a("g", {
|
|
2474
2491
|
key: l.uid
|
|
2475
2492
|
}, [
|
|
@@ -2482,8 +2499,9 @@ function vr(t, s, o, d, r, e) {
|
|
|
2482
2499
|
stroke: l.config.line.stroke,
|
|
2483
2500
|
"stroke-width": l.config.line.strokeWidth,
|
|
2484
2501
|
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
2485
|
-
"stroke-linecap": "round"
|
|
2486
|
-
|
|
2502
|
+
"stroke-linecap": "round",
|
|
2503
|
+
style: { animation: "none !important" }
|
|
2504
|
+
}, null, 8, er)) : u("", !0),
|
|
2487
2505
|
l.yBottom ? (i(), a("line", {
|
|
2488
2506
|
key: 1,
|
|
2489
2507
|
x1: l.x1,
|
|
@@ -2493,8 +2511,9 @@ function vr(t, s, o, d, r, e) {
|
|
|
2493
2511
|
stroke: l.config.line.stroke,
|
|
2494
2512
|
"stroke-width": l.config.line.strokeWidth,
|
|
2495
2513
|
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
2496
|
-
"stroke-linecap": "round"
|
|
2497
|
-
|
|
2514
|
+
"stroke-linecap": "round",
|
|
2515
|
+
style: { animation: "none !important" }
|
|
2516
|
+
}, null, 8, tr)) : u("", !0),
|
|
2498
2517
|
l.hasArea ? (i(), a("rect", {
|
|
2499
2518
|
key: 2,
|
|
2500
2519
|
y: Math.min(l.yTop, l.yBottom),
|
|
@@ -2503,7 +2522,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2503
2522
|
height: l.areaHeight,
|
|
2504
2523
|
fill: e.setOpacity(l.config.area.fill, l.config.area.opacity),
|
|
2505
2524
|
style: { animation: "none !important" }
|
|
2506
|
-
}, null, 8,
|
|
2525
|
+
}, null, 8, lr)) : u("", !0),
|
|
2507
2526
|
l.config.label.text ? (i(), a("rect", K({
|
|
2508
2527
|
key: 3,
|
|
2509
2528
|
class: "vue-ui-xy-annotation-label-box"
|
|
@@ -2517,7 +2536,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2517
2536
|
"font-size": l.config.label.fontSize,
|
|
2518
2537
|
fill: l.config.label.color,
|
|
2519
2538
|
"text-anchor": l.config.label.textAnchor
|
|
2520
|
-
}, T(l.config.label.text), 9,
|
|
2539
|
+
}, T(l.config.label.text), 9, rr)) : u("", !0)
|
|
2521
2540
|
]))), 128))
|
|
2522
2541
|
])) : u("", !0),
|
|
2523
2542
|
f("g", null, [
|
|
@@ -2531,9 +2550,9 @@ function vr(t, s, o, d, r, e) {
|
|
|
2531
2550
|
onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
|
|
2532
2551
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2533
2552
|
onClick: (n) => e.selectX(c)
|
|
2534
|
-
}, null, 40,
|
|
2553
|
+
}, null, 40, ir))), 128))
|
|
2535
2554
|
]),
|
|
2536
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (i(), a("g",
|
|
2555
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (i(), a("g", ar, [
|
|
2537
2556
|
(i(), a("foreignObject", {
|
|
2538
2557
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2539
2558
|
y: e.drawingArea.bottom,
|
|
@@ -2545,18 +2564,18 @@ function vr(t, s, o, d, r, e) {
|
|
|
2545
2564
|
class: "vue-ui-xy-time-tag",
|
|
2546
2565
|
style: y(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
2547
2566
|
}, T(e.timeLabels[(r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)].text || (r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)), 5)
|
|
2548
|
-
], 8,
|
|
2567
|
+
], 8, sr)),
|
|
2549
2568
|
f("circle", {
|
|
2550
2569
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2551
2570
|
cy: e.drawingArea.bottom,
|
|
2552
2571
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2553
2572
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2554
|
-
}, null, 8,
|
|
2573
|
+
}, null, 8, nr)
|
|
2555
2574
|
])) : u("", !0)
|
|
2556
2575
|
])) : u("", !0),
|
|
2557
2576
|
G(t.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2558
2577
|
], 14, et)) : u("", !0),
|
|
2559
|
-
t.$slots.watermark ? (i(), a("div",
|
|
2578
|
+
t.$slots.watermark ? (i(), a("div", cr, [
|
|
2560
2579
|
G(t.$slots, "watermark", Y(q({ isPrinting: r.isPrinting || r.isImaging })), void 0, !0)
|
|
2561
2580
|
])) : u("", !0),
|
|
2562
2581
|
(i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
|
|
@@ -2596,12 +2615,12 @@ function vr(t, s, o, d, r, e) {
|
|
|
2596
2615
|
opacity: 1
|
|
2597
2616
|
})
|
|
2598
2617
|
}, [
|
|
2599
|
-
(i(), a("svg",
|
|
2618
|
+
(i(), a("svg", or, [
|
|
2600
2619
|
f("path", {
|
|
2601
2620
|
d: "M 0,10 10,0 10,20 Z",
|
|
2602
2621
|
fill: l.color,
|
|
2603
2622
|
stroke: "none"
|
|
2604
|
-
}, null, 8,
|
|
2623
|
+
}, null, 8, hr)
|
|
2605
2624
|
])),
|
|
2606
2625
|
f("div", {
|
|
2607
2626
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2615,7 +2634,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2615
2634
|
serieName: l.name
|
|
2616
2635
|
}
|
|
2617
2636
|
)
|
|
2618
|
-
}, null, 8,
|
|
2637
|
+
}, null, 8, ur)
|
|
2619
2638
|
], 4)) : u("", !0),
|
|
2620
2639
|
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (i(), a("div", {
|
|
2621
2640
|
key: 1,
|
|
@@ -2648,12 +2667,12 @@ function vr(t, s, o, d, r, e) {
|
|
|
2648
2667
|
opacity: 1
|
|
2649
2668
|
})
|
|
2650
2669
|
}, [
|
|
2651
|
-
(i(), a("svg",
|
|
2670
|
+
(i(), a("svg", dr, [
|
|
2652
2671
|
f("path", {
|
|
2653
2672
|
d: "M 0,0 10,10 0,20 Z",
|
|
2654
2673
|
fill: l.color,
|
|
2655
2674
|
stroke: "none"
|
|
2656
|
-
}, null, 8,
|
|
2675
|
+
}, null, 8, gr)
|
|
2657
2676
|
])),
|
|
2658
2677
|
f("div", {
|
|
2659
2678
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2667,7 +2686,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2667
2686
|
serieName: l.name
|
|
2668
2687
|
}
|
|
2669
2688
|
)
|
|
2670
|
-
}, null, 8,
|
|
2689
|
+
}, null, 8, fr)
|
|
2671
2690
|
], 4)) : u("", !0)
|
|
2672
2691
|
], 64))), 128))
|
|
2673
2692
|
], 64))), 128)),
|
|
@@ -2708,12 +2727,12 @@ function vr(t, s, o, d, r, e) {
|
|
|
2708
2727
|
opacity: 1
|
|
2709
2728
|
})
|
|
2710
2729
|
}, [
|
|
2711
|
-
(i(), a("svg",
|
|
2730
|
+
(i(), a("svg", Ir, [
|
|
2712
2731
|
f("path", {
|
|
2713
2732
|
d: "M 0,10 10,0 10,20 Z",
|
|
2714
2733
|
fill: l.color,
|
|
2715
2734
|
stroke: "none"
|
|
2716
|
-
}, null, 8,
|
|
2735
|
+
}, null, 8, Nr)
|
|
2717
2736
|
])),
|
|
2718
2737
|
f("div", {
|
|
2719
2738
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2727,7 +2746,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2727
2746
|
serieName: l.name
|
|
2728
2747
|
}
|
|
2729
2748
|
)
|
|
2730
|
-
}, null, 8,
|
|
2749
|
+
}, null, 8, mr)
|
|
2731
2750
|
], 4)) : u("", !0),
|
|
2732
2751
|
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (i(), a("div", {
|
|
2733
2752
|
key: 1,
|
|
@@ -2765,7 +2784,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2765
2784
|
d: "M 0,0 10,10 0,20 Z",
|
|
2766
2785
|
fill: l.color,
|
|
2767
2786
|
stroke: "none"
|
|
2768
|
-
}, null, 8,
|
|
2787
|
+
}, null, 8, br)
|
|
2769
2788
|
])),
|
|
2770
2789
|
f("div", {
|
|
2771
2790
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2779,7 +2798,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2779
2798
|
serieName: l.name
|
|
2780
2799
|
}
|
|
2781
2800
|
)
|
|
2782
|
-
}, null, 8,
|
|
2801
|
+
}, null, 8, Fr)
|
|
2783
2802
|
], 4)) : u("", !0)
|
|
2784
2803
|
], 64))), 128))
|
|
2785
2804
|
], 64))), 128)),
|
|
@@ -2853,7 +2872,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2853
2872
|
onClick: (n) => e.segregate(l),
|
|
2854
2873
|
class: E({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": r.segregatedSeries.includes(l.id) })
|
|
2855
2874
|
}, [
|
|
2856
|
-
r.icons[l.type] === "line" ? (i(), a("svg",
|
|
2875
|
+
r.icons[l.type] === "line" ? (i(), a("svg", yr, [
|
|
2857
2876
|
f("rect", {
|
|
2858
2877
|
x: "0",
|
|
2859
2878
|
y: "7.5",
|
|
@@ -2863,7 +2882,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2863
2882
|
height: "3",
|
|
2864
2883
|
width: "20",
|
|
2865
2884
|
fill: l.color
|
|
2866
|
-
}, null, 8,
|
|
2885
|
+
}, null, 8, Ar),
|
|
2867
2886
|
U(v, {
|
|
2868
2887
|
plot: { x: 10, y: 9 },
|
|
2869
2888
|
radius: 4,
|
|
@@ -2872,7 +2891,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2872
2891
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2873
2892
|
strokeWidth: 0.5
|
|
2874
2893
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2875
|
-
])) : r.icons[l.type] === "bar" ? (i(), a("svg",
|
|
2894
|
+
])) : r.icons[l.type] === "bar" ? (i(), a("svg", Lr, [
|
|
2876
2895
|
r.icons[l.type] === "bar" && t.$slots.pattern ? (i(), a("rect", {
|
|
2877
2896
|
key: 0,
|
|
2878
2897
|
x: "0",
|
|
@@ -2882,7 +2901,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
2882
2901
|
width: "40",
|
|
2883
2902
|
stroke: "none",
|
|
2884
2903
|
fill: l.color
|
|
2885
|
-
}, null, 8,
|
|
2904
|
+
}, null, 8, Cr)) : u("", !0),
|
|
2886
2905
|
r.icons[l.type] === "bar" ? (i(), a("rect", {
|
|
2887
2906
|
key: 1,
|
|
2888
2907
|
x: "0",
|
|
@@ -2892,8 +2911,8 @@ function vr(t, s, o, d, r, e) {
|
|
|
2892
2911
|
width: "40",
|
|
2893
2912
|
stroke: "none",
|
|
2894
2913
|
fill: t.$slots.pattern ? `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})` : l.color
|
|
2895
|
-
}, null, 8,
|
|
2896
|
-
])) : (i(), a("svg",
|
|
2914
|
+
}, null, 8, Sr)) : u("", !0)
|
|
2915
|
+
])) : (i(), a("svg", kr, [
|
|
2897
2916
|
U(v, {
|
|
2898
2917
|
plot: { x: 6, y: 6 },
|
|
2899
2918
|
radius: 5,
|
|
@@ -2904,11 +2923,11 @@ function vr(t, s, o, d, r, e) {
|
|
|
2904
2923
|
f("span", {
|
|
2905
2924
|
style: y(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2906
2925
|
}, T(l.name), 5)
|
|
2907
|
-
], 10,
|
|
2908
|
-
], 4)) : (i(), a("div",
|
|
2926
|
+
], 10, _r))), 128))
|
|
2927
|
+
], 4)) : (i(), a("div", wr, [
|
|
2909
2928
|
G(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2910
2929
|
], 512)),
|
|
2911
|
-
t.$slots.source ? (i(), a("div",
|
|
2930
|
+
t.$slots.source ? (i(), a("div", Or, [
|
|
2912
2931
|
G(t.$slots, "source", {}, void 0, !0)
|
|
2913
2932
|
], 512)) : u("", !0),
|
|
2914
2933
|
U(O, {
|
|
@@ -2955,12 +2974,12 @@ function vr(t, s, o, d, r, e) {
|
|
|
2955
2974
|
f("div", {
|
|
2956
2975
|
style: y(`${r.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2957
2976
|
}, [
|
|
2958
|
-
f("div",
|
|
2959
|
-
|
|
2977
|
+
f("div", Gr, [
|
|
2978
|
+
Ee(f("input", {
|
|
2960
2979
|
type: "checkbox",
|
|
2961
2980
|
"onUpdate:modelValue": s[4] || (s[4] = (l) => r.showSparklineTable = l)
|
|
2962
2981
|
}, null, 512), [
|
|
2963
|
-
[
|
|
2982
|
+
[Ye, r.showSparklineTable]
|
|
2964
2983
|
]),
|
|
2965
2984
|
f("div", {
|
|
2966
2985
|
onClick: s[5] || (s[5] = (l) => r.showSparklineTable = !r.showSparklineTable),
|
|
@@ -2987,10 +3006,10 @@ function vr(t, s, o, d, r, e) {
|
|
|
2987
3006
|
onClose: s[6] || (s[6] = (l) => r.mutableConfig.showTable = !1)
|
|
2988
3007
|
}, {
|
|
2989
3008
|
th: V(({ th: l }) => [
|
|
2990
|
-
f("div", { innerHTML: l }, null, 8,
|
|
3009
|
+
f("div", { innerHTML: l }, null, 8, vr)
|
|
2991
3010
|
]),
|
|
2992
3011
|
td: V(({ td: l }) => [
|
|
2993
|
-
|
|
3012
|
+
qe(T(isNaN(Number(l)) ? l : e.dataLabel({
|
|
2994
3013
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2995
3014
|
v: l,
|
|
2996
3015
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -3005,7 +3024,7 @@ function vr(t, s, o, d, r, e) {
|
|
|
3005
3024
|
}, 8, ["config"])) : u("", !0)
|
|
3006
3025
|
], 46, je);
|
|
3007
3026
|
}
|
|
3008
|
-
const
|
|
3027
|
+
const Br = /* @__PURE__ */ Je(Qe, [["render", pr], ["__scopeId", "data-v-d3870d39"]]);
|
|
3009
3028
|
export {
|
|
3010
|
-
|
|
3029
|
+
Br as default
|
|
3011
3030
|
};
|