vue-data-ui 2.15.6-beta.0 → 2.15.6-beta.1
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/dist/{Arrow-7CtGUd2c.js → Arrow-jX_IqGRq.js} +1 -1
- package/dist/{BaseDraggableDialog-DMzlY1LV.js → BaseDraggableDialog-DXPZqfYu.js} +2 -2
- package/dist/{BaseIcon-CJHXqPgs.js → BaseIcon-CjJnt0__.js} +1 -1
- package/dist/{ColorPicker-CBS1uc5f.js → ColorPicker-DDi_xqQ2.js} +2 -2
- package/dist/{DataTable-xkeRPRWr.js → DataTable-ZfzeYLQ-.js} +2 -2
- package/dist/{Legend-BzxnWZQQ.js → Legend-wjX9iJHF.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BaZ7MEYP.js → NonSvgPenAndPaper-BNkz8Aa5.js} +3 -3
- package/dist/{PackageVersion-Bx7Duwo_.js → PackageVersion-B0aTY3xP.js} +1 -1
- package/dist/{PenAndPaper-BpDdU2pw.js → PenAndPaper-BJfBJK0v.js} +3 -3
- package/dist/{Shape-CCmBnBeJ.js → Shape-CU15pUOp.js} +1 -1
- package/dist/{Slicer-XCdPNvSR.js → Slicer-CvhViWNZ.js} +2 -2
- package/dist/{SparkTooltip-DvnnaGGW.js → SparkTooltip-C3WtFcoy.js} +1 -1
- package/dist/{Title-BiUlPqJ6.js → Title-Cc9xSYM2.js} +1 -1
- package/dist/{Tooltip-DOYGtO6A.js → Tooltip-BCPGANhw.js} +1 -1
- package/dist/{UserOptions-D6Ou5zsU.js → UserOptions-BsCEi0c-.js} +2 -2
- package/dist/{dom-to-png-BEunG1XE.js → dom-to-png-Bw9cRly5.js} +1 -1
- package/dist/{img-DnX4eLxW.js → img-K5aVLnAA.js} +1 -1
- package/dist/{index-CKFIZRRC.js → index-DJyYbf8t.js} +1268 -1199
- package/dist/{pdf-ptdmUaVZ.js → pdf-ML4_Cikm.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CTDjXbu-.js → useNestedProp-DV9SSkd6.js} +1 -1
- package/dist/{usePrinter-DnlRuPQL.js → usePrinter-BzGyLQSj.js} +2 -2
- package/dist/{vue-data-ui-CoT0Iab7.js → vue-data-ui-Dkm7R2Xk.js} +63 -63
- package/dist/vue-data-ui.js +17 -16
- package/dist/{vue-ui-3d-bar-DzIs0Km-.js → vue-ui-3d-bar-Uwhr51Tf.js} +5 -5
- package/dist/{vue-ui-accordion-BYCbqbFm.js → vue-ui-accordion-DXIlxmmU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BZhHqkZ8.js → vue-ui-age-pyramid-62jA2QA3.js} +5 -5
- package/dist/{vue-ui-annotator-CPZ8B6Al.js → vue-ui-annotator-Cs9-OywN.js} +2 -2
- package/dist/{vue-ui-bullet-sNxy6WGS.js → vue-ui-bullet-CB7myZv5.js} +6 -6
- package/dist/{vue-ui-candlestick-Bp8rzZrF.js → vue-ui-candlestick-DMN_zLsq.js} +6 -6
- package/dist/{vue-ui-carousel-table-DWq6eY06.js → vue-ui-carousel-table-B6CRpN67.js} +4 -4
- package/dist/{vue-ui-chestnut-CJtV5Lp7.js → vue-ui-chestnut-BgqE9TBz.js} +4 -4
- package/dist/{vue-ui-chord-CD8cg6V0.js → vue-ui-chord-CrMlX3ZX.js} +7 -7
- package/dist/{vue-ui-circle-pack-wQqr7mVc.js → vue-ui-circle-pack-J_ZXr-Q_.js} +5 -5
- package/dist/{vue-ui-cursor-BkWV-oeZ.js → vue-ui-cursor-ZYDO_oVl.js} +2 -2
- package/dist/{vue-ui-dashboard-C-BLtPmP.js → vue-ui-dashboard-tA9QBIPR.js} +62 -62
- package/dist/{vue-ui-digits-DhCHh3cw.js → vue-ui-digits-Ck1HLn58.js} +2 -2
- package/dist/{vue-ui-donut-jm3d6EMv.js → vue-ui-donut-C-w4l1M6.js} +7 -7
- package/dist/{vue-ui-donut-evolution-WkCZUqn5.js → vue-ui-donut-evolution-h1w_CjtP.js} +7 -7
- package/dist/{vue-ui-dumbbell-CUSfLKry.js → vue-ui-dumbbell-CqvOeTvd.js} +6 -6
- package/dist/{vue-ui-flow-fFBWZUoD.js → vue-ui-flow-kF2knKsG.js} +6 -6
- package/dist/{vue-ui-funnel-C1f2-oPu.js → vue-ui-funnel-Ca2kkv8V.js} +5 -5
- package/dist/{vue-ui-galaxy-DG8wKkOi.js → vue-ui-galaxy-pBSJWTsP.js} +4 -4
- package/dist/{vue-ui-gauge-DiPhnrDM.js → vue-ui-gauge-BJwghRMz.js} +5 -5
- package/dist/{vue-ui-gizmo-l19sXZlZ.js → vue-ui-gizmo-jvWpvOI9.js} +3 -3
- package/dist/{vue-ui-heatmap-DmkoaMFW.js → vue-ui-heatmap-DbkHHI2A.js} +6 -6
- package/dist/{vue-ui-history-plot-BPNGukiK.js → vue-ui-history-plot-BFXJ20XN.js} +6 -6
- package/dist/{vue-ui-kpi-CBae6xnx.js → vue-ui-kpi-B239F358.js} +3 -3
- package/dist/{vue-ui-mini-loader-VxJTtzhp.js → vue-ui-mini-loader-DTu8_GqW.js} +2 -2
- package/dist/{vue-ui-molecule-DgSckvvc.js → vue-ui-molecule-Rzix9W95.js} +4 -4
- package/dist/{vue-ui-mood-radar-C8WiiaVL.js → vue-ui-mood-radar-BmMd5aiS.js} +6 -6
- package/dist/{vue-ui-nested-donuts-CiaPPgP9.js → vue-ui-nested-donuts-Bqifq_II.js} +6 -6
- package/dist/{vue-ui-onion-l3ghP0NR.js → vue-ui-onion-C5OzYYIo.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-Jkq5N0IW.js → vue-ui-parallel-coordinate-plot-DgZWvdIp.js} +7 -7
- package/dist/{vue-ui-quadrant-CssqTQNV.js → vue-ui-quadrant-BNE4T4HJ.js} +7 -7
- package/dist/{vue-ui-quick-chart-DhuqsDVZ.js → vue-ui-quick-chart-Cd4zxMAz.js} +5 -5
- package/dist/{vue-ui-radar-CukYMAGu.js → vue-ui-radar-CJ893efG.js} +6 -6
- package/dist/{vue-ui-rating-DpU_yTsi.js → vue-ui-rating-ODMtQWxg.js} +2 -2
- package/dist/{vue-ui-relation-circle-A-Rczr2V.js → vue-ui-relation-circle-B54SUQvs.js} +5 -5
- package/dist/{vue-ui-ridgeline-COh9tuKK.js → vue-ui-ridgeline-RY8cbclQ.js} +7 -7
- package/dist/{vue-ui-rings-ByDVFvi3.js → vue-ui-rings-BnEi8sqS.js} +7 -7
- package/dist/{vue-ui-scatter-6hllL9hr.js → vue-ui-scatter-B-3uS54B.js} +7 -7
- package/dist/{vue-ui-skeleton-DhFJYDTn.js → vue-ui-skeleton-BV3FgE3f.js} +3 -3
- package/dist/{vue-ui-smiley-J4WstQlh.js → vue-ui-smiley-DrHPZ7CL.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bl0PnT2V.js → vue-ui-spark-trend-B-Blvgcm.js} +3 -3
- package/dist/{vue-ui-sparkbar-DzmAY8ie.js → vue-ui-sparkbar-DXtWpECL.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D-Ck11nK.js → vue-ui-sparkgauge-CRypiQPH.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cp5Xr557.js → vue-ui-sparkhistogram-BVA0TvB9.js} +4 -4
- package/dist/{vue-ui-sparkline-D7ZX0old.js → vue-ui-sparkline-Du6Kd2Kn.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CXymF8dq.js → vue-ui-sparkstackbar-84MxL5gT.js} +3 -3
- package/dist/{vue-ui-stackbar-BLUvVwgp.js → vue-ui-stackbar-AVVR-0Wh.js} +8 -8
- package/dist/{vue-ui-strip-plot-D-lRQH1I.js → vue-ui-strip-plot-C8qSuw7p.js} +6 -6
- package/dist/{vue-ui-table-DLgF8tGT.js → vue-ui-table-PCtlJWJt.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BO37ZIHF.js → vue-ui-table-heatmap-BP8uiY-l.js} +5 -5
- package/dist/{vue-ui-table-sparkline-btEebUXB.js → vue-ui-table-sparkline-Cgz43Gya.js} +4 -4
- package/dist/{vue-ui-thermometer-u1PvQSeL.js → vue-ui-thermometer-ZfyYfPQp.js} +5 -5
- package/dist/{vue-ui-timer-B48HT4eW.js → vue-ui-timer-B_lLS7DN.js} +5 -5
- package/dist/{vue-ui-tiremarks-CiJXoCJR.js → vue-ui-tiremarks-DOq7bA6y.js} +5 -5
- package/dist/{vue-ui-treemap-w-MtZzrD.js → vue-ui-treemap-DynhMdOt.js} +7 -7
- package/dist/{vue-ui-vertical-bar-B2NFYukn.js → vue-ui-vertical-bar-Bs2T5IDv.js} +8 -8
- package/dist/{vue-ui-waffle-Cfg34ICq.js → vue-ui-waffle-D13yoDKf.js} +7 -7
- package/dist/{vue-ui-wheel-D7x2HZCc.js → vue-ui-wheel-CW1DzgoM.js} +5 -5
- package/dist/{vue-ui-word-cloud-DRjkBdUN.js → vue-ui-word-cloud-BDEmmcyk.js} +5 -5
- package/dist/{vue-ui-world-D4FgKXT2.js → vue-ui-world-DqZSe0cZ.js} +5 -5
- package/dist/{vue-ui-xy-canvas-BRKsTfoq.js → vue-ui-xy-canvas-B4QhYEGs.js} +7 -7
- package/dist/{vue-ui-xy-lLTOcI_N.js → vue-ui-xy-wJTbNrZ_.js} +282 -281
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as q, _ as ae, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as ye, af as Ae, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as Me, q as ze, b as Te, z as Ve, d as Pe, ah as Re, v as Be, ai as He, D as De, a5 as Ee, aj as We, i as Ye, F as Xe, L as qe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-
|
|
1
|
+
import { R as q, _ as ae, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as ye, af as Ae, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as Me, q as ze, b as Te, z as Ve, d as Pe, ah as Re, v as Be, ai as He, D as De, a5 as Ee, aj as We, i as Ye, F as Xe, L as qe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-DJyYbf8t.js";
|
|
2
2
|
import { u as je } from "./useMouse-AicQS8Vf.js";
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
3
|
+
import { u as ie } from "./useNestedProp-DV9SSkd6.js";
|
|
4
4
|
import { u as $e } from "./useTimeLabels-Mrr0jrpL.js";
|
|
5
|
-
import { defineAsyncComponent as Z, resolveComponent as X, createElementBlock as r, openBlock as i, normalizeStyle as
|
|
6
|
-
import { S as at } from "./Slicer-
|
|
7
|
-
import it from "./Title-
|
|
8
|
-
import { _ as rt } from "./Shape-
|
|
5
|
+
import { defineAsyncComponent as Z, resolveComponent as X, createElementBlock as r, openBlock as i, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as u, createVNode as le, createSlots as et, withCtx as D, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as d, renderList as x, toDisplayString as R, mergeProps as re, withDirectives as tt, vModelCheckbox as lt, createTextVNode as st } from "vue";
|
|
6
|
+
import { S as at } from "./Slicer-CvhViWNZ.js";
|
|
7
|
+
import it from "./Title-Cc9xSYM2.js";
|
|
8
|
+
import { _ as rt } from "./Shape-CU15pUOp.js";
|
|
9
9
|
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const ct = ne(), ot = {
|
|
11
11
|
name: "vue-ui-xy",
|
|
@@ -29,15 +29,15 @@ const ct = ne(), ot = {
|
|
|
29
29
|
Title: it,
|
|
30
30
|
// Must be ready in responsive mode
|
|
31
31
|
Shape: rt,
|
|
32
|
-
DataTable: Z(() => import("./DataTable-
|
|
33
|
-
Tooltip: Z(() => import("./Tooltip-
|
|
34
|
-
UserOptions: Z(() => import("./UserOptions-
|
|
35
|
-
BaseIcon: Z(() => import("./BaseIcon-
|
|
36
|
-
TableSparkline: Z(() => import("./vue-ui-table-sparkline-
|
|
37
|
-
Skeleton: Z(() => import("./vue-ui-skeleton-
|
|
38
|
-
Accordion: Z(() => import("./vue-ui-accordion-
|
|
39
|
-
PackageVersion: Z(() => import("./PackageVersion-
|
|
40
|
-
PenAndPaper: Z(() => import("./PenAndPaper-
|
|
32
|
+
DataTable: Z(() => import("./DataTable-ZfzeYLQ-.js")),
|
|
33
|
+
Tooltip: Z(() => import("./Tooltip-BCPGANhw.js")),
|
|
34
|
+
UserOptions: Z(() => import("./UserOptions-BsCEi0c-.js")),
|
|
35
|
+
BaseIcon: Z(() => import("./BaseIcon-CjJnt0__.js")),
|
|
36
|
+
TableSparkline: Z(() => import("./vue-ui-table-sparkline-Cgz43Gya.js")),
|
|
37
|
+
Skeleton: Z(() => import("./vue-ui-skeleton-BV3FgE3f.js")),
|
|
38
|
+
Accordion: Z(() => import("./vue-ui-accordion-DXIlxmmU.js")),
|
|
39
|
+
PackageVersion: Z(() => import("./PackageVersion-B0aTY3xP.js")),
|
|
40
|
+
PenAndPaper: Z(() => import("./PenAndPaper-BJfBJK0v.js"))
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
this.dataset.forEach((f, l) => {
|
|
@@ -48,7 +48,7 @@ const ct = ne(), ot = {
|
|
|
48
48
|
index: l
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
-
const s = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, n = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: s }).length)),
|
|
51
|
+
const s = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, n = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: s }).length)), h = {
|
|
52
52
|
start: 0,
|
|
53
53
|
end: n
|
|
54
54
|
};
|
|
@@ -101,7 +101,7 @@ const ct = ne(), ot = {
|
|
|
101
101
|
step: 0,
|
|
102
102
|
tableStep: 0,
|
|
103
103
|
titleStep: 0,
|
|
104
|
-
slicer:
|
|
104
|
+
slicer: h,
|
|
105
105
|
__to__: null,
|
|
106
106
|
maxX: n,
|
|
107
107
|
showSparklineTable: !0,
|
|
@@ -141,8 +141,8 @@ const ct = ne(), ot = {
|
|
|
141
141
|
watch: {
|
|
142
142
|
dataset: {
|
|
143
143
|
handler(s, n) {
|
|
144
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
145
|
-
data:
|
|
144
|
+
this.maxX = Math.max(...this.dataset.map((h) => this.largestTriangleThreeBucketsArray({
|
|
145
|
+
data: h.series,
|
|
146
146
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
147
147
|
}).length)), this.slicer = {
|
|
148
148
|
start: 0,
|
|
@@ -184,11 +184,11 @@ const ct = ne(), ot = {
|
|
|
184
184
|
},
|
|
185
185
|
minimap() {
|
|
186
186
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
187
|
-
const s = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), n = Math.max(...s.map((l) => l.series.length)),
|
|
187
|
+
const s = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), n = Math.max(...s.map((l) => l.series.length)), h = [];
|
|
188
188
|
for (let l = 0; l < n; l += 1)
|
|
189
|
-
|
|
190
|
-
const f = Math.min(...
|
|
191
|
-
return
|
|
189
|
+
h.push(s.map((e) => e.series[l] || 0).reduce((e, a) => (e || 0) + (a || 0), 0));
|
|
190
|
+
const f = Math.min(...h);
|
|
191
|
+
return h.map((l) => l + (f < 0 ? Math.abs(f) : 0));
|
|
192
192
|
},
|
|
193
193
|
customPalette() {
|
|
194
194
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -223,7 +223,7 @@ const ct = ne(), ot = {
|
|
|
223
223
|
id: e.id,
|
|
224
224
|
yOffset: e.yOffset || 0,
|
|
225
225
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
226
|
-
})),
|
|
226
|
+
})), h = this.plotSet.map((e) => ({
|
|
227
227
|
name: e.name,
|
|
228
228
|
color: e.color,
|
|
229
229
|
scale: e.individualScale,
|
|
@@ -235,7 +235,7 @@ const ct = ne(), ot = {
|
|
|
235
235
|
id: e.id,
|
|
236
236
|
yOffset: e.yOffset || 0,
|
|
237
237
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
238
|
-
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...s, ...n, ...
|
|
238
|
+
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...s, ...n, ...h], l = f.flatMap((e) => e).length;
|
|
239
239
|
return f.flatMap((e, a) => ({
|
|
240
240
|
unique: e.unique,
|
|
241
241
|
id: e.id,
|
|
@@ -247,9 +247,9 @@ const ct = ne(), ot = {
|
|
|
247
247
|
yOffset: e.yOffset,
|
|
248
248
|
individualHeight: e.individualHeight,
|
|
249
249
|
x: (this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / l * (a + 1)) - this.fontSizes.dataLabels * 1.2,
|
|
250
|
-
yLabels: e.scaleYLabels || e.scale.ticks.map((
|
|
251
|
-
y:
|
|
252
|
-
value:
|
|
250
|
+
yLabels: e.scaleYLabels || e.scale.ticks.map((A) => ({
|
|
251
|
+
y: A >= 0 ? e.zero - e.individualHeight * (A / e.max) : e.zero + e.individualHeight * Math.abs(A) / e.max,
|
|
252
|
+
value: A
|
|
253
253
|
}))
|
|
254
254
|
}));
|
|
255
255
|
},
|
|
@@ -301,14 +301,14 @@ const ct = ne(), ot = {
|
|
|
301
301
|
},
|
|
302
302
|
safeDataset() {
|
|
303
303
|
return this.useSafeValues ? this.dataset.map((s, n) => {
|
|
304
|
-
const
|
|
304
|
+
const h = this.largestTriangleThreeBucketsArray({
|
|
305
305
|
data: s.series,
|
|
306
306
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
307
307
|
}), f = `uniqueId_${n}`;
|
|
308
308
|
return {
|
|
309
309
|
...s,
|
|
310
310
|
slotAbsoluteIndex: n,
|
|
311
|
-
series:
|
|
311
|
+
series: h.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
|
|
312
312
|
color: this.convertColorToHex(s.color ? s.color : this.customPalette[n] ? this.customPalette[n] : this.palette[n]),
|
|
313
313
|
id: f,
|
|
314
314
|
scaleLabel: s.scaleLabel || f
|
|
@@ -318,13 +318,13 @@ const ct = ne(), ot = {
|
|
|
318
318
|
relativeDataset() {
|
|
319
319
|
return this.safeDataset.map((s, n) => ({
|
|
320
320
|
...s,
|
|
321
|
-
series: s.series.map((
|
|
321
|
+
series: s.series.map((h) => h + this.relativeZero),
|
|
322
322
|
absoluteValues: s.series
|
|
323
323
|
})).filter((s) => !this.segregatedSeries.includes(s.id));
|
|
324
324
|
},
|
|
325
325
|
tableSparklineDataset() {
|
|
326
326
|
return this.relativeDataset.map((s) => {
|
|
327
|
-
const n = s.absoluteValues.map((
|
|
327
|
+
const n = s.absoluteValues.map((h) => [void 0, null].includes(h) ? 0 : h);
|
|
328
328
|
return {
|
|
329
329
|
id: s.id,
|
|
330
330
|
name: s.name,
|
|
@@ -363,7 +363,7 @@ const ct = ne(), ot = {
|
|
|
363
363
|
return this.safeDataset.map((s, n) => ({
|
|
364
364
|
absoluteIndex: n,
|
|
365
365
|
...s,
|
|
366
|
-
series: s.series.map((
|
|
366
|
+
series: s.series.map((h) => h + this.relativeZero),
|
|
367
367
|
absoluteValues: s.series,
|
|
368
368
|
segregate: () => this.segregate(s),
|
|
369
369
|
isSegregated: this.segregatedSeries.includes(s.id)
|
|
@@ -376,10 +376,10 @@ const ct = ne(), ot = {
|
|
|
376
376
|
return this.assignStackRatios(this.absoluteDataset.filter((s) => !this.segregatedSeries.includes(s.id)));
|
|
377
377
|
},
|
|
378
378
|
scaleGroups() {
|
|
379
|
-
const s = Object.groupBy(this.activeSeriesWithStackRatios, (
|
|
380
|
-
for (const [
|
|
379
|
+
const s = Object.groupBy(this.activeSeriesWithStackRatios, (h) => h.scaleLabel), n = {};
|
|
380
|
+
for (const [h, f] of Object.entries(s)) {
|
|
381
381
|
const l = f.flatMap((e) => e.absoluteValues);
|
|
382
|
-
n[
|
|
382
|
+
n[h] = {
|
|
383
383
|
min: Math.min(...l) || 0,
|
|
384
384
|
max: Math.max(...l) || 1,
|
|
385
385
|
groupId: `scale_group_${this.createUid()}`
|
|
@@ -388,19 +388,19 @@ const ct = ne(), ot = {
|
|
|
388
388
|
return n;
|
|
389
389
|
},
|
|
390
390
|
barSet() {
|
|
391
|
-
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length,
|
|
392
|
-
return s.filter((a) => a.type === "bar").map((a,
|
|
391
|
+
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
|
|
392
|
+
return s.filter((a) => a.type === "bar").map((a, A) => {
|
|
393
393
|
this.checkAutoScaleError(a);
|
|
394
|
-
const
|
|
395
|
-
a.absoluteValues.filter((C) => ![null, void 0].includes(C)).map((C) => (C -
|
|
394
|
+
const M = this.scaleGroups[a.scaleLabel].min, w = this.scaleGroups[a.scaleLabel].max;
|
|
395
|
+
a.absoluteValues.filter((C) => ![null, void 0].includes(C)).map((C) => (C - M) / (w - M));
|
|
396
396
|
const N = {
|
|
397
|
-
valueMin:
|
|
397
|
+
valueMin: M,
|
|
398
398
|
valueMax: w < 0 ? 0 : w
|
|
399
|
-
},
|
|
399
|
+
}, F = {
|
|
400
400
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
401
401
|
min: a.scaleMin || Math.min(...a.absoluteValues.filter((C) => ![void 0, null].includes(C))) > 0 ? 0 : Math.min(...a.absoluteValues.filter((C) => ![null, void 0].includes(C)))
|
|
402
|
-
},
|
|
403
|
-
const K = this.mutableConfig.useIndividualScale ? (a.absoluteValues[P] +
|
|
402
|
+
}, v = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), p = L.min >= 0 ? 0 : Math.abs(L.min), B = 0, t = L.max + p, o = b.max + Math.abs(B), c = a.stackIndex, g = n - 1 - c, z = f ? 1 - a.cumulatedStackRatio : 0, S = f ? e * z + h * g : 0, k = f ? e * a.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * p / t, Y = this.drawingArea.bottom - S - k * B / o, E = this.absoluteDataset.filter((C) => C.type === "bar").filter((C) => !this.segregatedSeries.includes(C.id)).length, te = a.series.map((C, P) => {
|
|
403
|
+
const K = this.mutableConfig.useIndividualScale ? (a.absoluteValues[P] + p) / t : this.ratioToMax(C), Q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * P : this.drawingArea.left + this.slot.bar * A + this.slot.bar * P * E - this.barSlot / 2 - A * this.barPeriodGap;
|
|
404
404
|
return {
|
|
405
405
|
yOffset: this.checkNaN(S),
|
|
406
406
|
individualHeight: this.checkNaN(k),
|
|
@@ -412,7 +412,7 @@ const ct = ne(), ot = {
|
|
|
412
412
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
413
413
|
};
|
|
414
414
|
}), W = a.absoluteValues.map((C) => b.min >= 0 ? (C - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (C + Math.abs(b.min)) / (b.max + Math.abs(b.min))), J = a.series.map((C, P) => {
|
|
415
|
-
const K = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * P : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar *
|
|
415
|
+
const K = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * P : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * A + this.slot.bar * P * this.absoluteDataset.filter((Q) => Q.type === "bar").filter((Q) => !this.segregatedSeries.includes(Q.id)).length;
|
|
416
416
|
return {
|
|
417
417
|
yOffset: this.checkNaN(S),
|
|
418
418
|
individualHeight: this.checkNaN(k),
|
|
@@ -454,26 +454,26 @@ const ct = ne(), ot = {
|
|
|
454
454
|
});
|
|
455
455
|
},
|
|
456
456
|
lineSet() {
|
|
457
|
-
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length,
|
|
458
|
-
return s.filter((a) => a.type === "line").map((a,
|
|
457
|
+
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
|
|
458
|
+
return s.filter((a) => a.type === "line").map((a, A) => {
|
|
459
459
|
this.checkAutoScaleError(a);
|
|
460
|
-
const
|
|
461
|
-
a.absoluteValues.filter((
|
|
460
|
+
const M = this.scaleGroups[a.scaleLabel].min, w = this.scaleGroups[a.scaleLabel].max;
|
|
461
|
+
a.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - M) / (w - M));
|
|
462
462
|
const N = {
|
|
463
|
-
valueMin:
|
|
463
|
+
valueMin: M,
|
|
464
464
|
valueMax: w
|
|
465
|
-
},
|
|
465
|
+
}, F = {
|
|
466
466
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
467
467
|
min: a.scaleMin || (Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues))
|
|
468
|
-
},
|
|
469
|
-
const he = this.mutableConfig.useIndividualScale ? (a.absoluteValues[H] + Math.abs(
|
|
468
|
+
}, v = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), p = L.min >= 0 ? 0 : Math.abs(L.min), B = 0, t = L.max + Math.abs(p), o = b.max + Math.abs(B), c = a.stackIndex, g = n - 1 - c, z = f ? 1 - a.cumulatedStackRatio : 0, S = f ? e * z + h * g : 0, k = f ? e * a.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * p / t, Y = this.drawingArea.bottom - S - k * B / o, E = a.series.map((y, H) => {
|
|
469
|
+
const he = this.mutableConfig.useIndividualScale ? (a.absoluteValues[H] + Math.abs(p)) / t : this.ratioToMax(y);
|
|
470
470
|
return {
|
|
471
471
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * H),
|
|
472
472
|
y: this.checkNaN(this.drawingArea.bottom - S - k * he),
|
|
473
473
|
value: a.absoluteValues[H],
|
|
474
474
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[H] || ""
|
|
475
475
|
};
|
|
476
|
-
}), te = a.absoluteValues.map((
|
|
476
|
+
}), te = a.absoluteValues.map((y) => b.min >= 0 ? (y - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (y + Math.abs(b.min)) / (b.max + Math.abs(b.min))), W = a.series.map((y, H) => [void 0, null].includes(a.absoluteValues[H]) ? {
|
|
477
477
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * H),
|
|
478
478
|
y: T,
|
|
479
479
|
value: a.absoluteValues[H],
|
|
@@ -483,23 +483,23 @@ const ct = ne(), ot = {
|
|
|
483
483
|
y: this.checkNaN(this.drawingArea.bottom - S - (k * te[H] || 0)),
|
|
484
484
|
value: a.absoluteValues[H],
|
|
485
485
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[H] || ""
|
|
486
|
-
}), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(E) : this.createSmoothPath(E.filter((
|
|
487
|
-
y:
|
|
488
|
-
value:
|
|
486
|
+
}), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(E) : this.createSmoothPath(E.filter((y) => y.value !== null)), O = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(W) : this.createSmoothPath(W.filter((y) => y.value !== null)), V = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(E) : this.createStraightPath(E.filter((y) => y.value !== null)), C = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(W) : this.createStraightPath(W.filter((y) => y.value !== null)), P = L.ticks.map((y) => ({
|
|
487
|
+
y: y >= 0 ? T - k * (y / t) : T + k * Math.abs(y) / t,
|
|
488
|
+
value: y,
|
|
489
489
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
490
490
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
491
491
|
datapoint: a
|
|
492
|
-
})), K = b.ticks.map((
|
|
493
|
-
const H = (
|
|
492
|
+
})), K = b.ticks.map((y) => {
|
|
493
|
+
const H = (y - b.min) / (b.max - b.min);
|
|
494
494
|
return {
|
|
495
|
-
y:
|
|
496
|
-
value:
|
|
495
|
+
y: y >= 0 ? Y - k * H : Y + k * H,
|
|
496
|
+
value: y,
|
|
497
497
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
498
498
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
499
499
|
datapoint: a
|
|
500
500
|
};
|
|
501
501
|
});
|
|
502
|
-
this.scaleGroups[a.scaleLabel].name = a.name, this.scaleGroups[a.scaleLabel].groupName = a.scaleLabel, this.scaleGroups[a.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || a.color, this.scaleGroups[a.scaleLabel].color = a.color, this.scaleGroups[a.scaleLabel].scaleYLabels = a.autoScaling ? K : P, this.scaleGroups[a.scaleLabel].zeroPosition = a.autoScaling ? Y : T, this.scaleGroups[a.scaleLabel].individualMax = a.autoScaling ? o : t, this.scaleGroups[a.scaleLabel].scaleLabel = a.scaleLabel, this.scaleGroups[a.scaleLabel].id = a.id, this.scaleGroups[a.scaleLabel].yOffset = S, this.scaleGroups[a.scaleLabel].individualHeight = k, this.scaleGroups[a.scaleLabel].autoScaleYLabels = K, this.scaleGroups[a.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((
|
|
502
|
+
this.scaleGroups[a.scaleLabel].name = a.name, this.scaleGroups[a.scaleLabel].groupName = a.scaleLabel, this.scaleGroups[a.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || a.color, this.scaleGroups[a.scaleLabel].color = a.color, this.scaleGroups[a.scaleLabel].scaleYLabels = a.autoScaling ? K : P, this.scaleGroups[a.scaleLabel].zeroPosition = a.autoScaling ? Y : T, this.scaleGroups[a.scaleLabel].individualMax = a.autoScaling ? o : t, this.scaleGroups[a.scaleLabel].scaleLabel = a.scaleLabel, this.scaleGroups[a.scaleLabel].id = a.id, this.scaleGroups[a.scaleLabel].yOffset = S, this.scaleGroups[a.scaleLabel].individualHeight = k, this.scaleGroups[a.scaleLabel].autoScaleYLabels = K, this.scaleGroups[a.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((y) => y.scaleLabel === a.scaleLabel).length === 1;
|
|
503
503
|
const Q = this.mutableConfig.useIndividualScale ? a.autoScaling ? Y : T : this.zero, se = Math.max(Math.max(a.autoScaling ? Y : P.length ? P.at(-1).y : 0, this.drawingArea.top), Q);
|
|
504
504
|
return {
|
|
505
505
|
...a,
|
|
@@ -516,11 +516,11 @@ const ct = ne(), ot = {
|
|
|
516
516
|
a.autoScaling ? W : E,
|
|
517
517
|
se
|
|
518
518
|
) : this.createIndividualArea(
|
|
519
|
-
a.autoScaling ? W.filter((
|
|
519
|
+
a.autoScaling ? W.filter((y) => y.value !== null) : E.filter((y) => y.value !== null),
|
|
520
520
|
se
|
|
521
|
-
) : this.createIndividualArea(E.filter((
|
|
521
|
+
) : this.createIndividualArea(E.filter((y) => y.value !== null), se) : "",
|
|
522
522
|
curveAreas: a.useArea ? ce(
|
|
523
|
-
a.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? W : W.filter((
|
|
523
|
+
a.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? W : W.filter((y) => y.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((y) => y.value !== null),
|
|
524
524
|
se,
|
|
525
525
|
this.FINAL_CONFIG.line.cutNullValues
|
|
526
526
|
) : [],
|
|
@@ -530,18 +530,18 @@ const ct = ne(), ot = {
|
|
|
530
530
|
});
|
|
531
531
|
},
|
|
532
532
|
plotSet() {
|
|
533
|
-
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length,
|
|
533
|
+
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
|
|
534
534
|
return s.filter((a) => a.type === "plot").map((a) => {
|
|
535
535
|
this.checkAutoScaleError(a);
|
|
536
|
-
const
|
|
537
|
-
a.absoluteValues.filter((O) => ![null, void 0].includes(O)).map((O) => (O -
|
|
536
|
+
const A = this.scaleGroups[a.scaleLabel].min, M = this.scaleGroups[a.scaleLabel].max;
|
|
537
|
+
a.absoluteValues.filter((O) => ![null, void 0].includes(O)).map((O) => (O - A) / (M - A));
|
|
538
538
|
const w = {
|
|
539
|
-
valueMin:
|
|
540
|
-
valueMax:
|
|
539
|
+
valueMin: A,
|
|
540
|
+
valueMax: M
|
|
541
541
|
}, N = {
|
|
542
542
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
543
543
|
min: a.scaleMin || Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues)
|
|
544
|
-
},
|
|
544
|
+
}, F = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, v = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(N.min, N.max === N.min ? N.max * v : N.max, F), L = this.calculateNiceScaleWithExactExtremes(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * v : w.valueMax, F), b = m.min >= 0 ? 0 : Math.abs(m.min), p = 0, B = m.max + b, t = L.max + Math.abs(p), o = a.stackIndex, c = n - 1 - o, g = f ? 1 - a.cumulatedStackRatio : 0, z = f ? e * g + h * c : 0, S = f ? e * a.stackRatio : this.drawingArea.height, k = this.drawingArea.bottom - z - S * b / B, T = this.drawingArea.bottom - z - S * p / t, Y = a.series.map((O, V) => {
|
|
545
545
|
const C = this.mutableConfig.useIndividualScale ? (a.absoluteValues[V] + Math.abs(b)) / B : this.ratioToMax(O);
|
|
546
546
|
return {
|
|
547
547
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * V),
|
|
@@ -588,18 +588,18 @@ const ct = ne(), ot = {
|
|
|
588
588
|
function s(l) {
|
|
589
589
|
const e = /* @__PURE__ */ new Set();
|
|
590
590
|
return l.forEach((a) => {
|
|
591
|
-
const
|
|
592
|
-
e.add(
|
|
591
|
+
const A = a.scaleLabel || "__noScaleLabel__";
|
|
592
|
+
e.add(A);
|
|
593
593
|
}), e.size;
|
|
594
594
|
}
|
|
595
|
-
const n = s(this.absoluteDataset.filter((l) => !this.segregatedSeries.includes(l.id))),
|
|
595
|
+
const n = s(this.absoluteDataset.filter((l) => !this.segregatedSeries.includes(l.id))), h = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? n * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + this.fontSizes.dataLabels * 1.2) : 0, f = this.mutableConfig.isStacked ? this.fontSizes.dataLabels * 2 : 0;
|
|
596
596
|
return {
|
|
597
597
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
598
598
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
599
599
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
600
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
600
|
+
left: this.FINAL_CONFIG.chart.padding.left + h + f,
|
|
601
601
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
602
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
602
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + h + f)
|
|
603
603
|
};
|
|
604
604
|
},
|
|
605
605
|
max() {
|
|
@@ -646,13 +646,13 @@ const ct = ne(), ot = {
|
|
|
646
646
|
},
|
|
647
647
|
table() {
|
|
648
648
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
649
|
-
const s = this.relativeDataset.map((
|
|
650
|
-
label:
|
|
651
|
-
color:
|
|
652
|
-
type:
|
|
649
|
+
const s = this.relativeDataset.map((h) => ({
|
|
650
|
+
label: h.name,
|
|
651
|
+
color: h.color,
|
|
652
|
+
type: h.type
|
|
653
653
|
})), n = [];
|
|
654
|
-
return this.timeLabels.forEach((
|
|
655
|
-
const l = [
|
|
654
|
+
return this.timeLabels.forEach((h, f) => {
|
|
655
|
+
const l = [h.text];
|
|
656
656
|
this.relativeDataset.forEach((e) => {
|
|
657
657
|
l.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
658
658
|
}), n.push(l);
|
|
@@ -662,20 +662,20 @@ const ct = ne(), ot = {
|
|
|
662
662
|
const s = this.FINAL_CONFIG.table.showSum;
|
|
663
663
|
let n = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
664
664
|
s && (n = n.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>'));
|
|
665
|
-
let
|
|
665
|
+
let h = [];
|
|
666
666
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
667
|
-
const a = this.relativeDataset.map((
|
|
668
|
-
|
|
667
|
+
const a = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A, M) => A + M, 0);
|
|
668
|
+
h.push(
|
|
669
669
|
[
|
|
670
670
|
this.timeLabels[e].text ?? "-"
|
|
671
671
|
].concat(this.relativeDataset.map(
|
|
672
|
-
(
|
|
673
|
-
|
|
674
|
-
|
|
672
|
+
(A) => this.applyDataLabel(
|
|
673
|
+
A.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : A.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
674
|
+
A.absoluteValues[e] ?? 0,
|
|
675
675
|
this.dataLabel({
|
|
676
|
-
p:
|
|
677
|
-
v:
|
|
678
|
-
s:
|
|
676
|
+
p: A.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
677
|
+
v: A.absoluteValues[e] ?? 0,
|
|
678
|
+
s: A.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
679
679
|
r: this.FINAL_CONFIG.table.rounding
|
|
680
680
|
})
|
|
681
681
|
)
|
|
@@ -695,7 +695,7 @@ const ct = ne(), ot = {
|
|
|
695
695
|
},
|
|
696
696
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
697
697
|
}, l = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
698
|
-
return { head: n, body:
|
|
698
|
+
return { head: n, body: h, config: f, colNames: l };
|
|
699
699
|
},
|
|
700
700
|
dataTooltipSlot() {
|
|
701
701
|
return {
|
|
@@ -715,7 +715,7 @@ const ct = ne(), ot = {
|
|
|
715
715
|
name: s.name,
|
|
716
716
|
color: s.color,
|
|
717
717
|
type: s.type,
|
|
718
|
-
value: s.absoluteValues.find((n,
|
|
718
|
+
value: s.absoluteValues.find((n, h) => h === this.selectedSerieIndex),
|
|
719
719
|
comments: s.comments || [],
|
|
720
720
|
prefix: s.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
721
721
|
suffix: s.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
@@ -723,7 +723,7 @@ const ct = ne(), ot = {
|
|
|
723
723
|
},
|
|
724
724
|
tooltipContent() {
|
|
725
725
|
let s = "", n = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
|
|
726
|
-
const
|
|
726
|
+
const h = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
727
727
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
728
728
|
seriesIndex: this.selectedSerieIndex,
|
|
729
729
|
datapoint: this.selectedSeries,
|
|
@@ -740,7 +740,7 @@ const ct = ne(), ot = {
|
|
|
740
740
|
lines: this.lineSet,
|
|
741
741
|
plots: this.plotSet,
|
|
742
742
|
config: this.FINAL_CONFIG
|
|
743
|
-
}) : (
|
|
743
|
+
}) : (h && h.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${h.text}</div>`), this.selectedSeries.forEach((l) => {
|
|
744
744
|
if (this.isSafeValue(l.value)) {
|
|
745
745
|
let e = "", a = "";
|
|
746
746
|
switch (this.icons[l.type]) {
|
|
@@ -822,26 +822,26 @@ const ct = ne(), ot = {
|
|
|
822
822
|
(N) => N.show && (N.yAxis.yTop != null || N.yAxis.yBottom != null)
|
|
823
823
|
);
|
|
824
824
|
if (!n.length) return [];
|
|
825
|
-
const { left:
|
|
826
|
-
const
|
|
827
|
-
return l -
|
|
825
|
+
const { left: h, right: f } = this.drawingArea, l = this.zero, e = this.drawingArea.height, a = this.niceScale.min, M = this.niceScale.max - a, w = (N) => {
|
|
826
|
+
const F = (N - 0) / M;
|
|
827
|
+
return l - F * e;
|
|
828
828
|
};
|
|
829
829
|
return n.map((N) => {
|
|
830
|
-
const { yAxis: { yTop:
|
|
830
|
+
const { yAxis: { yTop: F, yBottom: v, label: m } } = N, L = F != null && v != null && F !== v, b = F == null ? null : w(F), p = v == null ? null : w(v), B = this.getTextMeasurer(m.fontSize);
|
|
831
831
|
B.font = `${m.fontSize}px sans-serif`;
|
|
832
|
-
const t = B.measureText(m.text).width, o = m.fontSize, c = (m.position === "start" ?
|
|
832
|
+
const t = B.measureText(m.text).width, o = m.fontSize, c = (m.position === "start" ? h + m.padding.left : f - m.padding.right) + m.offsetX, z = (b != null && p != null ? Math.min(b, p) : b ?? p) - m.fontSize / 3 + m.offsetY - m.padding.top;
|
|
833
833
|
let S;
|
|
834
834
|
m.textAnchor === "middle" ? S = c - t / 2 - m.padding.left : m.textAnchor === "end" ? S = c - t - m.padding.right : S = c - m.padding.left;
|
|
835
835
|
const k = z - o * 0.75 - m.padding.top;
|
|
836
836
|
return {
|
|
837
|
-
show: ![b,
|
|
837
|
+
show: ![b, p, k].includes(NaN),
|
|
838
838
|
id: `annotation_y_${this.createUid()}`,
|
|
839
839
|
hasArea: L,
|
|
840
|
-
areaHeight: L ? Math.abs(b -
|
|
840
|
+
areaHeight: L ? Math.abs(b - p) : 0,
|
|
841
841
|
yTop: b,
|
|
842
|
-
yBottom:
|
|
842
|
+
yBottom: p,
|
|
843
843
|
config: N.yAxis,
|
|
844
|
-
x1:
|
|
844
|
+
x1: h,
|
|
845
845
|
x2: f,
|
|
846
846
|
_text: { x: c, y: z },
|
|
847
847
|
_box: {
|
|
@@ -915,19 +915,19 @@ const ct = ne(), ot = {
|
|
|
915
915
|
usesSelectTimeLabelEvent() {
|
|
916
916
|
return !!this.$.vnode.props?.onSelectTimeLabel;
|
|
917
917
|
},
|
|
918
|
-
getTextMeasurer(s, n,
|
|
918
|
+
getTextMeasurer(s, n, h) {
|
|
919
919
|
if (!this._textMeasurer) {
|
|
920
920
|
const f = document.createElement("canvas");
|
|
921
921
|
this._textMeasurer = f.getContext("2d");
|
|
922
922
|
}
|
|
923
|
-
return this._textMeasurer.font = `${
|
|
923
|
+
return this._textMeasurer.font = `${h || "normal"} ${s}px ${n || "sans-serif"}`, this._textMeasurer;
|
|
924
924
|
},
|
|
925
925
|
hideTags() {
|
|
926
926
|
const s = document.querySelectorAll(".vue-ui-xy-tag");
|
|
927
927
|
s.length && Array.from(s).forEach((n) => n.style.opacity = "0");
|
|
928
928
|
},
|
|
929
|
-
setTagRef(s, n,
|
|
930
|
-
|
|
929
|
+
setTagRef(s, n, h, f, l) {
|
|
930
|
+
h && (this.tagRefs[`${s}_${n}_${f}_${l}`] = h);
|
|
931
931
|
},
|
|
932
932
|
setUserOptionsVisibility(s = !1) {
|
|
933
933
|
this.showUserOptionsOnChartHover && (this.userOptionsVisible = s);
|
|
@@ -936,7 +936,7 @@ const ct = ne(), ot = {
|
|
|
936
936
|
this.isAnnotator = !this.isAnnotator;
|
|
937
937
|
},
|
|
938
938
|
selectTimeLabel(s, n) {
|
|
939
|
-
const
|
|
939
|
+
const h = this.relativeDataset.map((f) => ({
|
|
940
940
|
shape: f.shape || null,
|
|
941
941
|
name: f.name,
|
|
942
942
|
color: f.color,
|
|
@@ -947,16 +947,16 @@ const ct = ne(), ot = {
|
|
|
947
947
|
suffix: f.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
948
948
|
}));
|
|
949
949
|
this.$emit("selectTimeLabel", {
|
|
950
|
-
datapoint:
|
|
950
|
+
datapoint: h,
|
|
951
951
|
absoluteIndex: s.absoluteIndex,
|
|
952
952
|
label: s.text
|
|
953
953
|
});
|
|
954
954
|
},
|
|
955
955
|
getHighlightAreaPosition(s) {
|
|
956
|
-
const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (s.from - this.slicer.start),
|
|
956
|
+
const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (s.from - this.slicer.start), h = this.drawingArea.width / (this.slicer.end - this.slicer.start) * s.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * s.span;
|
|
957
957
|
return {
|
|
958
958
|
x: n < this.drawingArea.left ? this.drawingArea.left : n,
|
|
959
|
-
width:
|
|
959
|
+
width: h
|
|
960
960
|
};
|
|
961
961
|
},
|
|
962
962
|
prepareConfig() {
|
|
@@ -967,9 +967,9 @@ const ct = ne(), ot = {
|
|
|
967
967
|
userConfig: this.config,
|
|
968
968
|
defaultConfig: s
|
|
969
969
|
});
|
|
970
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? n.chart.highlightArea = this.config.chart.highlightArea : n.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? n.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : n.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? n.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : n.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? n.chart.zoom.startIndex = this.config.chart.zoom.startIndex : n.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? n.chart.zoom.endIndex = this.config.chart.zoom.endIndex : n.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? n.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : n.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? n.chart.annotations = this.config.chart.annotations.map((
|
|
970
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? n.chart.highlightArea = this.config.chart.highlightArea : n.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? n.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : n.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? n.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : n.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? n.chart.zoom.startIndex = this.config.chart.zoom.startIndex : n.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? n.chart.zoom.endIndex = this.config.chart.zoom.endIndex : n.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? n.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : n.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? n.chart.annotations = this.config.chart.annotations.map((h) => ie({
|
|
971
971
|
defaultConfig: s.chart.annotations[0],
|
|
972
|
-
userConfig:
|
|
972
|
+
userConfig: h
|
|
973
973
|
})) : n.chart.annotations = [], n.theme ? {
|
|
974
974
|
...ie({
|
|
975
975
|
userConfig: this.themes.vue_ui_xy[n.theme] || this.config,
|
|
@@ -983,12 +983,13 @@ const ct = ne(), ot = {
|
|
|
983
983
|
if (!s) return;
|
|
984
984
|
const n = this.$refs.chart;
|
|
985
985
|
n && n.classList.add("no-transition");
|
|
986
|
-
const
|
|
987
|
-
let
|
|
988
|
-
this.$refs.yAxisLabel && (
|
|
989
|
-
let
|
|
990
|
-
this.$refs.xAxisLabel && (
|
|
991
|
-
|
|
986
|
+
const h = this.fontSizes.plotLabels;
|
|
987
|
+
let f = 0;
|
|
988
|
+
this.$refs.yAxisLabel && (f += this.$refs.yAxisLabel.getBBox().width);
|
|
989
|
+
let l = 0;
|
|
990
|
+
this.$refs.xAxisLabel && (l += this.$refs.xAxisLabel.getBBox().height + this.fontSizes.yAxis + this.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY), await this.$nextTick(), await this.$nextTick(() => {
|
|
991
|
+
const { x: e, y: a, width: A, height: M } = s.getBBox();
|
|
992
|
+
if (this.viewBox = `${e - f} ${a - h} ${A + f} ${M + h + l}`, this.$refs.scaleLabels) {
|
|
992
993
|
const { x: w, width: N } = this.$refs.scaleLabels.getBBox();
|
|
993
994
|
this.scaleBox.x = w, this.scaleBox.width = N;
|
|
994
995
|
} else
|
|
@@ -1008,9 +1009,9 @@ const ct = ne(), ot = {
|
|
|
1008
1009
|
index: n
|
|
1009
1010
|
});
|
|
1010
1011
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((s) => {
|
|
1011
|
-
s.series.forEach((n,
|
|
1012
|
+
s.series.forEach((n, h) => {
|
|
1012
1013
|
this.isSafeValue(n) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1013
|
-
-----> The serie '${s.name}' contains the value '${n}' at index ${
|
|
1014
|
+
-----> The serie '${s.name}' contains the value '${n}' at index ${h}.
|
|
1014
1015
|
'${n}' was converted to null to allow the chart to display.`);
|
|
1015
1016
|
});
|
|
1016
1017
|
}), this.showUserOptionsOnChartHover = this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.keepUserOptionState = this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave, this.userOptionsVisible = !this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.mutableConfig = {
|
|
@@ -1024,25 +1025,25 @@ const ct = ne(), ot = {
|
|
|
1024
1025
|
}, this.FINAL_CONFIG.responsive) {
|
|
1025
1026
|
const n = this.$refs.chart.parentNode;
|
|
1026
1027
|
this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
1027
|
-
const { height:
|
|
1028
|
+
const { height: h, width: f } = n.getBoundingClientRect();
|
|
1028
1029
|
let l = null, e = 0;
|
|
1029
1030
|
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
|
|
1030
|
-
let a = null,
|
|
1031
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (a = this.$refs.chartSlicer.$el,
|
|
1032
|
-
let
|
|
1033
|
-
this.FINAL_CONFIG.chart.legend.show && this.$refs.chartLegend && (
|
|
1031
|
+
let a = null, A = 0;
|
|
1032
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (a = this.$refs.chartSlicer.$el, A = a.getBoundingClientRect().height);
|
|
1033
|
+
let M = null, w = 0;
|
|
1034
|
+
this.FINAL_CONFIG.chart.legend.show && this.$refs.chartLegend && (M = this.$refs.chartLegend, w = M.getBoundingClientRect().height);
|
|
1034
1035
|
let N = 0;
|
|
1035
1036
|
this.$refs.source && (N = this.$refs.source.getBoundingClientRect().height);
|
|
1036
|
-
let
|
|
1037
|
-
this.$refs.noTitle && (
|
|
1038
|
-
const
|
|
1039
|
-
this.height =
|
|
1037
|
+
let F = 0;
|
|
1038
|
+
this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height);
|
|
1039
|
+
const v = e + F + A + w + N + 12;
|
|
1040
|
+
this.height = h - v, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), this.$nextTick(this.setViewBox);
|
|
1040
1041
|
const m = this.$refs.svgRef;
|
|
1041
|
-
m && m.setAttribute("height", `calc(100% - ${
|
|
1042
|
+
m && m.setAttribute("height", `calc(100% - ${v}px`);
|
|
1042
1043
|
const L = new ResizeObserver((b) => {
|
|
1043
|
-
for (const
|
|
1044
|
-
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ?
|
|
1045
|
-
this.height = Math.max(12,
|
|
1044
|
+
for (const p of b)
|
|
1045
|
+
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ? A = this.$refs.chartSlicer.$el.getBoundingClientRect().height : A = 0, this.$refs.chartLegend ? w = this.$refs.chartLegend.getBoundingClientRect().height : w = 0, this.$refs.source ? N = this.$refs.source.getBoundingClientRect().height : N = 0, this.$refs.noTitle ? F = this.$refs.noTitle.getBoundingClientRect().height : F = 0, requestAnimationFrame(() => {
|
|
1046
|
+
this.height = Math.max(12, p.contentRect.height - e - w - A - N - F - 12), this.width = Math.max(12, p.contentBoxSize[0].inlineSize), this.viewBox = `0 0 ${Math.max(10, this.width)} ${Math.max(10, this.height)}`, this.convertSizes(), this.$nextTick(this.setViewBox);
|
|
1046
1047
|
});
|
|
1047
1048
|
});
|
|
1048
1049
|
this.resizeObserver = L, this.observedEl = n, L.observe(n);
|
|
@@ -1112,18 +1113,18 @@ const ct = ne(), ot = {
|
|
|
1112
1113
|
},
|
|
1113
1114
|
createArea(s, n) {
|
|
1114
1115
|
if (!s[0]) return [-10, -10, "", -10, -10];
|
|
1115
|
-
const
|
|
1116
|
+
const h = { x: s[0].x, y: n }, f = { x: s.at(-1).x, y: n }, l = [];
|
|
1116
1117
|
return s.forEach((e) => {
|
|
1117
1118
|
l.push(`${e.x},${e.y} `);
|
|
1118
|
-
}), [
|
|
1119
|
+
}), [h.x, h.y, ...l, f.x, f.y].toString();
|
|
1119
1120
|
},
|
|
1120
1121
|
createStar: ae,
|
|
1121
1122
|
createPolygonPath: q,
|
|
1122
1123
|
fillArray(s, n) {
|
|
1123
|
-
let
|
|
1124
|
+
let h = Array(s).fill(0);
|
|
1124
1125
|
for (let f = 0; f < n.length && f < s; f += 1)
|
|
1125
|
-
|
|
1126
|
-
return
|
|
1126
|
+
h[f] = n[f];
|
|
1127
|
+
return h;
|
|
1127
1128
|
},
|
|
1128
1129
|
async setupSlicer() {
|
|
1129
1130
|
(this.FINAL_CONFIG.chart.zoom.startIndex !== null || this.FINAL_CONFIG.chart.zoom.endIndex !== null) && this.$refs.chartSlicer ? (this.FINAL_CONFIG.chart.zoom.startIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)), this.FINAL_CONFIG.chart.zoom.endIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex + 1)))) : (this.slicer = {
|
|
@@ -1135,7 +1136,7 @@ const ct = ne(), ot = {
|
|
|
1135
1136
|
this.setupSlicer();
|
|
1136
1137
|
},
|
|
1137
1138
|
validSlicerEnd(s) {
|
|
1138
|
-
const n = Math.max(...this.dataset.map((
|
|
1139
|
+
const n = Math.max(...this.dataset.map((h) => this.largestTriangleThreeBucketsArray({ data: h.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
1139
1140
|
return s > n ? n : s < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && s < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : s;
|
|
1140
1141
|
},
|
|
1141
1142
|
calcRectHeight(s) {
|
|
@@ -1161,12 +1162,12 @@ const ct = ne(), ot = {
|
|
|
1161
1162
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(s);
|
|
1162
1163
|
},
|
|
1163
1164
|
findClosestValue(s, n) {
|
|
1164
|
-
let
|
|
1165
|
+
let h = n[0], f = Math.abs(s - n[0]);
|
|
1165
1166
|
for (let l = 1; l < n.length; l += 1) {
|
|
1166
1167
|
const e = Math.abs(s - n[l]);
|
|
1167
|
-
e < f && n[l] < s && (
|
|
1168
|
+
e < f && n[l] < s && (h = n[l], f = e);
|
|
1168
1169
|
}
|
|
1169
|
-
return
|
|
1170
|
+
return h;
|
|
1170
1171
|
},
|
|
1171
1172
|
ratioToMax(s) {
|
|
1172
1173
|
return s / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
@@ -1220,7 +1221,7 @@ const ct = ne(), ot = {
|
|
|
1220
1221
|
async generatePdf() {
|
|
1221
1222
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1222
1223
|
try {
|
|
1223
|
-
const { default: s } = await import("./pdf-
|
|
1224
|
+
const { default: s } = await import("./pdf-ML4_Cikm.js");
|
|
1224
1225
|
await s({
|
|
1225
1226
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1226
1227
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1234,7 +1235,7 @@ const ct = ne(), ot = {
|
|
|
1234
1235
|
}, 100);
|
|
1235
1236
|
},
|
|
1236
1237
|
generateCsv(s = null) {
|
|
1237
|
-
const n = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]],
|
|
1238
|
+
const n = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], h = ["", ...this.table.head.map((a) => a.label)], f = this.table.body, l = n.concat([h]).concat(f), e = this.createCsvContent(l);
|
|
1238
1239
|
s ? s(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1239
1240
|
},
|
|
1240
1241
|
showSpinnerImage() {
|
|
@@ -1243,7 +1244,7 @@ const ct = ne(), ot = {
|
|
|
1243
1244
|
async generateImage() {
|
|
1244
1245
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1245
1246
|
try {
|
|
1246
|
-
const { default: s } = await import("./img-
|
|
1247
|
+
const { default: s } = await import("./img-K5aVLnAA.js");
|
|
1247
1248
|
await s({
|
|
1248
1249
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1249
1250
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1321,13 +1322,13 @@ const ct = ne(), ot = {
|
|
|
1321
1322
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1322
1323
|
"data-dom-to-png-ignore": ""
|
|
1323
1324
|
}, qs = ["innerHTML"];
|
|
1324
|
-
function Us(s, n,
|
|
1325
|
-
const a = X("PenAndPaper"),
|
|
1325
|
+
function Us(s, n, h, f, l, e) {
|
|
1326
|
+
const a = X("PenAndPaper"), A = X("Title"), M = X("UserOptions"), w = X("PackageVersion"), N = X("Shape"), F = X("Skeleton"), v = X("Slicer"), m = X("Tooltip"), L = X("BaseIcon"), b = X("TableSparkline"), p = X("DataTable"), B = X("Accordion");
|
|
1326
1327
|
return i(), r("div", {
|
|
1327
1328
|
id: `vue-ui-xy_${l.uniqueId}`,
|
|
1328
1329
|
class: j(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1329
1330
|
ref: "chart",
|
|
1330
|
-
style:
|
|
1331
|
+
style: _(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`),
|
|
1331
1332
|
onMouseenter: n[7] || (n[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1332
1333
|
onMouseleave: n[8] || (n[8] = () => e.setUserOptionsVisibility(!1))
|
|
1333
1334
|
}, [
|
|
@@ -1338,15 +1339,15 @@ function Us(s, n, u, f, l, e) {
|
|
|
1338
1339
|
color: e.FINAL_CONFIG.chart.color,
|
|
1339
1340
|
active: l.isAnnotator,
|
|
1340
1341
|
onClose: e.toggleAnnotator
|
|
1341
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) :
|
|
1342
|
-
e.hasOptionsNoTitle ? (i(), r("div", ut, null, 512)) :
|
|
1342
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : u("", !0),
|
|
1343
|
+
e.hasOptionsNoTitle ? (i(), r("div", ut, null, 512)) : u("", !0),
|
|
1343
1344
|
e.FINAL_CONFIG.chart.title.show ? (i(), r("div", {
|
|
1344
1345
|
key: 2,
|
|
1345
1346
|
ref: "chartTitle",
|
|
1346
1347
|
class: "vue-ui-xy-title",
|
|
1347
|
-
style:
|
|
1348
|
+
style: _(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1348
1349
|
}, [
|
|
1349
|
-
(i(), U(
|
|
1350
|
+
(i(), U(A, {
|
|
1350
1351
|
key: `title_${l.titleStep}`,
|
|
1351
1352
|
config: {
|
|
1352
1353
|
title: {
|
|
@@ -1359,8 +1360,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1359
1360
|
}
|
|
1360
1361
|
}
|
|
1361
1362
|
}, null, 8, ["config"]))
|
|
1362
|
-
], 4)) :
|
|
1363
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (i(), U(
|
|
1363
|
+
], 4)) : u("", !0),
|
|
1364
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (i(), U(M, {
|
|
1364
1365
|
ref: "defails",
|
|
1365
1366
|
key: `user_options_${l.step}`,
|
|
1366
1367
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1374,7 +1375,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1374
1375
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1375
1376
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1376
1377
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1377
|
-
hasStack:
|
|
1378
|
+
hasStack: h.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1378
1379
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1379
1380
|
isStacked: l.mutableConfig.isStacked,
|
|
1380
1381
|
isFullscreen: l.isFullscreen,
|
|
@@ -1394,7 +1395,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1394
1395
|
onToggleStack: e.toggleStack,
|
|
1395
1396
|
onToggleTooltip: e.toggleTooltip,
|
|
1396
1397
|
onToggleAnnotator: e.toggleAnnotator,
|
|
1397
|
-
style:
|
|
1398
|
+
style: _({
|
|
1398
1399
|
visibility: l.keepUserOptionState ? l.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1399
1400
|
})
|
|
1400
1401
|
}, et({ _: 2 }, [
|
|
@@ -1468,7 +1469,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1468
1469
|
]),
|
|
1469
1470
|
key: "9"
|
|
1470
1471
|
} : void 0
|
|
1471
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) :
|
|
1472
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : u("", !0),
|
|
1472
1473
|
e.isDataset ? (i(), r("svg", {
|
|
1473
1474
|
key: 4,
|
|
1474
1475
|
ref: "svgRef",
|
|
@@ -1476,7 +1477,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1476
1477
|
class: j([{ "vue-data-ui-fullscreen--on": l.isFullscreen, "vue-data-ui-fulscreen--off": !l.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1477
1478
|
width: "100%",
|
|
1478
1479
|
viewBox: l.viewBox,
|
|
1479
|
-
style:
|
|
1480
|
+
style: _(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
|
|
1480
1481
|
"aria-label": e.chartAriaLabel,
|
|
1481
1482
|
role: "img",
|
|
1482
1483
|
"aria-live": "polite",
|
|
@@ -1495,7 +1496,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1495
1496
|
}
|
|
1496
1497
|
}, [
|
|
1497
1498
|
G(s.$slots, "chart-background", {}, void 0, !0)
|
|
1498
|
-
], 8, ft)) :
|
|
1499
|
+
], 8, ft)) : u("", !0),
|
|
1499
1500
|
e.maxSeries > 0 ? (i(), r("g", It, [
|
|
1500
1501
|
I("g", xt, [
|
|
1501
1502
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (i(), r("line", {
|
|
@@ -1508,7 +1509,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1508
1509
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1509
1510
|
"stroke-linecap": "round",
|
|
1510
1511
|
style: { animation: "none !important" }
|
|
1511
|
-
}, null, 8, Nt)) :
|
|
1512
|
+
}, null, 8, Nt)) : u("", !0),
|
|
1512
1513
|
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (i(!0), r(d, { key: 2 }, x(e.allScales, (t) => (i(), r("g", null, [
|
|
1513
1514
|
t.id === l.selectedScale && t.yLabels.length ? (i(!0), r(d, { key: 0 }, x(t.yLabels, (o) => (i(), r("line", {
|
|
1514
1515
|
x1: e.drawingArea.left + e.xPadding,
|
|
@@ -1528,8 +1529,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1528
1529
|
"stroke-width": 0.5,
|
|
1529
1530
|
"stroke-linecap": "round",
|
|
1530
1531
|
style: { animation: "none !important" }
|
|
1531
|
-
}, null, 8, yt))), 256)) :
|
|
1532
|
-
]))), 256)) :
|
|
1532
|
+
}, null, 8, yt))), 256)) : u("", !0)
|
|
1533
|
+
]))), 256)) : u("", !0) : (i(), r(d, { key: 1 }, [
|
|
1533
1534
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (i(), r("line", {
|
|
1534
1535
|
key: 0,
|
|
1535
1536
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1540,7 +1541,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1540
1541
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1541
1542
|
"stroke-linecap": "round",
|
|
1542
1543
|
style: { animation: "none !important" }
|
|
1543
|
-
}, null, 8, mt)) :
|
|
1544
|
+
}, null, 8, mt)) : u("", !0),
|
|
1544
1545
|
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (i(), r("g", bt, [
|
|
1545
1546
|
(i(!0), r(d, null, x(e.yLabels, (t) => (i(), r("line", {
|
|
1546
1547
|
x1: e.drawingArea.left + e.xPadding,
|
|
@@ -1552,7 +1553,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1552
1553
|
"stroke-linecap": "round",
|
|
1553
1554
|
style: { animation: "none !important" }
|
|
1554
1555
|
}, null, 8, Ft))), 256))
|
|
1555
|
-
])) :
|
|
1556
|
+
])) : u("", !0)
|
|
1556
1557
|
], 64)),
|
|
1557
1558
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (i(), r("g", At, [
|
|
1558
1559
|
(i(!0), r(d, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, o) => (i(), r("line", {
|
|
@@ -1565,7 +1566,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1565
1566
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1566
1567
|
style: { animation: "none !important" }
|
|
1567
1568
|
}, null, 8, Lt))), 128))
|
|
1568
|
-
])) :
|
|
1569
|
+
])) : u("", !0),
|
|
1569
1570
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(), r("g", Ct, [
|
|
1570
1571
|
(i(!0), r(d, null, x(e.timeLabels, (t, o) => (i(), r("g", {
|
|
1571
1572
|
key: `time_label_${o}`
|
|
@@ -1581,10 +1582,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
1581
1582
|
"stroke-width": 1,
|
|
1582
1583
|
"stroke-linecap": "round",
|
|
1583
1584
|
style: { animation: "none !important" }
|
|
1584
|
-
}, null, 8, St)) :
|
|
1585
|
-
], 64)) :
|
|
1585
|
+
}, null, 8, St)) : u("", !0)
|
|
1586
|
+
], 64)) : u("", !0)
|
|
1586
1587
|
]))), 128))
|
|
1587
|
-
])) :
|
|
1588
|
+
])) : u("", !0)
|
|
1588
1589
|
]),
|
|
1589
1590
|
(i(!0), r(d, null, x(e.barSet, (t, o) => (i(), r("defs", {
|
|
1590
1591
|
key: `def_rect_${o}`
|
|
@@ -1688,7 +1689,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1688
1689
|
t.show ? (i(), r(d, { key: 0 }, [
|
|
1689
1690
|
(i(!0), r(d, null, x(t.span, (o, c) => (i(), r("g", null, [
|
|
1690
1691
|
I("rect", {
|
|
1691
|
-
style:
|
|
1692
|
+
style: _({
|
|
1692
1693
|
transition: "none",
|
|
1693
1694
|
opacity: t.from + c >= l.slicer.start && t.from + c <= l.slicer.end - 1 ? 1 : 0
|
|
1694
1695
|
}),
|
|
@@ -1704,7 +1705,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1704
1705
|
key: 0,
|
|
1705
1706
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + c - l.slicer.start) - (t.caption.width === "auto" ? 0 : t.caption.width / 2 - e.drawingArea.width / e.maxSeries * t.span / 2),
|
|
1706
1707
|
y: e.drawingArea.top + t.caption.offsetY,
|
|
1707
|
-
style:
|
|
1708
|
+
style: _({
|
|
1708
1709
|
overflow: "visible",
|
|
1709
1710
|
opacity: t.to >= l.slicer.start && t.from < l.slicer.end ? 1 : 0
|
|
1710
1711
|
}),
|
|
@@ -1712,11 +1713,11 @@ function Us(s, n, u, f, l, e) {
|
|
|
1712
1713
|
width: Math.max(0, t.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * t.span : t.caption.width)
|
|
1713
1714
|
}, [
|
|
1714
1715
|
I("div", {
|
|
1715
|
-
style:
|
|
1716
|
+
style: _(`padding:${t.caption.padding}px;text-align:${t.caption.textAlign};font-size:${t.caption.fontSize}px;color:${t.caption.color};font-weight:${t.caption.bold ? "bold" : "normal"}`)
|
|
1716
1717
|
}, R(t.caption.text), 5)
|
|
1717
|
-
], 12, Xt)) :
|
|
1718
|
+
], 12, Xt)) : u("", !0)
|
|
1718
1719
|
]))), 256))
|
|
1719
|
-
], 64)) :
|
|
1720
|
+
], 64)) : u("", !0)
|
|
1720
1721
|
]))), 256)),
|
|
1721
1722
|
I("g", null, [
|
|
1722
1723
|
(i(!0), r(d, null, x(e.maxSeries, (t, o) => (i(), r("g", {
|
|
@@ -1734,7 +1735,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1734
1735
|
e.barSet.length ? (i(!0), r(d, { key: 0 }, x(e.barSet, (t, o) => (i(), r("g", {
|
|
1735
1736
|
key: `serie_bar_${o}`,
|
|
1736
1737
|
class: j(`serie_bar_${o}`),
|
|
1737
|
-
style:
|
|
1738
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1738
1739
|
}, [
|
|
1739
1740
|
(i(!0), r(d, null, x(t.plots, (c, g) => (i(), r("g", {
|
|
1740
1741
|
key: `bar_plot_${o}_${g}`
|
|
@@ -1749,7 +1750,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1749
1750
|
fill: e.FINAL_CONFIG.bar.useGradient ? c.value >= 0 ? `url(#rectGradient_pos_${o}_${l.uniqueId})` : `url(#rectGradient_neg_${o}_${l.uniqueId})` : t.color,
|
|
1750
1751
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1751
1752
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1752
|
-
}, null, 8, Ut)) :
|
|
1753
|
+
}, null, 8, Ut)) : u("", !0),
|
|
1753
1754
|
e.canShowValue(c.value) && s.$slots.pattern ? (i(), r("rect", {
|
|
1754
1755
|
key: 1,
|
|
1755
1756
|
x: e.calcRectX(c),
|
|
@@ -1760,7 +1761,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1760
1761
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`,
|
|
1761
1762
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1762
1763
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1763
|
-
}, null, 8, Zt)) :
|
|
1764
|
+
}, null, 8, Zt)) : u("", !0),
|
|
1764
1765
|
c.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), r("foreignObject", {
|
|
1765
1766
|
key: 2,
|
|
1766
1767
|
style: { overflow: "visible" },
|
|
@@ -1772,7 +1773,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1772
1773
|
G(s.$slots, "plot-comment", {
|
|
1773
1774
|
plot: { ...c, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1774
1775
|
}, void 0, !0)
|
|
1775
|
-
], 8, Jt)) :
|
|
1776
|
+
], 8, Jt)) : u("", !0)
|
|
1776
1777
|
]))), 128)),
|
|
1777
1778
|
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (i(), r("g", Kt, [
|
|
1778
1779
|
I("defs", null, [
|
|
@@ -1800,7 +1801,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1800
1801
|
stroke: t.color,
|
|
1801
1802
|
"stroke-dasharray": 2,
|
|
1802
1803
|
"marker-end": `url(#bar_arrow_${o})`
|
|
1803
|
-
}, null, 8, $t)) :
|
|
1804
|
+
}, null, 8, $t)) : u("", !0),
|
|
1804
1805
|
t.plots.length > 1 ? (i(), r("text", {
|
|
1805
1806
|
key: 1,
|
|
1806
1807
|
"text-anchor": "middle",
|
|
@@ -1812,9 +1813,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
1812
1813
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1813
1814
|
s: "%",
|
|
1814
1815
|
r: 2
|
|
1815
|
-
})), 9, el)) :
|
|
1816
|
-
])) :
|
|
1817
|
-
], 6))), 128)) :
|
|
1816
|
+
})), 9, el)) : u("", !0)
|
|
1817
|
+
])) : u("", !0)
|
|
1818
|
+
], 6))), 128)) : u("", !0),
|
|
1818
1819
|
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (i(), r("line", {
|
|
1819
1820
|
key: 1,
|
|
1820
1821
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1825,7 +1826,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1825
1826
|
y2: e.forceValidValue(e.zero),
|
|
1826
1827
|
"stroke-linecap": "round",
|
|
1827
1828
|
style: { animation: "none !important" }
|
|
1828
|
-
}, null, 8, tl)) :
|
|
1829
|
+
}, null, 8, tl)) : u("", !0),
|
|
1829
1830
|
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (i(), r("g", ll, [
|
|
1830
1831
|
I("line", {
|
|
1831
1832
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1838,7 +1839,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1838
1839
|
"stroke-linecap": "round",
|
|
1839
1840
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1840
1841
|
}, null, 8, sl)
|
|
1841
|
-
])) :
|
|
1842
|
+
])) : u("", !0),
|
|
1842
1843
|
e.FINAL_CONFIG.chart.grid.frame.show ? (i(), r("rect", {
|
|
1843
1844
|
key: 3,
|
|
1844
1845
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
@@ -1852,7 +1853,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1852
1853
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1853
1854
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1854
1855
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1855
|
-
}, null, 8, al)) :
|
|
1856
|
+
}, null, 8, al)) : u("", !0),
|
|
1856
1857
|
e.FINAL_CONFIG.chart.grid.labels.show ? (i(), r("g", il, [
|
|
1857
1858
|
l.mutableConfig.useIndividualScale ? (i(), r(d, { key: 0 }, [
|
|
1858
1859
|
(i(!0), r(d, null, x(e.allScales, (t) => (i(), r("g", null, [
|
|
@@ -1864,11 +1865,11 @@ function Us(s, n, u, f, l, e) {
|
|
|
1864
1865
|
stroke: t.color,
|
|
1865
1866
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1866
1867
|
"stroke-linecap": "round",
|
|
1867
|
-
style:
|
|
1868
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1868
1869
|
}, null, 12, rl)
|
|
1869
1870
|
]))), 256)),
|
|
1870
1871
|
(i(!0), r(d, null, x(e.allScales, (t) => (i(), r("g", {
|
|
1871
|
-
style:
|
|
1872
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1872
1873
|
}, [
|
|
1873
1874
|
I("text", {
|
|
1874
1875
|
fill: t.color,
|
|
@@ -1887,7 +1888,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1887
1888
|
"stroke-width": 1,
|
|
1888
1889
|
"stroke-linecap": "round",
|
|
1889
1890
|
style: { animation: "none !important" }
|
|
1890
|
-
}, null, 8, cl)) :
|
|
1891
|
+
}, null, 8, cl)) : u("", !0)
|
|
1891
1892
|
], 64))), 256)),
|
|
1892
1893
|
(i(!0), r(d, null, x(t.yLabels, (o, c) => (i(), r("text", {
|
|
1893
1894
|
x: t.x + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX - 5,
|
|
@@ -1920,7 +1921,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1920
1921
|
"stroke-width": "1",
|
|
1921
1922
|
"stroke-linecap": "round",
|
|
1922
1923
|
style: { animation: "none !important" }
|
|
1923
|
-
}, null, 8, hl)) :
|
|
1924
|
+
}, null, 8, hl)) : u("", !0),
|
|
1924
1925
|
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (i(), r("text", {
|
|
1925
1926
|
key: 1,
|
|
1926
1927
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
@@ -1937,13 +1938,13 @@ function Us(s, n, u, f, l, e) {
|
|
|
1937
1938
|
s: t.suffix,
|
|
1938
1939
|
r: 1
|
|
1939
1940
|
})
|
|
1940
|
-
) : ""), 9, ul)) :
|
|
1941
|
+
) : ""), 9, ul)) : u("", !0)
|
|
1941
1942
|
]))), 128))
|
|
1942
|
-
], 512)) :
|
|
1943
|
+
], 512)) : u("", !0),
|
|
1943
1944
|
(i(!0), r(d, null, x(e.plotSet, (t, o) => (i(), r("g", {
|
|
1944
1945
|
key: `serie_plot_${o}`,
|
|
1945
1946
|
class: j(`serie_plot_${o}`),
|
|
1946
|
-
style:
|
|
1947
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1947
1948
|
}, [
|
|
1948
1949
|
(i(!0), r(d, null, x(t.plots, (c, g) => (i(), r("g", {
|
|
1949
1950
|
key: `circle_plot_${o}_${g}`
|
|
@@ -1956,7 +1957,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1956
1957
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
|
|
1957
1958
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
1958
1959
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1959
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
1960
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
1960
1961
|
c.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), r("foreignObject", {
|
|
1961
1962
|
key: 1,
|
|
1962
1963
|
style: { overflow: "visible" },
|
|
@@ -1970,7 +1971,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1970
1971
|
plot: { ...c, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1971
1972
|
}, void 0, !0)
|
|
1972
1973
|
])
|
|
1973
|
-
], 8, dl)) :
|
|
1974
|
+
], 8, dl)) : u("", !0)
|
|
1974
1975
|
]))), 128)),
|
|
1975
1976
|
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (i(), r("g", fl, [
|
|
1976
1977
|
I("defs", null, [
|
|
@@ -1998,7 +1999,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1998
1999
|
stroke: t.color,
|
|
1999
2000
|
"stroke-dasharray": 2,
|
|
2000
2001
|
"marker-end": `url(#plot_arrow_${o})`
|
|
2001
|
-
}, null, 8, Nl)) :
|
|
2002
|
+
}, null, 8, Nl)) : u("", !0),
|
|
2002
2003
|
t.plots.length > 1 ? (i(), r("text", {
|
|
2003
2004
|
key: 1,
|
|
2004
2005
|
"text-anchor": "middle",
|
|
@@ -2010,13 +2011,13 @@ function Us(s, n, u, f, l, e) {
|
|
|
2010
2011
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
2011
2012
|
s: "%",
|
|
2012
2013
|
r: 2
|
|
2013
|
-
})), 9, ml)) :
|
|
2014
|
-
])) :
|
|
2014
|
+
})), 9, ml)) : u("", !0)
|
|
2015
|
+
])) : u("", !0)
|
|
2015
2016
|
], 6))), 128)),
|
|
2016
2017
|
(i(!0), r(d, null, x(e.lineSet, (t, o) => (i(), r("g", {
|
|
2017
2018
|
key: `serie_line_${o}`,
|
|
2018
2019
|
class: j(`serie_line_${o}`),
|
|
2019
|
-
style:
|
|
2020
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2020
2021
|
}, [
|
|
2021
2022
|
t.smooth && t.plots.length > 1 && t.curve ? (i(), r("path", {
|
|
2022
2023
|
key: 0,
|
|
@@ -2034,17 +2035,17 @@ function Us(s, n, u, f, l, e) {
|
|
|
2034
2035
|
fill: "none",
|
|
2035
2036
|
"stroke-linecap": "round",
|
|
2036
2037
|
"stroke-linejoin": "round"
|
|
2037
|
-
}, null, 8, Fl)) :
|
|
2038
|
+
}, null, 8, Fl)) : u("", !0)
|
|
2038
2039
|
], 6))), 128)),
|
|
2039
2040
|
s.$slots.pattern ? (i(), r("defs", _l, [
|
|
2040
2041
|
(i(!0), r(d, null, x(e.safeDataset, (t, o) => G(s.$slots, "pattern", re({
|
|
2041
2042
|
key: `serie_pattern_slot_${o}`
|
|
2042
2043
|
}, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${o}` }), void 0, !0)), 128))
|
|
2043
|
-
])) :
|
|
2044
|
+
])) : u("", !0),
|
|
2044
2045
|
(i(!0), r(d, null, x(e.lineSet, (t, o) => (i(), r("g", {
|
|
2045
2046
|
key: `serie_line_${o}`,
|
|
2046
2047
|
class: j(`serie_line_${o}`),
|
|
2047
|
-
style:
|
|
2048
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2048
2049
|
}, [
|
|
2049
2050
|
t.useArea && t.plots.length > 1 ? (i(), r("g", yl, [
|
|
2050
2051
|
t.smooth ? (i(!0), r(d, { key: 0 }, x(t.curveAreas, (c, g) => (i(), r(d, { key: g }, [
|
|
@@ -2056,7 +2057,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2056
2057
|
key: 0,
|
|
2057
2058
|
d: c,
|
|
2058
2059
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2059
|
-
}, null, 8, Ll)) :
|
|
2060
|
+
}, null, 8, Ll)) : u("", !0)
|
|
2060
2061
|
], 64))), 128)) : (i(!0), r(d, { key: 1 }, x(t.area.split(";"), (c, g) => (i(), r(d, { key: g }, [
|
|
2061
2062
|
I("path", {
|
|
2062
2063
|
d: `M${c}Z`,
|
|
@@ -2066,9 +2067,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
2066
2067
|
key: 0,
|
|
2067
2068
|
d: `M${c}Z`,
|
|
2068
2069
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2069
|
-
}, null, 8, Sl)) :
|
|
2070
|
+
}, null, 8, Sl)) : u("", !0)
|
|
2070
2071
|
], 64))), 128))
|
|
2071
|
-
])) :
|
|
2072
|
+
])) : u("", !0),
|
|
2072
2073
|
t.smooth && t.plots.length > 1 && t.curve ? (i(), r("path", {
|
|
2073
2074
|
key: 1,
|
|
2074
2075
|
d: `M${t.curve}`,
|
|
@@ -2086,7 +2087,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2086
2087
|
fill: "none",
|
|
2087
2088
|
"stroke-linecap": "round",
|
|
2088
2089
|
"stroke-linejoin": "round"
|
|
2089
|
-
}, null, 8, wl)) :
|
|
2090
|
+
}, null, 8, wl)) : u("", !0),
|
|
2090
2091
|
(i(!0), r(d, null, x(t.plots, (c, g) => (i(), r(d, {
|
|
2091
2092
|
key: `circle_line_${o}_${g}`
|
|
2092
2093
|
}, [
|
|
@@ -2098,7 +2099,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2098
2099
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
|
|
2099
2100
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
2100
2101
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
2101
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
2102
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
2102
2103
|
c.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), r("foreignObject", {
|
|
2103
2104
|
key: 1,
|
|
2104
2105
|
style: { overflow: "visible" },
|
|
@@ -2112,7 +2113,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2112
2113
|
plot: { ...c, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
2113
2114
|
}, void 0, !0)
|
|
2114
2115
|
])
|
|
2115
|
-
], 8, Ol)) :
|
|
2116
|
+
], 8, Ol)) : u("", !0)
|
|
2116
2117
|
], 64))), 128)),
|
|
2117
2118
|
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (i(), r("g", vl, [
|
|
2118
2119
|
I("defs", null, [
|
|
@@ -2140,7 +2141,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2140
2141
|
stroke: t.color,
|
|
2141
2142
|
"stroke-dasharray": 2,
|
|
2142
2143
|
"marker-end": `url(#line_arrow_${o})`
|
|
2143
|
-
}, null, 8, zl)) :
|
|
2144
|
+
}, null, 8, zl)) : u("", !0),
|
|
2144
2145
|
t.plots.length > 1 ? (i(), r("text", {
|
|
2145
2146
|
key: 1,
|
|
2146
2147
|
"text-anchor": "middle",
|
|
@@ -2152,8 +2153,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2152
2153
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
2153
2154
|
s: "%",
|
|
2154
2155
|
r: 2
|
|
2155
|
-
})), 9, Tl)) :
|
|
2156
|
-
])) :
|
|
2156
|
+
})), 9, Tl)) : u("", !0)
|
|
2157
|
+
])) : u("", !0)
|
|
2157
2158
|
], 6))), 128)),
|
|
2158
2159
|
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (i(), r("g", Vl, [
|
|
2159
2160
|
(i(!0), r(d, null, x(e.barSet, (t, o) => (i(), r(d, {
|
|
@@ -2169,7 +2170,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2169
2170
|
"text-anchor": "middle",
|
|
2170
2171
|
"font-size": l.fontSizes.plotLabels,
|
|
2171
2172
|
fill: e.FINAL_CONFIG.bar.labels.color,
|
|
2172
|
-
style:
|
|
2173
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2173
2174
|
}, R(e.canShowValue(c.value) ? e.applyDataLabel(
|
|
2174
2175
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
2175
2176
|
c.value,
|
|
@@ -2183,7 +2184,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2183
2184
|
datapoint: c,
|
|
2184
2185
|
serie: t
|
|
2185
2186
|
}
|
|
2186
|
-
) : ""), 13, Pl)) :
|
|
2187
|
+
) : ""), 13, Pl)) : u("", !0),
|
|
2187
2188
|
c && e.FINAL_CONFIG.bar.serieName.show ? (i(), r("text", {
|
|
2188
2189
|
key: 1,
|
|
2189
2190
|
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? c.x + e.slot.line / 2 : c.x + e.calcRectWidth() * 1.1,
|
|
@@ -2192,11 +2193,11 @@ function Us(s, n, u, f, l, e) {
|
|
|
2192
2193
|
"font-size": l.fontSizes.plotLabels,
|
|
2193
2194
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2194
2195
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2195
|
-
style:
|
|
2196
|
-
}, R(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) :
|
|
2196
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2197
|
+
}, R(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) : u("", !0)
|
|
2197
2198
|
], 64))), 128))
|
|
2198
2199
|
], 64))), 128))
|
|
2199
|
-
])) :
|
|
2200
|
+
])) : u("", !0),
|
|
2200
2201
|
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (i(), r("g", Bl, [
|
|
2201
2202
|
(i(!0), r(d, null, x(e.plotSet, (t, o) => (i(), r(d, {
|
|
2202
2203
|
key: `xLabel_plot_${o}`
|
|
@@ -2211,7 +2212,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2211
2212
|
"text-anchor": "middle",
|
|
2212
2213
|
"font-size": l.fontSizes.plotLabels,
|
|
2213
2214
|
fill: e.FINAL_CONFIG.plot.labels.color,
|
|
2214
|
-
style:
|
|
2215
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2215
2216
|
}, R(e.canShowValue(c.value) ? e.applyDataLabel(
|
|
2216
2217
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
2217
2218
|
c.value,
|
|
@@ -2225,7 +2226,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2225
2226
|
datapoint: c,
|
|
2226
2227
|
serie: t
|
|
2227
2228
|
}
|
|
2228
|
-
) : ""), 13, Hl)) :
|
|
2229
|
+
) : ""), 13, Hl)) : u("", !0)
|
|
2229
2230
|
], 64))), 128))
|
|
2230
2231
|
], 64))), 128))
|
|
2231
2232
|
])) : (i(), r("g", Dl, [
|
|
@@ -2247,7 +2248,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2247
2248
|
"stroke-linecap": "round",
|
|
2248
2249
|
"stroke-dasharray": "2",
|
|
2249
2250
|
stroke: t.color
|
|
2250
|
-
}, null, 8, ql)) :
|
|
2251
|
+
}, null, 8, ql)) : u("", !0)
|
|
2251
2252
|
], 64)) : (i(), r(d, { key: 0 }, [
|
|
2252
2253
|
c && g === 0 && t.useTag && t.useTag === "start" ? (i(), r("foreignObject", {
|
|
2253
2254
|
key: 0,
|
|
@@ -2255,10 +2256,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
2255
2256
|
y: c.y - 20,
|
|
2256
2257
|
height: 24,
|
|
2257
2258
|
width: "150",
|
|
2258
|
-
style:
|
|
2259
|
+
style: _(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2259
2260
|
}, [
|
|
2260
2261
|
I("div", {
|
|
2261
|
-
style:
|
|
2262
|
+
style: _(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2262
2263
|
innerHTML: e.applyDataLabel(
|
|
2263
2264
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2264
2265
|
c.value,
|
|
@@ -2270,17 +2271,17 @@ function Us(s, n, u, f, l, e) {
|
|
|
2270
2271
|
}
|
|
2271
2272
|
)
|
|
2272
2273
|
}, null, 12, Wl)
|
|
2273
|
-
], 12, El)) :
|
|
2274
|
+
], 12, El)) : u("", !0),
|
|
2274
2275
|
c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (i(), r("foreignObject", {
|
|
2275
2276
|
key: 1,
|
|
2276
2277
|
x: c.x - t.name.length * (l.fontSizes.plotLabels / 2),
|
|
2277
2278
|
y: c.y - 20,
|
|
2278
2279
|
height: 24,
|
|
2279
2280
|
width: "150",
|
|
2280
|
-
style:
|
|
2281
|
+
style: _(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2281
2282
|
}, [
|
|
2282
2283
|
I("div", {
|
|
2283
|
-
style:
|
|
2284
|
+
style: _(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2284
2285
|
innerHTML: e.applyDataLabel(
|
|
2285
2286
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2286
2287
|
c.value,
|
|
@@ -2292,7 +2293,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2292
2293
|
}
|
|
2293
2294
|
)
|
|
2294
2295
|
}, null, 12, Xl)
|
|
2295
|
-
], 12, Yl)) :
|
|
2296
|
+
], 12, Yl)) : u("", !0)
|
|
2296
2297
|
], 64))
|
|
2297
2298
|
], 64))), 128))
|
|
2298
2299
|
], 64))), 128))
|
|
@@ -2311,7 +2312,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2311
2312
|
"text-anchor": "middle",
|
|
2312
2313
|
"font-size": l.fontSizes.plotLabels,
|
|
2313
2314
|
fill: e.FINAL_CONFIG.line.labels.color,
|
|
2314
|
-
style:
|
|
2315
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2315
2316
|
}, R(e.canShowValue(c.value) ? e.applyDataLabel(
|
|
2316
2317
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
2317
2318
|
c.value,
|
|
@@ -2325,7 +2326,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2325
2326
|
datapoint: c,
|
|
2326
2327
|
serie: t
|
|
2327
2328
|
}
|
|
2328
|
-
) : ""), 13, Zl)) :
|
|
2329
|
+
) : ""), 13, Zl)) : u("", !0)
|
|
2329
2330
|
], 64))), 128))
|
|
2330
2331
|
], 64))), 128))
|
|
2331
2332
|
])) : (i(), r("g", Jl, [
|
|
@@ -2347,7 +2348,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2347
2348
|
"stroke-linecap": "round",
|
|
2348
2349
|
"stroke-dasharray": "2",
|
|
2349
2350
|
stroke: t.color
|
|
2350
|
-
}, null, 8, es)) :
|
|
2351
|
+
}, null, 8, es)) : u("", !0)
|
|
2351
2352
|
], 64)) : (i(), r(d, { key: 0 }, [
|
|
2352
2353
|
c && g === 0 && t.useTag && t.useTag === "start" ? (i(), r("foreignObject", {
|
|
2353
2354
|
key: 0,
|
|
@@ -2355,10 +2356,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
2355
2356
|
y: c.y - 20,
|
|
2356
2357
|
height: 24,
|
|
2357
2358
|
width: "150",
|
|
2358
|
-
style:
|
|
2359
|
+
style: _(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2359
2360
|
}, [
|
|
2360
2361
|
I("div", {
|
|
2361
|
-
style:
|
|
2362
|
+
style: _(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2362
2363
|
innerHTML: e.applyDataLabel(
|
|
2363
2364
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2364
2365
|
c.value,
|
|
@@ -2370,17 +2371,17 @@ function Us(s, n, u, f, l, e) {
|
|
|
2370
2371
|
}
|
|
2371
2372
|
)
|
|
2372
2373
|
}, null, 12, Ql)
|
|
2373
|
-
], 12, Kl)) :
|
|
2374
|
+
], 12, Kl)) : u("", !0),
|
|
2374
2375
|
c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (i(), r("foreignObject", {
|
|
2375
2376
|
key: 1,
|
|
2376
2377
|
x: c.x,
|
|
2377
2378
|
y: c.y - 20,
|
|
2378
2379
|
height: 24,
|
|
2379
2380
|
width: "150",
|
|
2380
|
-
style:
|
|
2381
|
+
style: _(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2381
2382
|
}, [
|
|
2382
2383
|
I("div", {
|
|
2383
|
-
style:
|
|
2384
|
+
style: _(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2384
2385
|
innerHTML: e.applyDataLabel(
|
|
2385
2386
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2386
2387
|
c.value,
|
|
@@ -2392,7 +2393,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2392
2393
|
}
|
|
2393
2394
|
)
|
|
2394
2395
|
}, null, 12, $l)
|
|
2395
|
-
], 12, jl)) :
|
|
2396
|
+
], 12, jl)) : u("", !0)
|
|
2396
2397
|
], 64))
|
|
2397
2398
|
], 64))), 128))
|
|
2398
2399
|
], 64))), 128))
|
|
@@ -2418,8 +2419,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2418
2419
|
y: c.y,
|
|
2419
2420
|
maxWords: 2
|
|
2420
2421
|
}),
|
|
2421
|
-
style:
|
|
2422
|
-
}, null, 12, ts)) :
|
|
2422
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2423
|
+
}, null, 12, ts)) : u("", !0),
|
|
2423
2424
|
c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (i(), r("text", {
|
|
2424
2425
|
key: 1,
|
|
2425
2426
|
x: c.x + l.fontSizes.plotLabels,
|
|
@@ -2435,8 +2436,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2435
2436
|
y: c.y,
|
|
2436
2437
|
maxWords: 2
|
|
2437
2438
|
}),
|
|
2438
|
-
style:
|
|
2439
|
-
}, null, 12, ls)) :
|
|
2439
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2440
|
+
}, null, 12, ls)) : u("", !0)
|
|
2440
2441
|
], 64))), 128))
|
|
2441
2442
|
], 64))), 128)),
|
|
2442
2443
|
(i(!0), r(d, null, x(e.plotSet, (t, o) => (i(), r(d, {
|
|
@@ -2460,8 +2461,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2460
2461
|
y: c.y,
|
|
2461
2462
|
maxWords: 2
|
|
2462
2463
|
}),
|
|
2463
|
-
style:
|
|
2464
|
-
}, null, 12, ss)) :
|
|
2464
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2465
|
+
}, null, 12, ss)) : u("", !0),
|
|
2465
2466
|
c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (i(), r("text", {
|
|
2466
2467
|
key: 1,
|
|
2467
2468
|
x: c.x + l.fontSizes.plotLabels,
|
|
@@ -2477,8 +2478,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2477
2478
|
y: c.y,
|
|
2478
2479
|
maxWords: 2
|
|
2479
2480
|
}),
|
|
2480
|
-
style:
|
|
2481
|
-
}, null, 12, as)) :
|
|
2481
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2482
|
+
}, null, 12, as)) : u("", !0)
|
|
2482
2483
|
], 64))), 128))
|
|
2483
2484
|
], 64))), 128)),
|
|
2484
2485
|
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (i(), r(d, { key: 11 }, [
|
|
@@ -2511,7 +2512,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2511
2512
|
onMouseenter: (c) => l.selectedScale = t.groupId,
|
|
2512
2513
|
onMouseleave: n[0] || (n[0] = (c) => l.selectedScale = null)
|
|
2513
2514
|
}, null, 40, cs))), 256))
|
|
2514
|
-
], 64)) :
|
|
2515
|
+
], 64)) : u("", !0),
|
|
2515
2516
|
I("g", null, [
|
|
2516
2517
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (i(), r("text", {
|
|
2517
2518
|
key: 0,
|
|
@@ -2521,7 +2522,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2521
2522
|
transform: `translate(${l.scaleBox.x + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2522
2523
|
"text-anchor": "middle",
|
|
2523
2524
|
style: { transition: "none" }
|
|
2524
|
-
}, R(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, os)) :
|
|
2525
|
+
}, R(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, os)) : u("", !0),
|
|
2525
2526
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (i(), r("text", {
|
|
2526
2527
|
key: 1,
|
|
2527
2528
|
ref: "xAxisLabel",
|
|
@@ -2530,7 +2531,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2530
2531
|
y: l.timeLabelBox.y + l.timeLabelBox.height + l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2531
2532
|
"font-size": l.fontSizes.yAxis,
|
|
2532
2533
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2533
|
-
}, R(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, hs)) :
|
|
2534
|
+
}, R(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, hs)) : u("", !0)
|
|
2534
2535
|
]),
|
|
2535
2536
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(), r("g", us, [
|
|
2536
2537
|
s.$slots["time-label"] ? (i(!0), r(d, { key: 0 }, x(e.timeLabels, (t, o) => G(s.$slots, "time-label", re({
|
|
@@ -2557,7 +2558,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2557
2558
|
"font-size": l.fontSizes.xAxis,
|
|
2558
2559
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2559
2560
|
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2560
|
-
style:
|
|
2561
|
+
style: _({
|
|
2561
2562
|
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2562
2563
|
}),
|
|
2563
2564
|
innerHTML: e.createTSpansFromLineBreaksOnX({
|
|
@@ -2574,14 +2575,14 @@ function Us(s, n, u, f, l, e) {
|
|
|
2574
2575
|
"font-size": l.fontSizes.xAxis,
|
|
2575
2576
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2576
2577
|
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2577
|
-
style:
|
|
2578
|
+
style: _({
|
|
2578
2579
|
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2579
2580
|
}),
|
|
2580
2581
|
onClick: () => e.selectTimeLabel(t, o)
|
|
2581
2582
|
}, R(t.text || ""), 13, ds))
|
|
2582
|
-
], 64)) :
|
|
2583
|
+
], 64)) : u("", !0)
|
|
2583
2584
|
]))), 128))
|
|
2584
|
-
], 512)) :
|
|
2585
|
+
], 512)) : u("", !0),
|
|
2585
2586
|
e.annotationsY.length && !l.mutableConfig.isStacked ? (i(), r("g", fs, [
|
|
2586
2587
|
(i(!0), r(d, null, x(e.annotationsY, (t) => (i(), r("g", {
|
|
2587
2588
|
key: t.uid
|
|
@@ -2597,7 +2598,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2597
2598
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2598
2599
|
"stroke-linecap": "round",
|
|
2599
2600
|
style: { animation: "none !important" }
|
|
2600
|
-
}, null, 8, Is)) :
|
|
2601
|
+
}, null, 8, Is)) : u("", !0),
|
|
2601
2602
|
t.yBottom && t.show ? (i(), r("line", {
|
|
2602
2603
|
key: 1,
|
|
2603
2604
|
x1: t.x1,
|
|
@@ -2609,7 +2610,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2609
2610
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2610
2611
|
"stroke-linecap": "round",
|
|
2611
2612
|
style: { animation: "none !important" }
|
|
2612
|
-
}, null, 8, xs)) :
|
|
2613
|
+
}, null, 8, xs)) : u("", !0),
|
|
2613
2614
|
t.hasArea && t.show ? (i(), r("rect", {
|
|
2614
2615
|
key: 2,
|
|
2615
2616
|
y: Math.min(t.yTop, t.yBottom),
|
|
@@ -2618,11 +2619,11 @@ function Us(s, n, u, f, l, e) {
|
|
|
2618
2619
|
height: e.checkNaN(t.areaHeight, 0),
|
|
2619
2620
|
fill: e.setOpacity(t.config.area.fill, t.config.area.opacity),
|
|
2620
2621
|
style: { animation: "none !important" }
|
|
2621
|
-
}, null, 8, Ns)) :
|
|
2622
|
+
}, null, 8, Ns)) : u("", !0),
|
|
2622
2623
|
t.config.label.text && t.show ? (i(), r("rect", re({
|
|
2623
2624
|
key: 3,
|
|
2624
2625
|
class: "vue-ui-xy-annotation-label-box"
|
|
2625
|
-
}, { ref_for: !0 }, t._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) :
|
|
2626
|
+
}, { ref_for: !0 }, t._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : u("", !0),
|
|
2626
2627
|
t.config.label.text && t.show ? (i(), r("text", {
|
|
2627
2628
|
key: 4,
|
|
2628
2629
|
id: t.id,
|
|
@@ -2632,9 +2633,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
2632
2633
|
"font-size": t.config.label.fontSize,
|
|
2633
2634
|
fill: t.config.label.color,
|
|
2634
2635
|
"text-anchor": t.config.label.textAnchor
|
|
2635
|
-
}, R(t.config.label.text), 9, ms)) :
|
|
2636
|
+
}, R(t.config.label.text), 9, ms)) : u("", !0)
|
|
2636
2637
|
]))), 128))
|
|
2637
|
-
])) :
|
|
2638
|
+
])) : u("", !0),
|
|
2638
2639
|
I("g", null, [
|
|
2639
2640
|
(i(!0), r(d, null, x(e.maxSeries, (t, o) => (i(), r("rect", {
|
|
2640
2641
|
key: `tooltip_trap_${o}`,
|
|
@@ -2658,7 +2659,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2658
2659
|
}, [
|
|
2659
2660
|
I("div", {
|
|
2660
2661
|
class: "vue-ui-xy-time-tag",
|
|
2661
|
-
style:
|
|
2662
|
+
style: _(`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`)
|
|
2662
2663
|
}, R(e.timeLabels[(l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)].text || (l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)), 5)
|
|
2663
2664
|
], 8, _s)),
|
|
2664
2665
|
I("circle", {
|
|
@@ -2667,14 +2668,14 @@ function Us(s, n, u, f, l, e) {
|
|
|
2667
2668
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2668
2669
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2669
2670
|
}, null, 8, ys)
|
|
2670
|
-
])) :
|
|
2671
|
-
])) :
|
|
2671
|
+
])) : u("", !0)
|
|
2672
|
+
])) : u("", !0),
|
|
2672
2673
|
G(s.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2673
2674
|
], 512)
|
|
2674
|
-
], 14, dt)) :
|
|
2675
|
+
], 14, dt)) : u("", !0),
|
|
2675
2676
|
s.$slots.watermark ? (i(), r("div", As, [
|
|
2676
2677
|
G(s.$slots, "watermark", $(ee({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
|
|
2677
|
-
])) :
|
|
2678
|
+
])) : u("", !0),
|
|
2678
2679
|
(i(!0), r(d, null, x(e.lineSet, (t, o) => (i(), r(d, {
|
|
2679
2680
|
key: `tag_line_${o}`
|
|
2680
2681
|
}, [
|
|
@@ -2687,7 +2688,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2687
2688
|
ref: (z) => e.setTagRef(o, g, z, "right", "line"),
|
|
2688
2689
|
class: "vue-ui-xy-tag",
|
|
2689
2690
|
"data-tag": "right",
|
|
2690
|
-
style:
|
|
2691
|
+
style: _({
|
|
2691
2692
|
position: "fixed",
|
|
2692
2693
|
top: e.placeXYTag({
|
|
2693
2694
|
svgElement: l.svgRef,
|
|
@@ -2732,14 +2733,14 @@ function Us(s, n, u, f, l, e) {
|
|
|
2732
2733
|
}
|
|
2733
2734
|
)
|
|
2734
2735
|
}, null, 8, Ss)
|
|
2735
|
-
], 4)) :
|
|
2736
|
+
], 4)) : u("", !0),
|
|
2736
2737
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (i(), r("div", {
|
|
2737
2738
|
key: 1,
|
|
2738
2739
|
ref_for: !0,
|
|
2739
2740
|
ref: (z) => e.setTagRef(o, g, z, "left", "line"),
|
|
2740
2741
|
class: "vue-ui-xy-tag",
|
|
2741
2742
|
"data-tag": "left",
|
|
2742
|
-
style:
|
|
2743
|
+
style: _({
|
|
2743
2744
|
position: "fixed",
|
|
2744
2745
|
top: e.placeXYTag({
|
|
2745
2746
|
svgElement: l.svgRef,
|
|
@@ -2784,7 +2785,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2784
2785
|
}
|
|
2785
2786
|
)
|
|
2786
2787
|
}, null, 8, Os)
|
|
2787
|
-
], 4)) :
|
|
2788
|
+
], 4)) : u("", !0)
|
|
2788
2789
|
], 64))), 128))
|
|
2789
2790
|
], 64))), 128)),
|
|
2790
2791
|
(i(!0), r(d, null, x(e.plotSet, (t, o) => (i(), r(d, {
|
|
@@ -2799,7 +2800,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2799
2800
|
ref: (z) => e.setTagRef(o, g, z, "right", "plot"),
|
|
2800
2801
|
class: "vue-ui-xy-tag",
|
|
2801
2802
|
"data-tag": "right",
|
|
2802
|
-
style:
|
|
2803
|
+
style: _({
|
|
2803
2804
|
position: "fixed",
|
|
2804
2805
|
top: e.placeXYTag({
|
|
2805
2806
|
svgElement: l.svgRef,
|
|
@@ -2844,14 +2845,14 @@ function Us(s, n, u, f, l, e) {
|
|
|
2844
2845
|
}
|
|
2845
2846
|
)
|
|
2846
2847
|
}, null, 8, ps)
|
|
2847
|
-
], 4)) :
|
|
2848
|
+
], 4)) : u("", !0),
|
|
2848
2849
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (i(), r("div", {
|
|
2849
2850
|
key: 1,
|
|
2850
2851
|
ref_for: !0,
|
|
2851
2852
|
ref: (z) => e.setTagRef(o, g, z, "left", "plot"),
|
|
2852
2853
|
class: "vue-ui-xy-tag",
|
|
2853
2854
|
"data-tag": "left",
|
|
2854
|
-
style:
|
|
2855
|
+
style: _({
|
|
2855
2856
|
position: "fixed",
|
|
2856
2857
|
top: e.placeXYTag({
|
|
2857
2858
|
svgElement: l.svgRef,
|
|
@@ -2896,10 +2897,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
2896
2897
|
}
|
|
2897
2898
|
)
|
|
2898
2899
|
}, null, 8, Ts)
|
|
2899
|
-
], 4)) :
|
|
2900
|
+
], 4)) : u("", !0)
|
|
2900
2901
|
], 64))), 128))
|
|
2901
2902
|
], 64))), 128)),
|
|
2902
|
-
e.isDataset ?
|
|
2903
|
+
e.isDataset ? u("", !0) : (i(), U(F, {
|
|
2903
2904
|
key: 6,
|
|
2904
2905
|
config: {
|
|
2905
2906
|
type: "line",
|
|
@@ -2917,7 +2918,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2917
2918
|
}
|
|
2918
2919
|
}
|
|
2919
2920
|
}, null, 8, ["config"])),
|
|
2920
|
-
e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (i(), U(
|
|
2921
|
+
e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (i(), U(v, {
|
|
2921
2922
|
ref: "chartSlicer",
|
|
2922
2923
|
key: `slicer_${l.slicerStep}`,
|
|
2923
2924
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2947,7 +2948,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2947
2948
|
end: l.slicer.end,
|
|
2948
2949
|
"onUpdate:end": n[3] || (n[3] = (t) => l.slicer.end = t),
|
|
2949
2950
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2950
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...
|
|
2951
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...h.dataset.map((t) => e.largestTriangleThreeBucketsArray({ data: t.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2951
2952
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2952
2953
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2953
2954
|
onReset: e.refreshSlicer,
|
|
@@ -2957,12 +2958,12 @@ function Us(s, n, u, f, l, e) {
|
|
|
2957
2958
|
G(s.$slots, "reset-action", $(ee({ reset: t })), void 0, !0)
|
|
2958
2959
|
]),
|
|
2959
2960
|
_: 3
|
|
2960
|
-
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) :
|
|
2961
|
+
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : u("", !0),
|
|
2961
2962
|
e.FINAL_CONFIG.chart.legend.show ? (i(), r("div", {
|
|
2962
2963
|
key: 8,
|
|
2963
2964
|
ref: "chartLegend",
|
|
2964
2965
|
class: "vue-ui-xy-legend",
|
|
2965
|
-
style:
|
|
2966
|
+
style: _(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2966
2967
|
}, [
|
|
2967
2968
|
(i(!0), r(d, null, x(e.absoluteDataset, (t, o) => (i(), r("div", {
|
|
2968
2969
|
key: `div_legend_item_${o}`,
|
|
@@ -2998,7 +2999,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2998
2999
|
width: "40",
|
|
2999
3000
|
stroke: "none",
|
|
3000
3001
|
fill: t.color
|
|
3001
|
-
}, null, 8, Hs)) :
|
|
3002
|
+
}, null, 8, Hs)) : u("", !0),
|
|
3002
3003
|
l.icons[t.type] === "bar" ? (i(), r("rect", {
|
|
3003
3004
|
key: 1,
|
|
3004
3005
|
x: "0",
|
|
@@ -3008,7 +3009,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
3008
3009
|
width: "40",
|
|
3009
3010
|
stroke: "none",
|
|
3010
3011
|
fill: s.$slots.pattern ? `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})` : t.color
|
|
3011
|
-
}, null, 8, Ds)) :
|
|
3012
|
+
}, null, 8, Ds)) : u("", !0)
|
|
3012
3013
|
])) : (i(), r("svg", Es, [
|
|
3013
3014
|
le(N, {
|
|
3014
3015
|
plot: { x: 6, y: 6 },
|
|
@@ -3018,7 +3019,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
3018
3019
|
}, null, 8, ["color", "shape"])
|
|
3019
3020
|
])),
|
|
3020
3021
|
I("span", {
|
|
3021
|
-
style:
|
|
3022
|
+
style: _(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
3022
3023
|
}, R(t.name), 5)
|
|
3023
3024
|
], 10, Vs))), 128))
|
|
3024
3025
|
], 4)) : (i(), r("div", Ws, [
|
|
@@ -3026,7 +3027,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
3026
3027
|
], 512)),
|
|
3027
3028
|
s.$slots.source ? (i(), r("div", Ys, [
|
|
3028
3029
|
G(s.$slots, "source", {}, void 0, !0)
|
|
3029
|
-
], 512)) :
|
|
3030
|
+
], 512)) : u("", !0),
|
|
3030
3031
|
le(m, {
|
|
3031
3032
|
show: l.mutableConfig.showTooltip && l.isTooltip,
|
|
3032
3033
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
@@ -3069,7 +3070,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
3069
3070
|
}, {
|
|
3070
3071
|
content: D(() => [
|
|
3071
3072
|
I("div", {
|
|
3072
|
-
style:
|
|
3073
|
+
style: _(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
3073
3074
|
}, [
|
|
3074
3075
|
I("div", Xs, [
|
|
3075
3076
|
tt(I("input", {
|
|
@@ -3093,7 +3094,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
3093
3094
|
key: `sparkline_${l.segregateStep}`,
|
|
3094
3095
|
dataset: e.tableSparklineDataset,
|
|
3095
3096
|
config: e.tableSparklineConfig
|
|
3096
|
-
}, null, 8, ["dataset", "config"])) : (i(), U(
|
|
3097
|
+
}, null, 8, ["dataset", "config"])) : (i(), U(p, {
|
|
3097
3098
|
key: `table_${l.tableStep}`,
|
|
3098
3099
|
colNames: e.dataTable.colNames,
|
|
3099
3100
|
head: e.dataTable.head,
|
|
@@ -3118,10 +3119,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
3118
3119
|
], 4)
|
|
3119
3120
|
]),
|
|
3120
3121
|
_: 1
|
|
3121
|
-
}, 8, ["config"])) :
|
|
3122
|
+
}, 8, ["config"])) : u("", !0)
|
|
3122
3123
|
], 46, ht);
|
|
3123
3124
|
}
|
|
3124
|
-
const sa = /* @__PURE__ */ nt(ot, [["render", Us], ["__scopeId", "data-v-
|
|
3125
|
+
const sa = /* @__PURE__ */ nt(ot, [["render", Us], ["__scopeId", "data-v-ed1b23d1"]]);
|
|
3125
3126
|
export {
|
|
3126
3127
|
sa as default
|
|
3127
3128
|
};
|