vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/{Arrow-HbfibAF0.js → Arrow-kQyQXUUg.js} +1 -1
- package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
- package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-DaR0sIWZ.js} +1 -1
- package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-Bj3sq9o7.js} +2 -2
- package/dist/{DataTable-CsoAI95B.js → DataTable-BBqbcutV.js} +2 -2
- package/dist/{Legend-ZW-PFcHg.js → Legend-DRqzYrP9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
- package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-ClpqQxYT.js} +1 -1
- package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-B-T7XvxF.js} +3 -3
- package/dist/{Shape-BBbhObHC.js → Shape-DEWxbZ-l.js} +1 -1
- package/dist/{Slicer-Vh74fjdf.js → Slicer-o6jJH5bw.js} +2 -2
- package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-LPnbBoFu.js} +1 -1
- package/dist/{Title-Dx8ctnVy.js → Title-apr_T9tg.js} +1 -1
- package/dist/{Tooltip-COHlzpZI.js → Tooltip-BuHsMAfp.js} +1 -1
- package/dist/{UserOptions-CGn3YdRV.js → UserOptions-OVNxxnq5.js} +144 -133
- package/dist/{dom-to-png-BjSUS-jY.js → dom-to-png-C0Ct8ClX.js} +1 -1
- package/dist/{img-DWfzRJdv.js → img-P0SFFw37.js} +1 -1
- package/dist/{index-CbcpITE_.js → index-CH_mJIWj.js} +185 -127
- package/dist/{pdf-Cy09nTjn.js → pdf-Jun3ogRn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +42 -0
- package/dist/types/vue-data-ui.d.ts +42 -0
- package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-rMR-JeOJ.js} +1 -1
- package/dist/{usePrinter-u-gQiRNz.js → usePrinter-DJ7WfWUs.js} +2 -2
- package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-D7AaTKU6.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
- package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
- package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
- package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
- package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
- package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
- package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
- package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
- package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
- package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
- package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
- package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
- package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
- package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
- package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
- package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
- package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-CYWiZjrP.js} +9 -8
- package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
- package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
- package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BJgJgef_.js} +33 -32
- package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-DBclpybR.js} +3 -3
- package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
- package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
- package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
- package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
- package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
- package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
- package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-UzMmwtvF.js} +9 -8
- package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
- package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
- package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
- package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DMfv2hSb.js} +6 -6
- package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CFYHJrxj.js} +2 -2
- package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
- package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
- package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-CyX30Ccv.js} +23 -22
- package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BEDnWByj.js} +10 -9
- package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
- package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-79itAe84.js} +2 -2
- package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
- package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
- package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
- package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
- package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
- package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-DFTE1OH5.js} +3 -3
- package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
- package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
- package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
- package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
- package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-B0CPNusH.js} +229 -228
- package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
- package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
- package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
- package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
- package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-BhUsfhY5.js} +8 -7
- package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-CEFkua9H.js} +918 -811
- package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Q as H, Z, a7 as le, a8 as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { defineAsyncComponent as
|
|
5
|
-
import { S as Xe } from "./Slicer-
|
|
6
|
-
import Ue from "./Title-
|
|
7
|
-
import { _ as Ze } from "./Shape-
|
|
1
|
+
import { Q as H, Z, a7 as le, a8 as j, a9 as re, aa as ie, ab as ae, ac as se, ad as ne, c as Q, A as ce, F as oe, w as he, s as ue, o as de, a1 as ge, ae as fe, x as Ie, C as Ne, y as xe, a6 as me, e as be, r as Fe, f as $, af as _e, T as ye, U as Ae, q as Le, b as Ce, z as Se, d as ke, ag as we, v as Oe, ah as Ge, D as ve, a4 as pe, ai as Me, i as ze, G as Te, K as Pe, u as Ve, p as Re, B as He, a as De, t as Be } from "./index-CH_mJIWj.js";
|
|
2
|
+
import { u as We } from "./useMouse-AicQS8Vf.js";
|
|
3
|
+
import { u as J } from "./useNestedProp-rMR-JeOJ.js";
|
|
4
|
+
import { defineAsyncComponent as W, resolveComponent as R, createElementBlock as a, openBlock as i, normalizeStyle as y, normalizeClass as E, createBlock as B, createCommentVNode as u, createVNode as U, createSlots as Ee, withCtx as V, renderSlot as G, normalizeProps as Y, guardReactiveProps as q, createElementVNode as f, createTextVNode as ee, Fragment as g, renderList as N, toDisplayString as T, mergeProps as K, withDirectives as Ye, vModelCheckbox as qe } from "vue";
|
|
5
|
+
import { S as Xe } from "./Slicer-o6jJH5bw.js";
|
|
6
|
+
import Ue from "./Title-apr_T9tg.js";
|
|
7
|
+
import { _ as Ze } from "./Shape-DEWxbZ-l.js";
|
|
8
8
|
import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const Ke =
|
|
9
|
+
const Ke = Q(), Qe = {
|
|
10
10
|
name: "vue-ui-xy",
|
|
11
11
|
props: {
|
|
12
12
|
config: {
|
|
@@ -28,23 +28,23 @@ const Ke = J(), Qe = {
|
|
|
28
28
|
Title: Ue,
|
|
29
29
|
// Must be ready in responsive mode
|
|
30
30
|
Shape: Ze,
|
|
31
|
-
DataTable:
|
|
32
|
-
Tooltip:
|
|
33
|
-
UserOptions:
|
|
34
|
-
BaseIcon:
|
|
35
|
-
TableSparkline:
|
|
36
|
-
Skeleton:
|
|
37
|
-
Accordion:
|
|
38
|
-
PackageVersion:
|
|
39
|
-
PenAndPaper:
|
|
31
|
+
DataTable: W(() => import("./DataTable-BBqbcutV.js")),
|
|
32
|
+
Tooltip: W(() => import("./Tooltip-BuHsMAfp.js")),
|
|
33
|
+
UserOptions: W(() => import("./UserOptions-OVNxxnq5.js")),
|
|
34
|
+
BaseIcon: W(() => import("./BaseIcon-DaR0sIWZ.js")),
|
|
35
|
+
TableSparkline: W(() => import("./vue-ui-table-sparkline-SGsBnQTK.js")),
|
|
36
|
+
Skeleton: W(() => import("./vue-ui-skeleton-C6PWt_m5.js")),
|
|
37
|
+
Accordion: W(() => import("./vue-ui-accordion-Ds4zkPIx.js")),
|
|
38
|
+
PackageVersion: W(() => import("./PackageVersion-ClpqQxYT.js")),
|
|
39
|
+
PenAndPaper: W(() => import("./PenAndPaper-B-T7XvxF.js"))
|
|
40
40
|
},
|
|
41
41
|
data() {
|
|
42
|
-
this.dataset.forEach((d,
|
|
42
|
+
this.dataset.forEach((d, r) => {
|
|
43
43
|
[null, void 0].includes(d.series) && this.error({
|
|
44
44
|
componentName: "VueUiXy",
|
|
45
45
|
type: "datasetSerieAttribute",
|
|
46
46
|
property: "series (number[])",
|
|
47
|
-
index:
|
|
47
|
+
index: r
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, s = Math.max(...this.dataset.map((d) => this.largestTriangleThreeBucketsArray({ data: d.series, threshold: t }).length)), o = {
|
|
@@ -54,7 +54,7 @@ const Ke = J(), Qe = {
|
|
|
54
54
|
return {
|
|
55
55
|
resizeObserver: null,
|
|
56
56
|
observedEl: null,
|
|
57
|
-
themePalettes:
|
|
57
|
+
themePalettes: Be,
|
|
58
58
|
themes: De,
|
|
59
59
|
slicerStep: 0,
|
|
60
60
|
selectedScale: null,
|
|
@@ -96,7 +96,7 @@ const Ke = J(), Qe = {
|
|
|
96
96
|
selectedSerieIndex: null,
|
|
97
97
|
selectedRowIndex: null,
|
|
98
98
|
segregatedSeries: [],
|
|
99
|
-
uniqueId:
|
|
99
|
+
uniqueId: Q(),
|
|
100
100
|
step: 0,
|
|
101
101
|
tableStep: 0,
|
|
102
102
|
titleStep: 0,
|
|
@@ -121,7 +121,8 @@ const Ke = J(), Qe = {
|
|
|
121
121
|
keepUserOptionState: !0,
|
|
122
122
|
userOptionsVisible: !0,
|
|
123
123
|
svgRef: null,
|
|
124
|
-
tagRefs: {}
|
|
124
|
+
tagRefs: {},
|
|
125
|
+
_textMeasurer: null
|
|
125
126
|
};
|
|
126
127
|
},
|
|
127
128
|
watch: {
|
|
@@ -167,11 +168,11 @@ const Ke = J(), Qe = {
|
|
|
167
168
|
},
|
|
168
169
|
minimap() {
|
|
169
170
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
170
|
-
const t = this.datasetWithIds.filter((
|
|
171
|
-
for (let
|
|
172
|
-
o.push(t.map((e) => e.series[
|
|
171
|
+
const t = this.datasetWithIds.filter((r) => !this.segregatedSeries.includes(r.id)), s = Math.max(...t.map((r) => r.series.length)), o = [];
|
|
172
|
+
for (let r = 0; r < s; r += 1)
|
|
173
|
+
o.push(t.map((e) => e.series[r] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
|
|
173
174
|
const d = Math.min(...o);
|
|
174
|
-
return o.map((
|
|
175
|
+
return o.map((r) => r + (d < 0 ? Math.abs(d) : 0));
|
|
175
176
|
},
|
|
176
177
|
customPalette() {
|
|
177
178
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -218,8 +219,8 @@ const Ke = J(), Qe = {
|
|
|
218
219
|
id: e.id,
|
|
219
220
|
yOffset: e.yOffset || 0,
|
|
220
221
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
221
|
-
})), d = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...s, ...o],
|
|
222
|
-
return d.flatMap((e,
|
|
222
|
+
})), d = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...s, ...o], r = d.flatMap((e) => e).length;
|
|
223
|
+
return d.flatMap((e, x) => ({
|
|
223
224
|
unique: e.unique,
|
|
224
225
|
id: e.id,
|
|
225
226
|
groupId: e.groupId,
|
|
@@ -229,10 +230,10 @@ const Ke = J(), Qe = {
|
|
|
229
230
|
scale: e.scale,
|
|
230
231
|
yOffset: e.yOffset,
|
|
231
232
|
individualHeight: e.individualHeight,
|
|
232
|
-
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left /
|
|
233
|
-
yLabels: e.scaleYLabels || e.scale.ticks.map((
|
|
234
|
-
y:
|
|
235
|
-
value:
|
|
233
|
+
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / r * (x + 1),
|
|
234
|
+
yLabels: e.scaleYLabels || e.scale.ticks.map((b) => ({
|
|
235
|
+
y: b >= 0 ? e.zero - e.individualHeight * (b / e.max) : e.zero + e.individualHeight * Math.abs(b) / e.max,
|
|
236
|
+
value: b
|
|
236
237
|
}))
|
|
237
238
|
}));
|
|
238
239
|
},
|
|
@@ -291,7 +292,7 @@ const Ke = J(), Qe = {
|
|
|
291
292
|
return {
|
|
292
293
|
...t,
|
|
293
294
|
slotAbsoluteIndex: s,
|
|
294
|
-
series: o.map((
|
|
295
|
+
series: o.map((r) => this.isSafeValue(r) ? r : null).slice(this.slicer.start, this.slicer.end),
|
|
295
296
|
color: this.convertColorToHex(t.color ? t.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
|
|
296
297
|
id: d,
|
|
297
298
|
scaleLabel: t.scaleLabel || d
|
|
@@ -361,10 +362,10 @@ const Ke = J(), Qe = {
|
|
|
361
362
|
scaleGroups() {
|
|
362
363
|
const t = Object.groupBy(this.activeSeriesWithStackRatios, (o) => o.scaleLabel), s = {};
|
|
363
364
|
for (const [o, d] of Object.entries(t)) {
|
|
364
|
-
const
|
|
365
|
+
const r = d.flatMap((e) => e.absoluteValues);
|
|
365
366
|
s[o] = {
|
|
366
|
-
min: Math.min(...
|
|
367
|
-
max: Math.max(...
|
|
367
|
+
min: Math.min(...r) || 0,
|
|
368
|
+
max: Math.max(...r) || 1,
|
|
368
369
|
groupId: `scale_group_${this.createUid()}`
|
|
369
370
|
};
|
|
370
371
|
}
|
|
@@ -375,25 +376,25 @@ const Ke = J(), Qe = {
|
|
|
375
376
|
this.checkAutoScaleError(t);
|
|
376
377
|
const o = this.scaleGroups[t.scaleLabel].min, d = this.scaleGroups[t.scaleLabel].max;
|
|
377
378
|
t.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - o) / (d - o));
|
|
378
|
-
const
|
|
379
|
+
const r = {
|
|
379
380
|
valueMin: o,
|
|
380
381
|
valueMax: d < 0 ? 0 : d
|
|
381
382
|
}, e = {
|
|
382
383
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
383
384
|
min: t.scaleMin || Math.min(...t.absoluteValues.filter((A) => ![void 0, null].includes(A))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((A) => ![null, void 0].includes(A)))
|
|
384
|
-
},
|
|
385
|
-
const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[z] + v) /
|
|
385
|
+
}, x = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, m = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(e.min, e.max === e.min ? e.max * b : e.max, x) : this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * b : e.max, x), I = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * b : r.valueMax, x) : this.calculateNiceScaleWithExactExtremes(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * b : r.valueMax, x), v = m.min >= 0 ? 0 : Math.abs(m.min), S = 0, k = m.max + v, O = I.max + Math.abs(S), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, w = this.drawingArea.bottom - F - C * v / k, p = this.drawingArea.bottom - F - C * S / O, l = this.absoluteDataset.filter((A) => A.type === "bar").filter((A) => !this.segregatedSeries.includes(A.id)).length, c = t.series.map((A, z) => {
|
|
386
|
+
const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[z] + v) / k : this.ratioToMax(A), D = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * z : this.drawingArea.left + this.slot.bar * s + this.slot.bar * z * l - this.barSlot / 2 - s * this.barPeriodGap;
|
|
386
387
|
return {
|
|
387
388
|
yOffset: this.checkNaN(F),
|
|
388
389
|
individualHeight: this.checkNaN(C),
|
|
389
390
|
x: this.checkNaN(D),
|
|
390
391
|
y: this.drawingArea.bottom - F - C * X,
|
|
391
392
|
value: t.absoluteValues[z],
|
|
392
|
-
zeroPosition: this.checkNaN(
|
|
393
|
-
individualMax: this.checkNaN(
|
|
393
|
+
zeroPosition: this.checkNaN(w),
|
|
394
|
+
individualMax: this.checkNaN(k),
|
|
394
395
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
|
|
395
396
|
};
|
|
396
|
-
}), n = t.absoluteValues.map((A) =>
|
|
397
|
+
}), n = t.absoluteValues.map((A) => I.min >= 0 ? (A - Math.abs(I.min)) / (I.max - Math.abs(I.min)) : (A + Math.abs(I.min)) / (I.max + Math.abs(I.min))), h = t.series.map((A, z) => {
|
|
397
398
|
const X = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * z : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * z * this.absoluteDataset.filter((D) => D.type === "bar").filter((D) => !this.segregatedSeries.includes(D.id)).length;
|
|
398
399
|
return {
|
|
399
400
|
yOffset: this.checkNaN(F),
|
|
@@ -401,18 +402,18 @@ const Ke = J(), Qe = {
|
|
|
401
402
|
x: this.checkNaN(X),
|
|
402
403
|
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * n[z] || 0)),
|
|
403
404
|
value: t.absoluteValues[z],
|
|
404
|
-
zeroPosition: this.checkNaN(
|
|
405
|
-
individualMax: this.checkNaN(
|
|
405
|
+
zeroPosition: this.checkNaN(w),
|
|
406
|
+
individualMax: this.checkNaN(k),
|
|
406
407
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
|
|
407
408
|
};
|
|
408
|
-
}),
|
|
409
|
-
y: A >= 0 ?
|
|
409
|
+
}), L = m.ticks.map((A) => ({
|
|
410
|
+
y: A >= 0 ? w - C * (A / k) : w + C * Math.abs(A) / k,
|
|
410
411
|
value: A,
|
|
411
412
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
412
413
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
413
414
|
datapoint: t
|
|
414
|
-
})), M =
|
|
415
|
-
const z = (A -
|
|
415
|
+
})), M = I.ticks.map((A) => {
|
|
416
|
+
const z = (A - I.min) / (I.max - I.min);
|
|
416
417
|
return {
|
|
417
418
|
y: A >= 0 ? p - C * z : p + C * z,
|
|
418
419
|
value: A,
|
|
@@ -421,15 +422,15 @@ const Ke = J(), Qe = {
|
|
|
421
422
|
datapoint: t
|
|
422
423
|
};
|
|
423
424
|
});
|
|
424
|
-
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? M :
|
|
425
|
+
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? M : L, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? p : w, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? O : k, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = F, this.scaleGroups[t.scaleLabel].individualHeight = C, this.scaleGroups[t.scaleLabel].autoScaleYLabels = M, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((A) => A.scaleLabel === t.scaleLabel).length === 1, {
|
|
425
426
|
...t,
|
|
426
427
|
yOffset: F,
|
|
427
428
|
autoScaleYLabels: M,
|
|
428
429
|
individualHeight: C,
|
|
429
|
-
scaleYLabels: t.autoScaling ? M :
|
|
430
|
-
individualScale: t.autoScaling ?
|
|
431
|
-
individualMax: t.autoScaling ? O :
|
|
432
|
-
zeroPosition: t.autoScaling ? p :
|
|
430
|
+
scaleYLabels: t.autoScaling ? M : L,
|
|
431
|
+
individualScale: t.autoScaling ? I : m,
|
|
432
|
+
individualMax: t.autoScaling ? O : k,
|
|
433
|
+
zeroPosition: t.autoScaling ? p : w,
|
|
433
434
|
plots: t.autoScaling ? h : c,
|
|
434
435
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
435
436
|
};
|
|
@@ -439,73 +440,73 @@ const Ke = J(), Qe = {
|
|
|
439
440
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "line").map((t) => {
|
|
440
441
|
this.checkAutoScaleError(t);
|
|
441
442
|
const s = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
|
|
442
|
-
t.absoluteValues.filter((
|
|
443
|
+
t.absoluteValues.filter((_) => ![null, void 0].includes(_)).map((_) => (_ - s) / (o - s));
|
|
443
444
|
const d = {
|
|
444
445
|
valueMin: s,
|
|
445
446
|
valueMax: o
|
|
446
|
-
},
|
|
447
|
+
}, r = {
|
|
447
448
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
448
449
|
min: t.scaleMin || (Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues))
|
|
449
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
450
|
-
const te = this.mutableConfig.useIndividualScale ? (t.absoluteValues[P] + Math.abs(
|
|
450
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, x = 1.0000001, b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.min, r.max === r.min ? r.max * x : r.max, e) : this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * x : r.max, e), m = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * x : d.valueMax, e) : this.calculateNiceScaleWithExactExtremes(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * x : d.valueMax, e), I = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, S = b.max + Math.abs(I), k = m.max + Math.abs(v), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - F * I / S, w = this.drawingArea.bottom - O - F * v / k, p = t.series.map((_, P) => {
|
|
451
|
+
const te = this.mutableConfig.useIndividualScale ? (t.absoluteValues[P] + Math.abs(I)) / S : this.ratioToMax(_);
|
|
451
452
|
return {
|
|
452
453
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
453
454
|
y: this.checkNaN(this.drawingArea.bottom - O - F * te),
|
|
454
455
|
value: t.absoluteValues[P],
|
|
455
456
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
456
457
|
};
|
|
457
|
-
}),
|
|
458
|
+
}), l = t.absoluteValues.map((_) => m.min >= 0 ? (_ - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (_ + Math.abs(m.min)) / (m.max + Math.abs(m.min))), c = t.series.map((_, P) => [void 0, null].includes(t.absoluteValues[P]) ? {
|
|
458
459
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
459
460
|
y: C,
|
|
460
461
|
value: t.absoluteValues[P],
|
|
461
462
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
462
463
|
} : {
|
|
463
464
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
464
|
-
y: this.checkNaN(this.drawingArea.bottom - O - (F *
|
|
465
|
+
y: this.checkNaN(this.drawingArea.bottom - O - (F * l[P] || 0)),
|
|
465
466
|
value: t.absoluteValues[P],
|
|
466
467
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
467
|
-
}), n = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(p) : this.createSmoothPath(p.filter((
|
|
468
|
-
y:
|
|
469
|
-
value:
|
|
468
|
+
}), n = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(p) : this.createSmoothPath(p.filter((_) => _.value !== null)), h = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(c) : this.createSmoothPath(c.filter((_) => _.value !== null)), L = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(p) : this.createStraightPath(p.filter((_) => _.value !== null)), M = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(c) : this.createStraightPath(c.filter((_) => _.value !== null)), A = b.ticks.map((_) => ({
|
|
469
|
+
y: _ >= 0 ? C - F * (_ / S) : C + F * Math.abs(_) / S,
|
|
470
|
+
value: _,
|
|
470
471
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
471
472
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
472
473
|
datapoint: t
|
|
473
|
-
})), z =
|
|
474
|
-
const P = (
|
|
474
|
+
})), z = m.ticks.map((_) => {
|
|
475
|
+
const P = (_ - m.min) / (m.max - m.min);
|
|
475
476
|
return {
|
|
476
|
-
y:
|
|
477
|
-
value:
|
|
477
|
+
y: _ >= 0 ? w - F * P : w + F * P,
|
|
478
|
+
value: _,
|
|
478
479
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
479
480
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
480
481
|
datapoint: t
|
|
481
482
|
};
|
|
482
483
|
});
|
|
483
|
-
this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? z : A, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ?
|
|
484
|
-
const X = this.mutableConfig.useIndividualScale ? t.autoScaling ?
|
|
484
|
+
this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? z : A, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? w : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? k : S, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = O, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = z, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((_) => _.scaleLabel === t.scaleLabel).length === 1;
|
|
485
|
+
const X = this.mutableConfig.useIndividualScale ? t.autoScaling ? w : C : this.zero, D = Math.max(Math.max(t.autoScaling ? w : A.at(-1).y, this.drawingArea.top), X);
|
|
485
486
|
return {
|
|
486
487
|
...t,
|
|
487
488
|
yOffset: O,
|
|
488
489
|
autoScaleYLabels: z,
|
|
489
490
|
individualHeight: F,
|
|
490
491
|
scaleYLabels: t.autoScaling ? z : A,
|
|
491
|
-
individualScale: t.autoScaling ?
|
|
492
|
-
individualMax: t.autoScaling ?
|
|
493
|
-
zeroPosition: t.autoScaling ?
|
|
492
|
+
individualScale: t.autoScaling ? m : b,
|
|
493
|
+
individualMax: t.autoScaling ? k : S,
|
|
494
|
+
zeroPosition: t.autoScaling ? w : C,
|
|
494
495
|
curve: t.autoScaling ? h : n,
|
|
495
496
|
plots: t.autoScaling ? c : p,
|
|
496
497
|
area: t.useArea ? this.mutableConfig.useIndividualScale ? this.FINAL_CONFIG.line.cutNullValues ? this.createIndividualAreaWithCuts(
|
|
497
498
|
t.autoScaling ? c : p,
|
|
498
499
|
D
|
|
499
500
|
) : this.createIndividualArea(
|
|
500
|
-
t.autoScaling ? c.filter((
|
|
501
|
+
t.autoScaling ? c.filter((_) => _.value !== null) : p.filter((_) => _.value !== null),
|
|
501
502
|
D
|
|
502
|
-
) : this.createIndividualArea(p.filter((
|
|
503
|
-
curveAreas: t.useArea ?
|
|
504
|
-
t.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? c : c.filter((
|
|
503
|
+
) : this.createIndividualArea(p.filter((_) => _.value !== null), D) : "",
|
|
504
|
+
curveAreas: t.useArea ? j(
|
|
505
|
+
t.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? c : c.filter((_) => _.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? p : p.filter((_) => _.value !== null),
|
|
505
506
|
D,
|
|
506
507
|
this.FINAL_CONFIG.line.cutNullValues
|
|
507
508
|
) : [],
|
|
508
|
-
straight: t.autoScaling ? M :
|
|
509
|
+
straight: t.autoScaling ? M : L,
|
|
509
510
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
510
511
|
};
|
|
511
512
|
});
|
|
@@ -514,51 +515,51 @@ const Ke = J(), Qe = {
|
|
|
514
515
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "plot").map((t) => {
|
|
515
516
|
this.checkAutoScaleError(t);
|
|
516
517
|
const s = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
|
|
517
|
-
t.absoluteValues.filter((
|
|
518
|
+
t.absoluteValues.filter((L) => ![null, void 0].includes(L)).map((L) => (L - s) / (o - s));
|
|
518
519
|
const d = {
|
|
519
520
|
valueMin: s,
|
|
520
521
|
valueMax: o
|
|
521
|
-
},
|
|
522
|
+
}, r = {
|
|
522
523
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
523
524
|
min: t.scaleMin || Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues)
|
|
524
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
525
|
-
const A = this.mutableConfig.useIndividualScale ? (t.absoluteValues[M] + Math.abs(
|
|
525
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, x = 1.0000001, b = this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * x : r.max, e), m = this.calculateNiceScaleWithExactExtremes(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * x : d.valueMax, e), I = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, S = b.max + I, k = m.max + Math.abs(v), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - F * I / S, w = this.drawingArea.bottom - O - F * v / k, p = t.series.map((L, M) => {
|
|
526
|
+
const A = this.mutableConfig.useIndividualScale ? (t.absoluteValues[M] + Math.abs(I)) / S : this.ratioToMax(L);
|
|
526
527
|
return {
|
|
527
528
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
528
529
|
y: this.checkNaN(this.drawingArea.bottom - O - F * A),
|
|
529
530
|
value: t.absoluteValues[M],
|
|
530
531
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
531
532
|
};
|
|
532
|
-
}),
|
|
533
|
+
}), l = t.absoluteValues.map((L) => m.min >= 0 ? (L - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (L + Math.abs(m.min)) / (m.max + Math.abs(m.min))), c = t.series.map((L, M) => ({
|
|
533
534
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
534
|
-
y: this.checkNaN(this.drawingArea.bottom - O - (F *
|
|
535
|
+
y: this.checkNaN(this.drawingArea.bottom - O - (F * l[M] || 0)),
|
|
535
536
|
value: t.absoluteValues[M],
|
|
536
537
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
537
|
-
})), n =
|
|
538
|
-
y:
|
|
539
|
-
value:
|
|
538
|
+
})), n = b.ticks.map((L) => ({
|
|
539
|
+
y: L >= 0 ? C - F * (L / S) : C + F * Math.abs(L) / S,
|
|
540
|
+
value: L,
|
|
540
541
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
541
542
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
542
543
|
datapoint: t
|
|
543
|
-
})), h =
|
|
544
|
-
const M = (
|
|
544
|
+
})), h = m.ticks.map((L) => {
|
|
545
|
+
const M = (L - m.min) / (m.max - m.min);
|
|
545
546
|
return {
|
|
546
|
-
y:
|
|
547
|
-
value:
|
|
547
|
+
y: L >= 0 ? w - F * M : w + F * M,
|
|
548
|
+
value: L,
|
|
548
549
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
549
550
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
550
551
|
datapoint: t
|
|
551
552
|
};
|
|
552
553
|
});
|
|
553
|
-
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? h : n, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ?
|
|
554
|
+
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? h : n, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? w : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? k : S, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = O, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = h, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((L) => L.scaleLabel === t.scaleLabel).length === 1, {
|
|
554
555
|
...t,
|
|
555
556
|
yOffset: O,
|
|
556
557
|
autoScaleYLabels: h,
|
|
557
558
|
individualHeight: F,
|
|
558
559
|
scaleYLabels: t.autoScaling ? h : n,
|
|
559
|
-
individualScale: t.autoScaling ?
|
|
560
|
-
individualMax: t.autoScaling ?
|
|
561
|
-
zeroPosition: t.autoScaling ?
|
|
560
|
+
individualScale: t.autoScaling ? m : b,
|
|
561
|
+
individualMax: t.autoScaling ? k : S,
|
|
562
|
+
zeroPosition: t.autoScaling ? w : C,
|
|
562
563
|
plots: t.autoScaling ? c : p,
|
|
563
564
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
564
565
|
};
|
|
@@ -566,11 +567,11 @@ const Ke = J(), Qe = {
|
|
|
566
567
|
},
|
|
567
568
|
drawingArea() {
|
|
568
569
|
function t(d) {
|
|
569
|
-
const
|
|
570
|
+
const r = /* @__PURE__ */ new Set();
|
|
570
571
|
return d.forEach((e) => {
|
|
571
|
-
const
|
|
572
|
-
|
|
573
|
-
}),
|
|
572
|
+
const x = e.scaleLabel || "__noScaleLabel__";
|
|
573
|
+
r.add(x);
|
|
574
|
+
}), r.size;
|
|
574
575
|
}
|
|
575
576
|
const s = t(this.absoluteDataset.filter((d) => !this.segregatedSeries.includes(d.id))), o = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? s * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
576
577
|
return {
|
|
@@ -631,10 +632,10 @@ const Ke = J(), Qe = {
|
|
|
631
632
|
type: o.type
|
|
632
633
|
})), s = [];
|
|
633
634
|
return this.timeLabels.forEach((o, d) => {
|
|
634
|
-
const
|
|
635
|
+
const r = [o.text];
|
|
635
636
|
this.relativeDataset.forEach((e) => {
|
|
636
|
-
|
|
637
|
-
}), s.push(
|
|
637
|
+
r.push(this.canShowValue(e.absoluteValues[d]) ? Number(e.absoluteValues[d].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
638
|
+
}), s.push(r);
|
|
638
639
|
}), { head: t, body: s };
|
|
639
640
|
},
|
|
640
641
|
dataTable() {
|
|
@@ -643,22 +644,22 @@ const Ke = J(), Qe = {
|
|
|
643
644
|
t && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
644
645
|
let o = [];
|
|
645
646
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
646
|
-
const
|
|
647
|
+
const x = this.relativeDataset.map((b) => b.absoluteValues[e] ?? 0).reduce((b, m) => b + m, 0);
|
|
647
648
|
o.push(
|
|
648
649
|
[
|
|
649
650
|
this.timeLabels[e].text ?? "-"
|
|
650
651
|
].concat(this.relativeDataset.map(
|
|
651
|
-
(
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
(b) => this.applyDataLabel(
|
|
653
|
+
b.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : b.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
654
|
+
b.absoluteValues[e] ?? 0,
|
|
654
655
|
this.dataLabel({
|
|
655
|
-
p:
|
|
656
|
-
v:
|
|
657
|
-
s:
|
|
656
|
+
p: b.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
657
|
+
v: b.absoluteValues[e] ?? 0,
|
|
658
|
+
s: b.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
658
659
|
r: this.FINAL_CONFIG.table.rounding
|
|
659
660
|
})
|
|
660
661
|
)
|
|
661
|
-
)).concat(t ? (
|
|
662
|
+
)).concat(t ? (x ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
662
663
|
);
|
|
663
664
|
}
|
|
664
665
|
const d = {
|
|
@@ -673,8 +674,8 @@ const Ke = J(), Qe = {
|
|
|
673
674
|
outline: this.FINAL_CONFIG.table.td.outline
|
|
674
675
|
},
|
|
675
676
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
676
|
-
},
|
|
677
|
-
return { head: s, body: o, config: d, colNames:
|
|
677
|
+
}, r = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
678
|
+
return { head: s, body: o, config: d, colNames: r };
|
|
678
679
|
},
|
|
679
680
|
dataTooltipSlot() {
|
|
680
681
|
return {
|
|
@@ -701,7 +702,7 @@ const Ke = J(), Qe = {
|
|
|
701
702
|
}));
|
|
702
703
|
},
|
|
703
704
|
tooltipContent() {
|
|
704
|
-
let t = "", s = this.selectedSeries.map((
|
|
705
|
+
let t = "", s = this.selectedSeries.map((r) => r.value).filter((r) => this.isSafeValue(r) && r !== null).reduce((r, e) => Math.abs(r) + Math.abs(e), 0);
|
|
705
706
|
const o = this.timeLabels[this.selectedSerieIndex], d = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
706
707
|
return this.isFunction(d) && this.functionReturnsString(() => d({
|
|
707
708
|
seriesIndex: this.selectedSerieIndex,
|
|
@@ -719,61 +720,61 @@ const Ke = J(), Qe = {
|
|
|
719
720
|
lines: this.lineSet,
|
|
720
721
|
plots: this.plotSet,
|
|
721
722
|
config: this.FINAL_CONFIG
|
|
722
|
-
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`), this.selectedSeries.forEach((
|
|
723
|
-
if (this.isSafeValue(
|
|
724
|
-
let e = "",
|
|
725
|
-
switch (this.icons[
|
|
723
|
+
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`), this.selectedSeries.forEach((r) => {
|
|
724
|
+
if (this.isSafeValue(r.value)) {
|
|
725
|
+
let e = "", x = "";
|
|
726
|
+
switch (this.icons[r.type]) {
|
|
726
727
|
case "bar":
|
|
727
|
-
e = `<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${
|
|
728
|
+
e = `<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${r.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${r.slotAbsoluteIndex}` : r.color}" /></svg>`;
|
|
728
729
|
break;
|
|
729
730
|
case "line":
|
|
730
|
-
!
|
|
731
|
+
!r.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(r.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" />` : r.shape === "triangle" ? x = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "square" ? x = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "diamond" ? x = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "pentagon" ? x = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "hexagon" ? x = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "star" && (x = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" points="${Z({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${r.color}" />${x}</svg>`;
|
|
731
732
|
break;
|
|
732
733
|
case "plot":
|
|
733
|
-
if (!
|
|
734
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
734
|
+
if (!r.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(r.shape)) {
|
|
735
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" /></svg>`;
|
|
735
736
|
break;
|
|
736
737
|
}
|
|
737
|
-
if (
|
|
738
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
738
|
+
if (r.shape === "star") {
|
|
739
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" points="${Z({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
739
740
|
break;
|
|
740
741
|
}
|
|
741
|
-
if (
|
|
742
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${
|
|
742
|
+
if (r.shape === "triangle") {
|
|
743
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
743
744
|
break;
|
|
744
745
|
}
|
|
745
|
-
if (
|
|
746
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${
|
|
746
|
+
if (r.shape === "square") {
|
|
747
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
747
748
|
break;
|
|
748
749
|
}
|
|
749
|
-
if (
|
|
750
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${
|
|
750
|
+
if (r.shape === "diamond") {
|
|
751
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
751
752
|
break;
|
|
752
753
|
}
|
|
753
|
-
if (
|
|
754
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${
|
|
754
|
+
if (r.shape === "pentagon") {
|
|
755
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
755
756
|
break;
|
|
756
757
|
}
|
|
757
|
-
if (
|
|
758
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${
|
|
758
|
+
if (r.shape === "hexagon") {
|
|
759
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
759
760
|
break;
|
|
760
761
|
}
|
|
761
762
|
}
|
|
762
|
-
t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${
|
|
763
|
-
|
|
764
|
-
|
|
763
|
+
t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${r.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
|
|
764
|
+
r.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : r.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
765
|
+
r.value,
|
|
765
766
|
this.dataLabel({
|
|
766
|
-
p:
|
|
767
|
-
v:
|
|
768
|
-
s:
|
|
767
|
+
p: r.prefix,
|
|
768
|
+
v: r.value,
|
|
769
|
+
s: r.suffix,
|
|
769
770
|
r: this.FINAL_CONFIG.chart.tooltip.roundingValue
|
|
770
771
|
}),
|
|
771
|
-
{ datapoint:
|
|
772
|
-
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${
|
|
773
|
-
v: this.checkNaN(Math.abs(
|
|
772
|
+
{ datapoint: r }
|
|
773
|
+
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${$({
|
|
774
|
+
v: this.checkNaN(Math.abs(r.value) / s * 100),
|
|
774
775
|
s: "%",
|
|
775
776
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
776
|
-
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip &&
|
|
777
|
+
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && r.comments.length && r.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (t += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
777
778
|
}
|
|
778
779
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${t}</div>`);
|
|
779
780
|
},
|
|
@@ -793,6 +794,44 @@ const Ke = J(), Qe = {
|
|
|
793
794
|
},
|
|
794
795
|
zero() {
|
|
795
796
|
return isNaN(this.ratioToMax(this.relativeZero)) ? this.drawingArea.bottom : this.drawingArea.bottom - this.drawingArea.height * this.ratioToMax(this.relativeZero);
|
|
797
|
+
},
|
|
798
|
+
annotationsY() {
|
|
799
|
+
const t = this.FINAL_CONFIG.chart.annotations;
|
|
800
|
+
if (!t.length || t.every((x) => !x.show) || t.every((x) => x.yAxis.yTop === null && x.yAxis.yBottom === null))
|
|
801
|
+
return [];
|
|
802
|
+
const s = t.filter((x) => x.show && (x.yAxis.yTop != null || x.yAxis.yBottom != null));
|
|
803
|
+
if (!s.length) return [];
|
|
804
|
+
const { bottom: o, height: d, left: r, right: e } = this.drawingArea;
|
|
805
|
+
return s.map((x) => {
|
|
806
|
+
const { yTop: b, yBottom: m, label: I } = x.yAxis, v = b != null && m != null && Math.abs(b - m) > 0, S = b == null ? null : o - d * this.ratioToMax(b), k = m == null ? null : o - d * this.ratioToMax(m), O = this.getTextMeasurer(I.fontSize);
|
|
807
|
+
O.font = `${I.fontSize}px sans-serif`;
|
|
808
|
+
const F = O.measureText(I.text).width, C = I.fontSize, w = (I.position === "start" ? r + I.padding.left : e - I.padding.right) + I.offsetX, l = (S != null && k != null ? Math.min(S, k) : S ?? k) - I.fontSize / 3 + I.offsetY - I.padding.top;
|
|
809
|
+
let c;
|
|
810
|
+
I.textAnchor === "middle" ? c = w - F / 2 - I.padding.left : I.textAnchor === "end" ? c = w - F - I.padding.right : c = w - I.padding.left;
|
|
811
|
+
const n = l - C * 0.75 - I.padding.top;
|
|
812
|
+
return {
|
|
813
|
+
id: `annotation_y_${this.createUid()}`,
|
|
814
|
+
hasArea: v,
|
|
815
|
+
areaHeight: v ? Math.abs(S - k) : 0,
|
|
816
|
+
yTop: S,
|
|
817
|
+
yBottom: k,
|
|
818
|
+
config: x.yAxis,
|
|
819
|
+
x1: r,
|
|
820
|
+
x2: e,
|
|
821
|
+
_text: { x: w, y: l },
|
|
822
|
+
_box: {
|
|
823
|
+
x: c,
|
|
824
|
+
y: n,
|
|
825
|
+
width: F + (I.padding.left + I.padding.right),
|
|
826
|
+
height: C + I.padding.top + I.padding.bottom,
|
|
827
|
+
fill: I.backgroundColor,
|
|
828
|
+
stroke: I.border.stroke,
|
|
829
|
+
rx: I.border.rx,
|
|
830
|
+
ry: I.border.ry,
|
|
831
|
+
strokeWidth: I.border.strokeWidth
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
});
|
|
796
835
|
}
|
|
797
836
|
},
|
|
798
837
|
mounted() {
|
|
@@ -820,14 +859,14 @@ const Ke = J(), Qe = {
|
|
|
820
859
|
convertConfigColors: Se,
|
|
821
860
|
convertCustomPalette: Ce,
|
|
822
861
|
createCsvContent: Le,
|
|
823
|
-
createSmoothPath:
|
|
824
|
-
createStraightPath:
|
|
862
|
+
createSmoothPath: Ae,
|
|
863
|
+
createStraightPath: ye,
|
|
825
864
|
createTSpans: _e,
|
|
826
|
-
dataLabel:
|
|
865
|
+
dataLabel: $,
|
|
827
866
|
downloadCsv: Fe,
|
|
828
867
|
error: be,
|
|
829
|
-
forceValidValue:
|
|
830
|
-
functionReturnsString:
|
|
868
|
+
forceValidValue: me,
|
|
869
|
+
functionReturnsString: xe,
|
|
831
870
|
hasDeepProperty: Ne,
|
|
832
871
|
isFunction: Ie,
|
|
833
872
|
isSafeValue: fe,
|
|
@@ -837,22 +876,29 @@ const Ke = J(), Qe = {
|
|
|
837
876
|
shiftHue: he,
|
|
838
877
|
translateSize: oe,
|
|
839
878
|
treeShake: ce,
|
|
840
|
-
useMouse:
|
|
841
|
-
useNestedProp:
|
|
842
|
-
createUid:
|
|
879
|
+
useMouse: We,
|
|
880
|
+
useNestedProp: J,
|
|
881
|
+
createUid: Q,
|
|
843
882
|
placeXYTag: ne,
|
|
844
883
|
createSmoothPathWithCuts: se,
|
|
845
|
-
createStraightPathWithCuts:
|
|
884
|
+
createStraightPathWithCuts: ae,
|
|
846
885
|
createAreaWithCuts: ie,
|
|
847
|
-
createIndividualAreaWithCuts:
|
|
848
|
-
createSmoothAreaSegments:
|
|
886
|
+
createIndividualAreaWithCuts: re,
|
|
887
|
+
createSmoothAreaSegments: j,
|
|
849
888
|
createIndividualArea: le,
|
|
889
|
+
getTextMeasurer(t, s, o) {
|
|
890
|
+
if (!this._textMeasurer) {
|
|
891
|
+
const d = document.createElement("canvas");
|
|
892
|
+
this._textMeasurer = d.getContext("2d");
|
|
893
|
+
}
|
|
894
|
+
return this._textMeasurer.font = `${o || "normal"} ${t}px ${s || "sans-serif"}`, this._textMeasurer;
|
|
895
|
+
},
|
|
850
896
|
hideTags() {
|
|
851
897
|
const t = document.querySelectorAll(".vue-ui-xy-tag");
|
|
852
898
|
t.length && Array.from(t).forEach((s) => s.style.opacity = "0");
|
|
853
899
|
},
|
|
854
|
-
setTagRef(t, s, o, d,
|
|
855
|
-
o && (this.tagRefs[`${t}_${s}_${d}_${
|
|
900
|
+
setTagRef(t, s, o, d, r) {
|
|
901
|
+
o && (this.tagRefs[`${t}_${s}_${d}_${r}`] = o);
|
|
856
902
|
},
|
|
857
903
|
setUserOptionsVisibility(t = !1) {
|
|
858
904
|
this.showUserOptionsOnChartHover && (this.userOptionsVisible = t);
|
|
@@ -866,7 +912,7 @@ const Ke = J(), Qe = {
|
|
|
866
912
|
name: d.name,
|
|
867
913
|
color: d.color,
|
|
868
914
|
type: d.type,
|
|
869
|
-
value: d.absoluteValues.find((
|
|
915
|
+
value: d.absoluteValues.find((r, e) => e === s),
|
|
870
916
|
comments: d.comments || [],
|
|
871
917
|
prefix: d.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
872
918
|
suffix: d.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
@@ -892,8 +938,11 @@ const Ke = J(), Qe = {
|
|
|
892
938
|
userConfig: this.config,
|
|
893
939
|
defaultConfig: t
|
|
894
940
|
});
|
|
895
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? s.chart.highlightArea = this.config.chart.highlightArea : s.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? s.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : s.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? s.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : s.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? s.chart.zoom.startIndex = this.config.chart.zoom.startIndex : s.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? s.chart.zoom.endIndex = this.config.chart.zoom.endIndex : s.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? s.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : s.chart.grid.labels.yAxis.groupColor = null, s.
|
|
896
|
-
|
|
941
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? s.chart.highlightArea = this.config.chart.highlightArea : s.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? s.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : s.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? s.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : s.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? s.chart.zoom.startIndex = this.config.chart.zoom.startIndex : s.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? s.chart.zoom.endIndex = this.config.chart.zoom.endIndex : s.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? s.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : s.chart.grid.labels.yAxis.groupColor = null, this.config && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length && (s.chart.annotations = this.config.chart.annotations.map((o) => J({
|
|
942
|
+
defaultConfig: t.chart.annotations[0],
|
|
943
|
+
userConfig: o
|
|
944
|
+
}))), s.theme ? {
|
|
945
|
+
...J({
|
|
897
946
|
userConfig: this.themes.vue_ui_xy[s.theme] || this.config,
|
|
898
947
|
defaultConfig: s
|
|
899
948
|
}),
|
|
@@ -929,23 +978,23 @@ const Ke = J(), Qe = {
|
|
|
929
978
|
const s = this.$refs.chart.parentNode;
|
|
930
979
|
this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
931
980
|
const { height: o, width: d } = s.getBoundingClientRect();
|
|
932
|
-
let
|
|
933
|
-
this.FINAL_CONFIG.chart.title.show && (
|
|
934
|
-
let
|
|
935
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (
|
|
936
|
-
let
|
|
937
|
-
this.FINAL_CONFIG.chart.legend.show && (
|
|
981
|
+
let r = null, e = 0;
|
|
982
|
+
this.FINAL_CONFIG.chart.title.show && (r = this.$refs.chartTitle, e = r.getBoundingClientRect().height);
|
|
983
|
+
let x = null, b = 0;
|
|
984
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, b = x.getBoundingClientRect().height);
|
|
985
|
+
let m = null, I = 0;
|
|
986
|
+
this.FINAL_CONFIG.chart.legend.show && (m = this.$refs.chartLegend, I = m.getBoundingClientRect().height);
|
|
938
987
|
let v = 0;
|
|
939
988
|
this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height);
|
|
940
|
-
let
|
|
941
|
-
this.$refs.noTitle && (
|
|
942
|
-
const
|
|
989
|
+
let S = 0;
|
|
990
|
+
this.$refs.noTitle && (S = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - I - b - v - S, this.width = d, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
991
|
+
const k = new ResizeObserver((O) => {
|
|
943
992
|
for (const F of O)
|
|
944
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (
|
|
945
|
-
this.height = F.contentBoxSize[0].blockSize - e -
|
|
993
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (b = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (I = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
|
|
994
|
+
this.height = F.contentBoxSize[0].blockSize - e - I - b - v - 24, this.width = F.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
946
995
|
});
|
|
947
996
|
});
|
|
948
|
-
this.resizeObserver =
|
|
997
|
+
this.resizeObserver = k, this.observedEl = s, k.observe(s);
|
|
949
998
|
} else
|
|
950
999
|
this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.viewBox = `0 0 ${this.width} ${this.height}`, this.fontSizes.dataLabels = this.FINAL_CONFIG.chart.grid.labels.fontSize, this.fontSizes.yAxis = this.FINAL_CONFIG.chart.grid.labels.axis.fontSize, this.fontSizes.xAxis = this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize, this.fontSizes.plotLabels = this.FINAL_CONFIG.chart.labels.fontSize, this.plotRadii.plot = this.FINAL_CONFIG.plot.radius, this.plotRadii.line = this.FINAL_CONFIG.line.radius;
|
|
951
1000
|
},
|
|
@@ -1008,10 +1057,10 @@ const Ke = J(), Qe = {
|
|
|
1008
1057
|
},
|
|
1009
1058
|
createArea(t, s) {
|
|
1010
1059
|
if (!t[0]) return [-10, -10, "", -10, -10];
|
|
1011
|
-
const o = { x: t[0].x, y: s }, d = { x: t.at(-1).x, y: s },
|
|
1060
|
+
const o = { x: t[0].x, y: s }, d = { x: t.at(-1).x, y: s }, r = [];
|
|
1012
1061
|
return t.forEach((e) => {
|
|
1013
|
-
|
|
1014
|
-
}), [o.x, o.y, ...
|
|
1062
|
+
r.push(`${e.x},${e.y} `);
|
|
1063
|
+
}), [o.x, o.y, ...r, d.x, d.y].toString();
|
|
1015
1064
|
},
|
|
1016
1065
|
createStar: Z,
|
|
1017
1066
|
createPolygonPath: H,
|
|
@@ -1058,9 +1107,9 @@ const Ke = J(), Qe = {
|
|
|
1058
1107
|
},
|
|
1059
1108
|
findClosestValue(t, s) {
|
|
1060
1109
|
let o = s[0], d = Math.abs(t - s[0]);
|
|
1061
|
-
for (let
|
|
1062
|
-
const e = Math.abs(t - s[
|
|
1063
|
-
e < d && s[
|
|
1110
|
+
for (let r = 1; r < s.length; r += 1) {
|
|
1111
|
+
const e = Math.abs(t - s[r]);
|
|
1112
|
+
e < d && s[r] < t && (o = s[r], d = e);
|
|
1064
1113
|
}
|
|
1065
1114
|
return o;
|
|
1066
1115
|
},
|
|
@@ -1116,7 +1165,7 @@ const Ke = J(), Qe = {
|
|
|
1116
1165
|
async generatePdf() {
|
|
1117
1166
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1118
1167
|
try {
|
|
1119
|
-
const { default: t } = await import("./pdf-
|
|
1168
|
+
const { default: t } = await import("./pdf-Jun3ogRn.js");
|
|
1120
1169
|
await t({
|
|
1121
1170
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1122
1171
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1130,8 +1179,8 @@ const Ke = J(), Qe = {
|
|
|
1130
1179
|
}, 100);
|
|
1131
1180
|
},
|
|
1132
1181
|
generateCsv() {
|
|
1133
|
-
const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, d = t.concat([s]).concat(o),
|
|
1134
|
-
this.downloadCsv({ csvContent:
|
|
1182
|
+
const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, d = t.concat([s]).concat(o), r = this.createCsvContent(d);
|
|
1183
|
+
this.downloadCsv({ csvContent: r, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1135
1184
|
},
|
|
1136
1185
|
showSpinnerImage() {
|
|
1137
1186
|
this.isImaging = !0;
|
|
@@ -1139,7 +1188,7 @@ const Ke = J(), Qe = {
|
|
|
1139
1188
|
async generateImage() {
|
|
1140
1189
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1141
1190
|
try {
|
|
1142
|
-
const { default: t } = await import("./img-
|
|
1191
|
+
const { default: t } = await import("./img-P0SFFw37.js");
|
|
1143
1192
|
await t({
|
|
1144
1193
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1145
1194
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1159,85 +1208,85 @@ const Ke = J(), Qe = {
|
|
|
1159
1208
|
ref: "noTitle",
|
|
1160
1209
|
class: "vue-data-ui-no-title-space",
|
|
1161
1210
|
style: "height:36px; width: 100%; background:transparent"
|
|
1162
|
-
}, et = ["viewBox", "aria-label"], tt = ["x", "y", "width", "height"], lt = { key: 1 },
|
|
1163
|
-
key:
|
|
1211
|
+
}, et = ["viewBox", "aria-label"], tt = ["x", "y", "width", "height"], lt = { key: 1 }, rt = { class: "vue-ui-xy-grid" }, it = ["stroke", "x1", "x2", "y1", "y2"], at = ["stroke", "x1", "x2", "y1", "y2"], st = { key: 1 }, nt = ["x1", "x2", "y1", "y2", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke"], ht = { key: 3 }, ut = ["x1", "x2", "y1", "y2", "stroke"], dt = ["id"], gt = ["stop-color"], ft = ["stop-color"], It = ["stop-color"], Nt = ["id"], xt = ["stop-color"], mt = ["stop-color"], bt = ["stop-color"], Ft = ["id"], _t = ["stop-color"], yt = ["stop-color"], At = ["id"], Lt = ["stop-color"], Ct = ["stop-color"], St = ["id"], kt = ["stop-color"], wt = ["stop-color"], Ot = ["x", "y", "height", "width", "fill"], Gt = ["x", "y", "width"], vt = ["x", "y", "height", "width", "fill"], pt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Mt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], zt = ["width", "x", "y"], Tt = { key: 0 }, Pt = ["id"], Vt = ["fill"], Rt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ht = ["x", "y", "font-size", "fill"], Dt = ["stroke", "x1", "x2", "y1", "y2"], Bt = { key: 2 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Et = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Yt = { key: 4 }, qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = ["fill", "font-size", "transform"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Zt = ["x", "y", "font-size", "fill"], Jt = ["x1", "x2", "y1", "y2", "stroke"], Kt = ["x", "y", "font-size", "fill"], Qt = ["width", "x", "y"], jt = { style: { width: "100%" } }, $t = { key: 0 }, el = ["id"], tl = ["fill"], ll = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], rl = ["x", "y", "font-size", "fill"], il = ["d", "stroke", "stroke-width", "stroke-dasharray"], al = ["d", "stroke", "stroke-width", "stroke-dasharray"], sl = { key: 5 }, nl = { key: 0 }, cl = ["d", "fill"], ol = ["d", "fill"], hl = ["d", "fill"], ul = ["d", "fill"], dl = ["d", "stroke", "stroke-width", "stroke-dasharray"], gl = ["d", "stroke", "stroke-width", "stroke-dasharray"], fl = ["width", "x", "y"], Il = { style: { width: "100%" } }, Nl = { key: 3 }, xl = ["id"], ml = ["fill"], bl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Fl = ["x", "y", "font-size", "fill"], _l = { key: 6 }, yl = ["x", "y", "font-size", "fill"], Al = ["x", "y", "font-size", "fill", "font-weight"], Ll = { key: 7 }, Cl = ["x", "y", "font-size", "fill"], Sl = { key: 8 }, kl = ["x", "y"], wl = ["innerHTML"], Ol = ["x", "y"], Gl = ["innerHTML"], vl = ["x1", "x2", "y1", "y2", "stroke"], pl = { key: 9 }, Ml = ["x", "y", "font-size", "fill"], zl = { key: 10 }, Tl = ["x", "y"], Pl = ["innerHTML"], Vl = ["x", "y"], Rl = ["innerHTML"], Hl = ["x1", "x2", "y1", "y2", "stroke"], Dl = ["x", "y", "font-size", "fill", "innerHTML"], Bl = ["x", "y", "font-size", "fill", "innerHTML"], Wl = ["x", "y", "font-size", "fill", "innerHTML"], El = ["x", "y", "font-size", "fill", "innerHTML"], Yl = ["id"], ql = ["stop-color"], Xl = ["stop-color"], Ul = ["x", "y", "width", "height", "fill", "onMouseenter"], Zl = ["font-size", "fill", "transform"], Jl = ["x", "y", "font-size", "fill"], Kl = { key: 12 }, Ql = ["text-anchor", "font-size", "fill", "transform", "onClick"], jl = { key: 13 }, $l = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], er = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], tr = ["y", "x", "width", "height", "fill"], lr = ["id", "x", "y", "font-size", "fill", "text-anchor"], rr = ["x", "y", "height", "width", "onMouseenter", "onClick"], ir = {
|
|
1212
|
+
key: 14,
|
|
1164
1213
|
style: { "pointer-events": "none" }
|
|
1165
|
-
},
|
|
1214
|
+
}, ar = ["x", "y"], sr = ["cx", "cy", "r", "fill"], nr = {
|
|
1166
1215
|
key: 5,
|
|
1167
1216
|
class: "vue-data-ui-watermark"
|
|
1168
|
-
},
|
|
1217
|
+
}, cr = {
|
|
1169
1218
|
class: "vue-ui-xy-tag-arrow",
|
|
1170
1219
|
height: "20",
|
|
1171
1220
|
viewBox: "0 0 10 20",
|
|
1172
1221
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1173
|
-
},
|
|
1222
|
+
}, or = ["fill"], hr = ["innerHTML"], ur = {
|
|
1174
1223
|
class: "vue-ui-xy-tag-arrow",
|
|
1175
1224
|
height: "100%",
|
|
1176
1225
|
viewBox: "0 0 10 20",
|
|
1177
1226
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1178
|
-
},
|
|
1227
|
+
}, dr = ["fill"], gr = ["innerHTML"], fr = {
|
|
1179
1228
|
class: "vue-ui-xy-tag-arrow",
|
|
1180
1229
|
height: "20",
|
|
1181
1230
|
viewBox: "0 0 10 20",
|
|
1182
1231
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1183
|
-
},
|
|
1232
|
+
}, Ir = ["fill"], Nr = ["innerHTML"], xr = {
|
|
1184
1233
|
class: "vue-ui-xy-tag-arrow",
|
|
1185
1234
|
height: "100%",
|
|
1186
1235
|
viewBox: "0 0 10 20",
|
|
1187
1236
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1188
|
-
},
|
|
1237
|
+
}, mr = ["fill"], br = ["innerHTML"], Fr = ["onClick"], _r = {
|
|
1189
1238
|
key: 0,
|
|
1190
1239
|
viewBox: "0 0 20 12",
|
|
1191
1240
|
height: "14",
|
|
1192
1241
|
width: "20"
|
|
1193
|
-
},
|
|
1242
|
+
}, yr = ["stroke", "fill"], Ar = {
|
|
1194
1243
|
key: 1,
|
|
1195
1244
|
viewBox: "0 0 40 40",
|
|
1196
1245
|
height: "14",
|
|
1197
1246
|
width: "14"
|
|
1198
|
-
},
|
|
1247
|
+
}, Lr = ["fill"], Cr = ["fill"], Sr = {
|
|
1199
1248
|
key: 2,
|
|
1200
1249
|
viewBox: "0 0 12 12",
|
|
1201
1250
|
height: "14",
|
|
1202
1251
|
width: "14"
|
|
1203
|
-
},
|
|
1252
|
+
}, kr = {
|
|
1204
1253
|
key: 9,
|
|
1205
1254
|
ref: "chartLegend"
|
|
1206
|
-
},
|
|
1255
|
+
}, wr = {
|
|
1207
1256
|
key: 10,
|
|
1208
1257
|
ref: "source",
|
|
1209
1258
|
dir: "auto"
|
|
1210
|
-
},
|
|
1259
|
+
}, Or = {
|
|
1211
1260
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1212
1261
|
"data-dom-to-png-ignore": ""
|
|
1213
|
-
},
|
|
1214
|
-
function
|
|
1215
|
-
const
|
|
1216
|
-
return i(),
|
|
1217
|
-
id: `vue-ui-xy_${
|
|
1218
|
-
class:
|
|
1262
|
+
}, Gr = ["innerHTML"];
|
|
1263
|
+
function vr(t, s, o, d, r, e) {
|
|
1264
|
+
const x = R("PenAndPaper"), b = R("Title"), m = R("UserOptions"), I = R("PackageVersion"), v = R("Shape"), S = R("Skeleton"), k = R("Slicer"), O = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), w = R("DataTable"), p = R("Accordion");
|
|
1265
|
+
return i(), a("div", {
|
|
1266
|
+
id: `vue-ui-xy_${r.uniqueId}`,
|
|
1267
|
+
class: E(`vue-ui-xy ${r.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1219
1268
|
ref: "chart",
|
|
1220
|
-
style:
|
|
1269
|
+
style: y(`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%" : ""}`),
|
|
1221
1270
|
onMouseenter: s[7] || (s[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1222
1271
|
onMouseleave: s[8] || (s[8] = () => e.setUserOptionsVisibility(!1))
|
|
1223
1272
|
}, [
|
|
1224
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (i(),
|
|
1273
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (i(), B(x, {
|
|
1225
1274
|
key: 0,
|
|
1226
|
-
svgRef:
|
|
1275
|
+
svgRef: r.svgRef,
|
|
1227
1276
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1228
1277
|
color: e.FINAL_CONFIG.chart.color,
|
|
1229
|
-
active:
|
|
1278
|
+
active: r.isAnnotator,
|
|
1230
1279
|
onClose: e.toggleAnnotator
|
|
1231
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) :
|
|
1232
|
-
e.hasOptionsNoTitle ? (i(),
|
|
1233
|
-
e.FINAL_CONFIG.chart.title.show ? (i(),
|
|
1280
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : u("", !0),
|
|
1281
|
+
e.hasOptionsNoTitle ? (i(), a("div", $e, null, 512)) : u("", !0),
|
|
1282
|
+
e.FINAL_CONFIG.chart.title.show ? (i(), a("div", {
|
|
1234
1283
|
key: 2,
|
|
1235
1284
|
ref: "chartTitle",
|
|
1236
1285
|
class: "vue-ui-xy-title",
|
|
1237
|
-
style:
|
|
1286
|
+
style: y(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1238
1287
|
}, [
|
|
1239
|
-
(i(),
|
|
1240
|
-
key: `title_${
|
|
1288
|
+
(i(), B(b, {
|
|
1289
|
+
key: `title_${r.titleStep}`,
|
|
1241
1290
|
config: {
|
|
1242
1291
|
title: {
|
|
1243
1292
|
cy: "xy-div-title",
|
|
@@ -1249,15 +1298,15 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1249
1298
|
}
|
|
1250
1299
|
}
|
|
1251
1300
|
}, null, 8, ["config"]))
|
|
1252
|
-
], 4)) :
|
|
1253
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (
|
|
1301
|
+
], 4)) : u("", !0),
|
|
1302
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (r.keepUserOptionState || r.userOptionsVisible) ? (i(), B(m, {
|
|
1254
1303
|
ref: "defails",
|
|
1255
|
-
key: `user_options_${
|
|
1304
|
+
key: `user_options_${r.step}`,
|
|
1256
1305
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1257
1306
|
color: e.FINAL_CONFIG.chart.color,
|
|
1258
|
-
isPrinting:
|
|
1259
|
-
isImaging:
|
|
1260
|
-
uid:
|
|
1307
|
+
isPrinting: r.isPrinting,
|
|
1308
|
+
isImaging: r.isImaging,
|
|
1309
|
+
uid: r.uniqueId,
|
|
1261
1310
|
hasTooltip: e.FINAL_CONFIG.chart.userOptions.buttons.tooltip && e.FINAL_CONFIG.chart.tooltip.show,
|
|
1262
1311
|
hasPdf: e.FINAL_CONFIG.chart.userOptions.buttons.pdf,
|
|
1263
1312
|
hasXls: e.FINAL_CONFIG.chart.userOptions.buttons.csv,
|
|
@@ -1266,14 +1315,15 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1266
1315
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1267
1316
|
hasStack: o.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1268
1317
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1269
|
-
isStacked:
|
|
1270
|
-
isFullscreen:
|
|
1318
|
+
isStacked: r.mutableConfig.isStacked,
|
|
1319
|
+
isFullscreen: r.isFullscreen,
|
|
1271
1320
|
chartElement: t.$refs.chart,
|
|
1272
1321
|
position: e.FINAL_CONFIG.chart.userOptions.position,
|
|
1273
|
-
isTooltip:
|
|
1322
|
+
isTooltip: r.mutableConfig.showTooltip,
|
|
1274
1323
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
1275
1324
|
hasAnnotator: e.FINAL_CONFIG.chart.userOptions.buttons.annotator,
|
|
1276
|
-
isAnnotation:
|
|
1325
|
+
isAnnotation: r.isAnnotator,
|
|
1326
|
+
callbacks: e.FINAL_CONFIG.chart.userOptions.callbacks,
|
|
1277
1327
|
onToggleFullscreen: e.toggleFullscreen,
|
|
1278
1328
|
onGeneratePdf: e.generatePdf,
|
|
1279
1329
|
onGenerateCsv: e.generateCsv,
|
|
@@ -1283,95 +1333,95 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1283
1333
|
onToggleStack: e.toggleStack,
|
|
1284
1334
|
onToggleTooltip: e.toggleTooltip,
|
|
1285
1335
|
onToggleAnnotator: e.toggleAnnotator,
|
|
1286
|
-
style:
|
|
1287
|
-
visibility:
|
|
1336
|
+
style: y({
|
|
1337
|
+
visibility: r.keepUserOptionState ? r.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1288
1338
|
})
|
|
1289
|
-
},
|
|
1339
|
+
}, Ee({ _: 2 }, [
|
|
1290
1340
|
t.$slots.menuIcon ? {
|
|
1291
1341
|
name: "menuIcon",
|
|
1292
|
-
fn: V(({ isOpen:
|
|
1293
|
-
|
|
1342
|
+
fn: V(({ isOpen: l, color: c }) => [
|
|
1343
|
+
G(t.$slots, "menuIcon", Y(q({ isOpen: l, color: c })), void 0, !0)
|
|
1294
1344
|
]),
|
|
1295
1345
|
key: "0"
|
|
1296
1346
|
} : void 0,
|
|
1297
1347
|
t.$slots.optionTooltip ? {
|
|
1298
1348
|
name: "optionTooltip",
|
|
1299
1349
|
fn: V(() => [
|
|
1300
|
-
|
|
1350
|
+
G(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1301
1351
|
]),
|
|
1302
1352
|
key: "1"
|
|
1303
1353
|
} : void 0,
|
|
1304
1354
|
t.$slots.optionPdf ? {
|
|
1305
1355
|
name: "optionPdf",
|
|
1306
1356
|
fn: V(() => [
|
|
1307
|
-
|
|
1357
|
+
G(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1308
1358
|
]),
|
|
1309
1359
|
key: "2"
|
|
1310
1360
|
} : void 0,
|
|
1311
1361
|
t.$slots.optionCsv ? {
|
|
1312
1362
|
name: "optionCsv",
|
|
1313
1363
|
fn: V(() => [
|
|
1314
|
-
|
|
1364
|
+
G(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1315
1365
|
]),
|
|
1316
1366
|
key: "3"
|
|
1317
1367
|
} : void 0,
|
|
1318
1368
|
t.$slots.optionImg ? {
|
|
1319
1369
|
name: "optionImg",
|
|
1320
1370
|
fn: V(() => [
|
|
1321
|
-
|
|
1371
|
+
G(t.$slots, "optionImg", {}, void 0, !0)
|
|
1322
1372
|
]),
|
|
1323
1373
|
key: "4"
|
|
1324
1374
|
} : void 0,
|
|
1325
1375
|
t.$slots.optionTable ? {
|
|
1326
1376
|
name: "optionTable",
|
|
1327
1377
|
fn: V(() => [
|
|
1328
|
-
|
|
1378
|
+
G(t.$slots, "optionTable", {}, void 0, !0)
|
|
1329
1379
|
]),
|
|
1330
1380
|
key: "5"
|
|
1331
1381
|
} : void 0,
|
|
1332
1382
|
t.$slots.optionLabels ? {
|
|
1333
1383
|
name: "optionLabels",
|
|
1334
1384
|
fn: V(() => [
|
|
1335
|
-
|
|
1385
|
+
G(t.$slots, "optionLabels", {}, void 0, !0)
|
|
1336
1386
|
]),
|
|
1337
1387
|
key: "6"
|
|
1338
1388
|
} : void 0,
|
|
1339
1389
|
t.$slots.optionStack ? {
|
|
1340
1390
|
name: "optionStack",
|
|
1341
1391
|
fn: V(() => [
|
|
1342
|
-
|
|
1392
|
+
G(t.$slots, "optionStack", {}, void 0, !0)
|
|
1343
1393
|
]),
|
|
1344
1394
|
key: "7"
|
|
1345
1395
|
} : void 0,
|
|
1346
1396
|
t.$slots.optionFullscreen ? {
|
|
1347
1397
|
name: "optionFullscreen",
|
|
1348
|
-
fn: V(({ toggleFullscreen:
|
|
1349
|
-
|
|
1398
|
+
fn: V(({ toggleFullscreen: l, isFullscreen: c }) => [
|
|
1399
|
+
G(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: c })), void 0, !0)
|
|
1350
1400
|
]),
|
|
1351
1401
|
key: "8"
|
|
1352
1402
|
} : void 0,
|
|
1353
1403
|
t.$slots.optionAnnotator ? {
|
|
1354
1404
|
name: "optionAnnotator",
|
|
1355
|
-
fn: V(({ toggleAnnotator:
|
|
1356
|
-
|
|
1405
|
+
fn: V(({ toggleAnnotator: l, isAnnotator: c }) => [
|
|
1406
|
+
G(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: c })), void 0, !0)
|
|
1357
1407
|
]),
|
|
1358
1408
|
key: "9"
|
|
1359
1409
|
} : void 0
|
|
1360
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) :
|
|
1361
|
-
e.isDataset ? (i(),
|
|
1410
|
+
]), 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),
|
|
1411
|
+
e.isDataset ? (i(), a("svg", {
|
|
1362
1412
|
key: 4,
|
|
1363
1413
|
ref: "svgRef",
|
|
1364
1414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1365
|
-
class:
|
|
1415
|
+
class: E([{ "vue-data-ui-fullscreen--on": r.isFullscreen, "vue-data-ui-fulscreen--off": !r.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1366
1416
|
width: "100%",
|
|
1367
|
-
viewBox:
|
|
1368
|
-
style:
|
|
1417
|
+
viewBox: r.viewBox,
|
|
1418
|
+
style: y(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
|
|
1369
1419
|
"aria-label": e.chartAriaLabel,
|
|
1370
1420
|
role: "img",
|
|
1371
1421
|
"aria-live": "polite"
|
|
1372
1422
|
}, [
|
|
1373
|
-
U(
|
|
1374
|
-
t.$slots["chart-background"] ? (i(),
|
|
1423
|
+
U(I),
|
|
1424
|
+
t.$slots["chart-background"] ? (i(), a("foreignObject", {
|
|
1375
1425
|
key: 0,
|
|
1376
1426
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
1377
1427
|
y: e.drawingArea.top,
|
|
@@ -1381,11 +1431,11 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1381
1431
|
pointerEvents: "none"
|
|
1382
1432
|
}
|
|
1383
1433
|
}, [
|
|
1384
|
-
|
|
1385
|
-
], 8, tt)) :
|
|
1386
|
-
e.maxSeries > 0 ? (i(),
|
|
1387
|
-
f("g",
|
|
1388
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (i(),
|
|
1434
|
+
G(t.$slots, "chart-background", {}, void 0, !0)
|
|
1435
|
+
], 8, tt)) : u("", !0),
|
|
1436
|
+
e.maxSeries > 0 ? (i(), a("g", lt, [
|
|
1437
|
+
f("g", rt, [
|
|
1438
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (i(), a("line", {
|
|
1389
1439
|
key: 0,
|
|
1390
1440
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1391
1441
|
"stroke-width": "1",
|
|
@@ -1393,28 +1443,31 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1393
1443
|
x2: e.drawingArea.right - e.xPadding,
|
|
1394
1444
|
y1: e.forceValidValue(e.drawingArea.bottom),
|
|
1395
1445
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1396
|
-
"stroke-linecap": "round"
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1446
|
+
"stroke-linecap": "round",
|
|
1447
|
+
style: { animation: "none !important" }
|
|
1448
|
+
}, null, 8, it)) : u("", !0),
|
|
1449
|
+
r.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (i(!0), a(g, { key: 2 }, N(e.allScales, (l) => (i(), a("g", null, [
|
|
1450
|
+
l.id === r.selectedScale && l.yLabels.length ? (i(!0), a(g, { key: 0 }, N(l.yLabels, (c) => (i(), a("line", {
|
|
1400
1451
|
x1: e.drawingArea.left + e.xPadding,
|
|
1401
1452
|
x2: e.drawingArea.right - e.xPadding,
|
|
1402
1453
|
y1: e.forceValidValue(c.y),
|
|
1403
1454
|
y2: e.forceValidValue(c.y),
|
|
1404
|
-
stroke:
|
|
1455
|
+
stroke: l.color,
|
|
1405
1456
|
"stroke-width": 0.5,
|
|
1406
|
-
"stroke-linecap": "round"
|
|
1407
|
-
|
|
1457
|
+
"stroke-linecap": "round",
|
|
1458
|
+
style: { animation: "none !important" }
|
|
1459
|
+
}, null, 8, ct))), 256)) : l.yLabels.length ? (i(!0), a(g, { key: 1 }, N(l.yLabels, (c) => (i(), a("line", {
|
|
1408
1460
|
x1: e.drawingArea.left + e.xPadding,
|
|
1409
1461
|
x2: e.drawingArea.right - e.xPadding,
|
|
1410
1462
|
y1: e.forceValidValue(c.y),
|
|
1411
1463
|
y2: e.forceValidValue(c.y),
|
|
1412
1464
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1413
1465
|
"stroke-width": 0.5,
|
|
1414
|
-
"stroke-linecap": "round"
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1466
|
+
"stroke-linecap": "round",
|
|
1467
|
+
style: { animation: "none !important" }
|
|
1468
|
+
}, null, 8, ot))), 256)) : u("", !0)
|
|
1469
|
+
]))), 256)) : u("", !0) : (i(), a(g, { key: 1 }, [
|
|
1470
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (i(), a("line", {
|
|
1418
1471
|
key: 0,
|
|
1419
1472
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1420
1473
|
"stroke-width": "1",
|
|
@@ -1422,77 +1475,80 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1422
1475
|
x2: e.drawingArea.left + e.xPadding,
|
|
1423
1476
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
1424
1477
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1425
|
-
"stroke-linecap": "round"
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1478
|
+
"stroke-linecap": "round",
|
|
1479
|
+
style: { animation: "none !important" }
|
|
1480
|
+
}, null, 8, at)) : u("", !0),
|
|
1481
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (i(), a("g", st, [
|
|
1482
|
+
(i(!0), a(g, null, N(e.yLabels, (l) => (i(), a("line", {
|
|
1429
1483
|
x1: e.drawingArea.left + e.xPadding,
|
|
1430
1484
|
x2: e.drawingArea.right - e.xPadding,
|
|
1431
|
-
y1: e.forceValidValue(
|
|
1432
|
-
y2: e.forceValidValue(
|
|
1485
|
+
y1: e.forceValidValue(l.y),
|
|
1486
|
+
y2: e.forceValidValue(l.y),
|
|
1433
1487
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1434
1488
|
"stroke-width": 0.5,
|
|
1435
|
-
"stroke-linecap": "round"
|
|
1489
|
+
"stroke-linecap": "round",
|
|
1490
|
+
style: { animation: "none !important" }
|
|
1436
1491
|
}, null, 8, nt))), 256))
|
|
1437
|
-
])) :
|
|
1492
|
+
])) : u("", !0)
|
|
1438
1493
|
], 64)),
|
|
1439
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (i(),
|
|
1440
|
-
(i(!0),
|
|
1494
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (i(), a("g", ht, [
|
|
1495
|
+
(i(!0), a(g, null, N(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (l, c) => (i(), a("line", {
|
|
1441
1496
|
key: `grid_vertical_line_${c}`,
|
|
1442
1497
|
x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1443
1498
|
x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1444
1499
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
1445
1500
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1446
1501
|
"stroke-width": "0.5",
|
|
1447
|
-
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1502
|
+
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1503
|
+
style: { animation: "none !important" }
|
|
1448
1504
|
}, null, 8, ut))), 128))
|
|
1449
|
-
])) :
|
|
1505
|
+
])) : u("", !0)
|
|
1450
1506
|
]),
|
|
1451
|
-
(i(!0),
|
|
1507
|
+
(i(!0), a(g, null, N(e.barSet, (l, c) => (i(), a("defs", {
|
|
1452
1508
|
key: `def_rect_${c}`
|
|
1453
1509
|
}, [
|
|
1454
1510
|
f("linearGradient", {
|
|
1455
|
-
id: `rectGradient_pos_${c}_${
|
|
1511
|
+
id: `rectGradient_pos_${c}_${r.uniqueId}`,
|
|
1456
1512
|
x2: "0%",
|
|
1457
1513
|
y2: "100%"
|
|
1458
1514
|
}, [
|
|
1459
1515
|
f("stop", {
|
|
1460
1516
|
offset: "0%",
|
|
1461
|
-
"stop-color":
|
|
1517
|
+
"stop-color": l.color
|
|
1462
1518
|
}, null, 8, gt),
|
|
1463
1519
|
f("stop", {
|
|
1464
1520
|
offset: "62%",
|
|
1465
|
-
"stop-color": `${e.shiftHue(
|
|
1521
|
+
"stop-color": `${e.shiftHue(l.color, 0.02)}`
|
|
1466
1522
|
}, null, 8, ft),
|
|
1467
1523
|
f("stop", {
|
|
1468
1524
|
offset: "100%",
|
|
1469
|
-
"stop-color": `${e.shiftHue(
|
|
1525
|
+
"stop-color": `${e.shiftHue(l.color, 0.05)}`
|
|
1470
1526
|
}, null, 8, It)
|
|
1471
1527
|
], 8, dt),
|
|
1472
1528
|
f("linearGradient", {
|
|
1473
|
-
id: `rectGradient_neg_${c}_${
|
|
1529
|
+
id: `rectGradient_neg_${c}_${r.uniqueId}`,
|
|
1474
1530
|
x2: "0%",
|
|
1475
1531
|
y2: "100%"
|
|
1476
1532
|
}, [
|
|
1477
1533
|
f("stop", {
|
|
1478
1534
|
offset: "0%",
|
|
1479
|
-
"stop-color": `${e.shiftHue(
|
|
1480
|
-
}, null, 8,
|
|
1535
|
+
"stop-color": `${e.shiftHue(l.color, 0.05)}`
|
|
1536
|
+
}, null, 8, xt),
|
|
1481
1537
|
f("stop", {
|
|
1482
1538
|
offset: "38%",
|
|
1483
|
-
"stop-color": `${e.shiftHue(
|
|
1484
|
-
}, null, 8,
|
|
1539
|
+
"stop-color": `${e.shiftHue(l.color, 0.02)}`
|
|
1540
|
+
}, null, 8, mt),
|
|
1485
1541
|
f("stop", {
|
|
1486
1542
|
offset: "100%",
|
|
1487
|
-
"stop-color":
|
|
1543
|
+
"stop-color": l.color
|
|
1488
1544
|
}, null, 8, bt)
|
|
1489
1545
|
], 8, Nt)
|
|
1490
1546
|
]))), 128)),
|
|
1491
|
-
(i(!0),
|
|
1547
|
+
(i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a("defs", {
|
|
1492
1548
|
key: `def_plot_${c}`
|
|
1493
1549
|
}, [
|
|
1494
1550
|
f("radialGradient", {
|
|
1495
|
-
id: `plotGradient_${c}_${
|
|
1551
|
+
id: `plotGradient_${c}_${r.uniqueId}`,
|
|
1496
1552
|
cx: "50%",
|
|
1497
1553
|
cy: "50%",
|
|
1498
1554
|
r: "50%",
|
|
@@ -1501,19 +1557,19 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1501
1557
|
}, [
|
|
1502
1558
|
f("stop", {
|
|
1503
1559
|
offset: "0%",
|
|
1504
|
-
"stop-color": `${e.shiftHue(
|
|
1560
|
+
"stop-color": `${e.shiftHue(l.color, 0.05)}`
|
|
1505
1561
|
}, null, 8, _t),
|
|
1506
1562
|
f("stop", {
|
|
1507
1563
|
offset: "100%",
|
|
1508
|
-
"stop-color":
|
|
1509
|
-
}, null, 8,
|
|
1564
|
+
"stop-color": l.color
|
|
1565
|
+
}, null, 8, yt)
|
|
1510
1566
|
], 8, Ft)
|
|
1511
1567
|
]))), 128)),
|
|
1512
|
-
(i(!0),
|
|
1568
|
+
(i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a("defs", {
|
|
1513
1569
|
key: `def_line_${c}`
|
|
1514
1570
|
}, [
|
|
1515
1571
|
f("radialGradient", {
|
|
1516
|
-
id: `lineGradient_${c}_${
|
|
1572
|
+
id: `lineGradient_${c}_${r.uniqueId}`,
|
|
1517
1573
|
cx: "50%",
|
|
1518
1574
|
cy: "50%",
|
|
1519
1575
|
r: "50%",
|
|
@@ -1522,15 +1578,15 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1522
1578
|
}, [
|
|
1523
1579
|
f("stop", {
|
|
1524
1580
|
offset: "0%",
|
|
1525
|
-
"stop-color": `${e.shiftHue(
|
|
1581
|
+
"stop-color": `${e.shiftHue(l.color, 0.05)}`
|
|
1526
1582
|
}, null, 8, Lt),
|
|
1527
1583
|
f("stop", {
|
|
1528
1584
|
offset: "100%",
|
|
1529
|
-
"stop-color":
|
|
1585
|
+
"stop-color": l.color
|
|
1530
1586
|
}, null, 8, Ct)
|
|
1531
|
-
], 8,
|
|
1587
|
+
], 8, At),
|
|
1532
1588
|
f("linearGradient", {
|
|
1533
|
-
id: `areaGradient_${c}_${
|
|
1589
|
+
id: `areaGradient_${c}_${r.uniqueId}`,
|
|
1534
1590
|
x1: "0%",
|
|
1535
1591
|
x2: "100%",
|
|
1536
1592
|
y1: "0%",
|
|
@@ -1538,46 +1594,46 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1538
1594
|
}, [
|
|
1539
1595
|
f("stop", {
|
|
1540
1596
|
offset: "0%",
|
|
1541
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1597
|
+
"stop-color": `${e.setOpacity(e.shiftHue(l.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1542
1598
|
}, null, 8, kt),
|
|
1543
1599
|
f("stop", {
|
|
1544
1600
|
offset: "100%",
|
|
1545
|
-
"stop-color": `${e.setOpacity(
|
|
1601
|
+
"stop-color": `${e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1546
1602
|
}, null, 8, wt)
|
|
1547
1603
|
], 8, St)
|
|
1548
1604
|
]))), 128)),
|
|
1549
|
-
(i(!0),
|
|
1550
|
-
|
|
1605
|
+
(i(!0), a(g, null, N(e.highlightAreas, (l) => (i(), a("g", null, [
|
|
1606
|
+
l.show ? (i(!0), a(g, { key: 0 }, N(l.span, (c, n) => (i(), a("g", null, [
|
|
1551
1607
|
f("rect", {
|
|
1552
|
-
style:
|
|
1608
|
+
style: y({
|
|
1553
1609
|
transition: "none",
|
|
1554
|
-
opacity:
|
|
1610
|
+
opacity: l.from + n >= r.slicer.start && l.from + n <= r.slicer.end - 1 ? 1 : 0
|
|
1555
1611
|
}),
|
|
1556
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1612
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (l.from + n - r.slicer.start),
|
|
1557
1613
|
y: e.drawingArea.top,
|
|
1558
1614
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1559
1615
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1560
|
-
fill: e.setOpacity(
|
|
1616
|
+
fill: e.setOpacity(l.color, l.opacity)
|
|
1561
1617
|
}, null, 12, Ot),
|
|
1562
|
-
|
|
1618
|
+
l.caption.text && n === 0 ? (i(), a("foreignObject", {
|
|
1563
1619
|
key: 0,
|
|
1564
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1565
|
-
y: e.drawingArea.top +
|
|
1566
|
-
style:
|
|
1620
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (l.from + n - r.slicer.start) - (l.caption.width === "auto" ? 0 : l.caption.width / 2 - e.drawingArea.width / e.maxSeries * l.span / 2),
|
|
1621
|
+
y: e.drawingArea.top + l.caption.offsetY,
|
|
1622
|
+
style: y({
|
|
1567
1623
|
overflow: "visible",
|
|
1568
|
-
opacity:
|
|
1624
|
+
opacity: l.to >= r.slicer.start && l.from < r.slicer.end ? 1 : 0
|
|
1569
1625
|
}),
|
|
1570
1626
|
height: "1",
|
|
1571
|
-
width:
|
|
1627
|
+
width: l.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * l.span : l.caption.width
|
|
1572
1628
|
}, [
|
|
1573
1629
|
f("div", {
|
|
1574
|
-
style:
|
|
1575
|
-
}, T(
|
|
1576
|
-
], 12, Gt)) :
|
|
1577
|
-
]))), 256)) :
|
|
1630
|
+
style: y(`padding:${l.caption.padding}px;text-align:${l.caption.textAlign};font-size:${l.caption.fontSize}px;color:${l.caption.color};font-weight:${l.caption.bold ? "bold" : "normal"}`)
|
|
1631
|
+
}, T(l.caption.text), 5)
|
|
1632
|
+
], 12, Gt)) : u("", !0)
|
|
1633
|
+
]))), 256)) : u("", !0)
|
|
1578
1634
|
]))), 256)),
|
|
1579
1635
|
f("g", null, [
|
|
1580
|
-
(i(!0),
|
|
1636
|
+
(i(!0), a(g, null, N(e.maxSeries, (l, c) => (i(), a("g", {
|
|
1581
1637
|
key: `tooltip_trap_highlighter_${c}`
|
|
1582
1638
|
}, [
|
|
1583
1639
|
f("rect", {
|
|
@@ -1585,54 +1641,54 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1585
1641
|
y: e.drawingArea.top,
|
|
1586
1642
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1587
1643
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1588
|
-
fill: [
|
|
1644
|
+
fill: [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(c) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1589
1645
|
}, null, 8, vt)
|
|
1590
1646
|
]))), 128))
|
|
1591
1647
|
]),
|
|
1592
|
-
e.barSet.length ? (i(!0),
|
|
1648
|
+
e.barSet.length ? (i(!0), a(g, { key: 0 }, N(e.barSet, (l, c) => (i(), a("g", {
|
|
1593
1649
|
key: `serie_bar_${c}`,
|
|
1594
|
-
class:
|
|
1595
|
-
style:
|
|
1650
|
+
class: E(`serie_bar_${c}`),
|
|
1651
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1596
1652
|
}, [
|
|
1597
|
-
(i(!0),
|
|
1653
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a("g", {
|
|
1598
1654
|
key: `bar_plot_${c}_${h}`
|
|
1599
1655
|
}, [
|
|
1600
|
-
e.canShowValue(n.value) ? (i(),
|
|
1656
|
+
e.canShowValue(n.value) ? (i(), a("rect", {
|
|
1601
1657
|
key: 0,
|
|
1602
1658
|
x: e.calcRectX(n),
|
|
1603
|
-
y:
|
|
1604
|
-
height:
|
|
1605
|
-
width: e.calcRectWidth() - (
|
|
1659
|
+
y: r.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1660
|
+
height: r.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1661
|
+
width: e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1606
1662
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1607
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${
|
|
1608
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1663
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${r.uniqueId})` : `url(#rectGradient_neg_${c}_${r.uniqueId})` : l.color,
|
|
1664
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? l.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1609
1665
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1610
|
-
}, null, 8, pt)) :
|
|
1611
|
-
e.canShowValue(n.value) && t.$slots.pattern ? (i(),
|
|
1666
|
+
}, null, 8, pt)) : u("", !0),
|
|
1667
|
+
e.canShowValue(n.value) && t.$slots.pattern ? (i(), a("rect", {
|
|
1612
1668
|
key: 1,
|
|
1613
1669
|
x: e.calcRectX(n),
|
|
1614
|
-
y:
|
|
1615
|
-
height:
|
|
1616
|
-
width: e.calcRectWidth() - (
|
|
1670
|
+
y: r.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1671
|
+
height: r.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1672
|
+
width: e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1617
1673
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1618
|
-
fill: `url(#pattern_${
|
|
1619
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1674
|
+
fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`,
|
|
1675
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? l.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1620
1676
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1621
|
-
}, null, 8, Mt)) :
|
|
1622
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(),
|
|
1677
|
+
}, null, 8, Mt)) : u("", !0),
|
|
1678
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), a("foreignObject", {
|
|
1623
1679
|
key: 2,
|
|
1624
1680
|
style: { overflow: "visible" },
|
|
1625
1681
|
height: "12",
|
|
1626
|
-
width: (e.calcRectWidth() - (
|
|
1682
|
+
width: (e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap) / 2) + e.FINAL_CONFIG.chart.comments.width,
|
|
1627
1683
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1628
1684
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1629
1685
|
}, [
|
|
1630
|
-
|
|
1631
|
-
plot: { ...n, color:
|
|
1686
|
+
G(t.$slots, "plot-comment", {
|
|
1687
|
+
plot: { ...n, color: l.color, seriesIndex: c, datapointIndex: h }
|
|
1632
1688
|
}, void 0, !0)
|
|
1633
|
-
], 8, zt)) :
|
|
1689
|
+
], 8, zt)) : u("", !0)
|
|
1634
1690
|
]))), 128)),
|
|
1635
|
-
Object.hasOwn(
|
|
1691
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (i(), a("g", Tt, [
|
|
1636
1692
|
f("defs", null, [
|
|
1637
1693
|
f("marker", {
|
|
1638
1694
|
id: `bar_arrow_${c}`,
|
|
@@ -1644,36 +1700,36 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1644
1700
|
}, [
|
|
1645
1701
|
f("polygon", {
|
|
1646
1702
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1647
|
-
fill:
|
|
1703
|
+
fill: l.color
|
|
1648
1704
|
}, null, 8, Vt)
|
|
1649
1705
|
], 8, Pt)
|
|
1650
1706
|
]),
|
|
1651
|
-
|
|
1707
|
+
l.plots.length > 1 ? (i(), a("line", {
|
|
1652
1708
|
key: 0,
|
|
1653
|
-
x1: e.calcLinearProgression(
|
|
1654
|
-
x2: e.calcLinearProgression(
|
|
1655
|
-
y1: e.forceValidValue(e.calcLinearProgression(
|
|
1656
|
-
y2: e.forceValidValue(e.calcLinearProgression(
|
|
1709
|
+
x1: e.calcLinearProgression(l.plots).x1 + e.calcRectWidth(),
|
|
1710
|
+
x2: e.calcLinearProgression(l.plots).x2 + e.calcRectWidth(),
|
|
1711
|
+
y1: e.forceValidValue(e.calcLinearProgression(l.plots).y1),
|
|
1712
|
+
y2: e.forceValidValue(e.calcLinearProgression(l.plots).y2),
|
|
1657
1713
|
"stroke-width": 1,
|
|
1658
|
-
stroke:
|
|
1714
|
+
stroke: l.color,
|
|
1659
1715
|
"stroke-dasharray": 2,
|
|
1660
1716
|
"marker-end": `url(#bar_arrow_${c})`
|
|
1661
|
-
}, null, 8, Rt)) :
|
|
1662
|
-
|
|
1717
|
+
}, null, 8, Rt)) : u("", !0),
|
|
1718
|
+
l.plots.length > 1 ? (i(), a("text", {
|
|
1663
1719
|
key: 1,
|
|
1664
1720
|
"text-anchor": "middle",
|
|
1665
|
-
x: e.calcLinearProgression(
|
|
1666
|
-
y: e.calcLinearProgression(
|
|
1667
|
-
"font-size":
|
|
1668
|
-
fill:
|
|
1721
|
+
x: e.calcLinearProgression(l.plots).x2 + e.calcRectWidth(),
|
|
1722
|
+
y: e.calcLinearProgression(l.plots).y2 - 6,
|
|
1723
|
+
"font-size": r.fontSizes.plotLabels,
|
|
1724
|
+
fill: l.color
|
|
1669
1725
|
}, T(e.dataLabel({
|
|
1670
|
-
v: e.calcLinearProgression(
|
|
1726
|
+
v: e.calcLinearProgression(l.plots).trend * 100,
|
|
1671
1727
|
s: "%",
|
|
1672
1728
|
r: 2
|
|
1673
|
-
})), 9, Ht)) :
|
|
1674
|
-
])) :
|
|
1675
|
-
], 6))), 128)) :
|
|
1676
|
-
!
|
|
1729
|
+
})), 9, Ht)) : u("", !0)
|
|
1730
|
+
])) : u("", !0)
|
|
1731
|
+
], 6))), 128)) : u("", !0),
|
|
1732
|
+
!r.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (i(), a("line", {
|
|
1677
1733
|
key: 1,
|
|
1678
1734
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1679
1735
|
"stroke-width": "1",
|
|
@@ -1682,11 +1738,11 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1682
1738
|
y1: e.forceValidValue(e.zero),
|
|
1683
1739
|
y2: e.forceValidValue(e.zero),
|
|
1684
1740
|
"stroke-linecap": "round"
|
|
1685
|
-
}, null, 8, Dt)) :
|
|
1686
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(
|
|
1741
|
+
}, null, 8, Dt)) : u("", !0),
|
|
1742
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (i(), a("g", Bt, [
|
|
1687
1743
|
f("line", {
|
|
1688
|
-
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((
|
|
1689
|
-
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((
|
|
1744
|
+
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1745
|
+
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1690
1746
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
1691
1747
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1692
1748
|
stroke: e.FINAL_CONFIG.chart.highlighter.color,
|
|
@@ -1694,9 +1750,9 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1694
1750
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1695
1751
|
"stroke-linecap": "round",
|
|
1696
1752
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1697
|
-
}, null, 8,
|
|
1698
|
-
])) :
|
|
1699
|
-
e.FINAL_CONFIG.chart.grid.frame.show ? (i(),
|
|
1753
|
+
}, null, 8, Wt)
|
|
1754
|
+
])) : u("", !0),
|
|
1755
|
+
e.FINAL_CONFIG.chart.grid.frame.show ? (i(), a("rect", {
|
|
1700
1756
|
key: 3,
|
|
1701
1757
|
style: { pointerEvents: "none", transition: "none" },
|
|
1702
1758
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
@@ -1709,45 +1765,45 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1709
1765
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1710
1766
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1711
1767
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1712
|
-
}, null, 8,
|
|
1713
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (i(),
|
|
1714
|
-
|
|
1715
|
-
(i(!0),
|
|
1768
|
+
}, null, 8, Et)) : u("", !0),
|
|
1769
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (i(), a("g", Yt, [
|
|
1770
|
+
r.mutableConfig.useIndividualScale ? (i(), a(g, { key: 0 }, [
|
|
1771
|
+
(i(!0), a(g, null, N(e.allScales, (l) => (i(), a("g", null, [
|
|
1716
1772
|
f("line", {
|
|
1717
|
-
x1:
|
|
1718
|
-
x2:
|
|
1719
|
-
y1:
|
|
1720
|
-
y2:
|
|
1721
|
-
stroke:
|
|
1773
|
+
x1: l.x + e.xPadding,
|
|
1774
|
+
x2: l.x + e.xPadding,
|
|
1775
|
+
y1: r.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - l.yOffset - l.individualHeight) : e.forceValidValue(e.drawingArea.top),
|
|
1776
|
+
y2: r.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - l.yOffset) : e.forceValidValue(e.drawingArea.bottom),
|
|
1777
|
+
stroke: l.color,
|
|
1722
1778
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1723
1779
|
"stroke-linecap": "round",
|
|
1724
|
-
style:
|
|
1780
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1725
1781
|
}, null, 12, qt)
|
|
1726
1782
|
]))), 256)),
|
|
1727
|
-
(i(!0),
|
|
1728
|
-
style:
|
|
1783
|
+
(i(!0), a(g, null, N(e.allScales, (l) => (i(), a("g", {
|
|
1784
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1729
1785
|
}, [
|
|
1730
1786
|
f("text", {
|
|
1731
|
-
fill:
|
|
1732
|
-
"font-size":
|
|
1787
|
+
fill: l.color,
|
|
1788
|
+
"font-size": r.fontSizes.dataLabels,
|
|
1733
1789
|
"text-anchor": "middle",
|
|
1734
|
-
transform: `translate(${
|
|
1735
|
-
}, T(
|
|
1736
|
-
(i(!0),
|
|
1737
|
-
x1:
|
|
1738
|
-
x2:
|
|
1790
|
+
transform: `translate(${l.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${r.mutableConfig.isStacked ? e.drawingArea.bottom - l.yOffset - l.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1791
|
+
}, T(l.name) + " " + T(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `- ${l.scaleLabel}` : ""), 9, Xt),
|
|
1792
|
+
(i(!0), a(g, null, N(l.yLabels, (c, n) => (i(), a("line", {
|
|
1793
|
+
x1: l.x - 3 + e.xPadding,
|
|
1794
|
+
x2: l.x + e.xPadding,
|
|
1739
1795
|
y1: e.forceValidValue(c.y),
|
|
1740
1796
|
y2: e.forceValidValue(c.y),
|
|
1741
|
-
stroke:
|
|
1797
|
+
stroke: l.color,
|
|
1742
1798
|
"stroke-width": 1,
|
|
1743
1799
|
"stroke-linecap": "round"
|
|
1744
1800
|
}, null, 8, Ut))), 256)),
|
|
1745
|
-
(i(!0),
|
|
1746
|
-
x:
|
|
1747
|
-
y: e.forceValidValue(c.y) +
|
|
1748
|
-
"font-size":
|
|
1801
|
+
(i(!0), a(g, null, N(l.yLabels, (c, n) => (i(), a("text", {
|
|
1802
|
+
x: l.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
1803
|
+
y: e.forceValidValue(c.y) + r.fontSizes.dataLabels / 3,
|
|
1804
|
+
"font-size": r.fontSizes.dataLabels,
|
|
1749
1805
|
"text-anchor": "end",
|
|
1750
|
-
fill:
|
|
1806
|
+
fill: l.color
|
|
1751
1807
|
}, T(e.applyDataLabel(
|
|
1752
1808
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1753
1809
|
c.value,
|
|
@@ -1760,56 +1816,56 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1760
1816
|
{ datapoint: c.datapoint, seriesIndex: n }
|
|
1761
1817
|
)), 9, Zt))), 256))
|
|
1762
1818
|
], 4))), 256))
|
|
1763
|
-
], 64)) : (i(!0),
|
|
1819
|
+
], 64)) : (i(!0), a(g, { key: 1 }, N(e.yLabels, (l, c) => (i(), a("g", {
|
|
1764
1820
|
key: `yLabel_${c}`
|
|
1765
1821
|
}, [
|
|
1766
|
-
e.canShowValue(
|
|
1822
|
+
e.canShowValue(l) && l.value >= e.niceScale.min && l.value <= e.niceScale.max ? (i(), a("line", {
|
|
1767
1823
|
key: 0,
|
|
1768
1824
|
x1: e.drawingArea.left + e.xPadding,
|
|
1769
1825
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1770
|
-
y1: e.forceValidValue(
|
|
1771
|
-
y2: e.forceValidValue(
|
|
1826
|
+
y1: e.forceValidValue(l.y),
|
|
1827
|
+
y2: e.forceValidValue(l.y),
|
|
1772
1828
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1773
1829
|
"stroke-width": "1",
|
|
1774
1830
|
"stroke-linecap": "round"
|
|
1775
|
-
}, null, 8, Jt)) :
|
|
1776
|
-
|
|
1831
|
+
}, null, 8, Jt)) : u("", !0),
|
|
1832
|
+
l.value >= e.niceScale.min && l.value <= e.niceScale.max ? (i(), a("text", {
|
|
1777
1833
|
key: 1,
|
|
1778
1834
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1779
|
-
y: e.checkNaN(
|
|
1780
|
-
"font-size":
|
|
1835
|
+
y: e.checkNaN(l.y + r.fontSizes.dataLabels / 3),
|
|
1836
|
+
"font-size": r.fontSizes.dataLabels,
|
|
1781
1837
|
"text-anchor": "end",
|
|
1782
1838
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1783
|
-
}, T(e.canShowValue(
|
|
1839
|
+
}, T(e.canShowValue(l.value) ? e.applyDataLabel(
|
|
1784
1840
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1785
|
-
|
|
1841
|
+
l.value,
|
|
1786
1842
|
e.dataLabel({
|
|
1787
|
-
p:
|
|
1788
|
-
v:
|
|
1789
|
-
s:
|
|
1843
|
+
p: l.prefix,
|
|
1844
|
+
v: l.value,
|
|
1845
|
+
s: l.suffix,
|
|
1790
1846
|
r: 1
|
|
1791
1847
|
})
|
|
1792
|
-
) : ""), 9, Kt)) :
|
|
1848
|
+
) : ""), 9, Kt)) : u("", !0)
|
|
1793
1849
|
]))), 128))
|
|
1794
|
-
])) :
|
|
1795
|
-
(i(!0),
|
|
1850
|
+
])) : u("", !0),
|
|
1851
|
+
(i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a("g", {
|
|
1796
1852
|
key: `serie_plot_${c}`,
|
|
1797
|
-
class:
|
|
1798
|
-
style:
|
|
1853
|
+
class: E(`serie_plot_${c}`),
|
|
1854
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1799
1855
|
}, [
|
|
1800
|
-
(i(!0),
|
|
1856
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a("g", {
|
|
1801
1857
|
key: `circle_plot_${c}_${h}`
|
|
1802
1858
|
}, [
|
|
1803
|
-
n && e.canShowValue(n.value) ? (i(),
|
|
1859
|
+
n && e.canShowValue(n.value) ? (i(), B(v, {
|
|
1804
1860
|
key: 0,
|
|
1805
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1806
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${
|
|
1861
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
1862
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${r.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? l.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1807
1863
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1808
|
-
radius:
|
|
1809
|
-
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1864
|
+
radius: r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (r.plotRadii.plot || 6) * 1.5 : r.plotRadii.plot || 6,
|
|
1865
|
+
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : l.color,
|
|
1810
1866
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1811
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
1812
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(),
|
|
1867
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
1868
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), a("foreignObject", {
|
|
1813
1869
|
key: 1,
|
|
1814
1870
|
style: { overflow: "visible" },
|
|
1815
1871
|
height: "12",
|
|
@@ -1818,13 +1874,13 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1818
1874
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1819
1875
|
}, [
|
|
1820
1876
|
f("div", jt, [
|
|
1821
|
-
|
|
1822
|
-
plot: { ...n, color:
|
|
1877
|
+
G(t.$slots, "plot-comment", {
|
|
1878
|
+
plot: { ...n, color: l.color, seriesIndex: c, datapointIndex: h }
|
|
1823
1879
|
}, void 0, !0)
|
|
1824
1880
|
])
|
|
1825
|
-
], 8, Qt)) :
|
|
1881
|
+
], 8, Qt)) : u("", !0)
|
|
1826
1882
|
]))), 128)),
|
|
1827
|
-
Object.hasOwn(
|
|
1883
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (i(), a("g", $t, [
|
|
1828
1884
|
f("defs", null, [
|
|
1829
1885
|
f("marker", {
|
|
1830
1886
|
id: `plot_arrow_${c}`,
|
|
@@ -1836,122 +1892,122 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1836
1892
|
}, [
|
|
1837
1893
|
f("polygon", {
|
|
1838
1894
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1839
|
-
fill:
|
|
1895
|
+
fill: l.color
|
|
1840
1896
|
}, null, 8, tl)
|
|
1841
1897
|
], 8, el)
|
|
1842
1898
|
]),
|
|
1843
|
-
|
|
1899
|
+
l.plots.length > 1 ? (i(), a("line", {
|
|
1844
1900
|
key: 0,
|
|
1845
|
-
x1: e.calcLinearProgression(
|
|
1846
|
-
x2: e.calcLinearProgression(
|
|
1847
|
-
y1: e.forceValidValue(e.calcLinearProgression(
|
|
1848
|
-
y2: e.forceValidValue(e.calcLinearProgression(
|
|
1901
|
+
x1: e.calcLinearProgression(l.plots).x1,
|
|
1902
|
+
x2: e.calcLinearProgression(l.plots).x2,
|
|
1903
|
+
y1: e.forceValidValue(e.calcLinearProgression(l.plots).y1),
|
|
1904
|
+
y2: e.forceValidValue(e.calcLinearProgression(l.plots).y2),
|
|
1849
1905
|
"stroke-width": 1,
|
|
1850
|
-
stroke:
|
|
1906
|
+
stroke: l.color,
|
|
1851
1907
|
"stroke-dasharray": 2,
|
|
1852
1908
|
"marker-end": `url(#plot_arrow_${c})`
|
|
1853
|
-
}, null, 8, ll)) :
|
|
1854
|
-
|
|
1909
|
+
}, null, 8, ll)) : u("", !0),
|
|
1910
|
+
l.plots.length > 1 ? (i(), a("text", {
|
|
1855
1911
|
key: 1,
|
|
1856
1912
|
"text-anchor": "middle",
|
|
1857
|
-
x: e.calcLinearProgression(
|
|
1858
|
-
y: e.calcLinearProgression(
|
|
1859
|
-
"font-size":
|
|
1860
|
-
fill:
|
|
1913
|
+
x: e.calcLinearProgression(l.plots).x2,
|
|
1914
|
+
y: e.calcLinearProgression(l.plots).y2 - 6,
|
|
1915
|
+
"font-size": r.fontSizes.plotLabels,
|
|
1916
|
+
fill: l.color
|
|
1861
1917
|
}, T(e.dataLabel({
|
|
1862
|
-
v: e.calcLinearProgression(
|
|
1918
|
+
v: e.calcLinearProgression(l.plots).trend * 100,
|
|
1863
1919
|
s: "%",
|
|
1864
1920
|
r: 2
|
|
1865
|
-
})), 9,
|
|
1866
|
-
])) :
|
|
1921
|
+
})), 9, rl)) : u("", !0)
|
|
1922
|
+
])) : u("", !0)
|
|
1867
1923
|
], 6))), 128)),
|
|
1868
|
-
(i(!0),
|
|
1924
|
+
(i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a("g", {
|
|
1869
1925
|
key: `serie_line_${c}`,
|
|
1870
|
-
class:
|
|
1871
|
-
style:
|
|
1926
|
+
class: E(`serie_line_${c}`),
|
|
1927
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1872
1928
|
}, [
|
|
1873
|
-
|
|
1929
|
+
l.smooth && l.plots.length > 1 ? (i(), a("path", {
|
|
1874
1930
|
key: 0,
|
|
1875
|
-
d: `M${
|
|
1931
|
+
d: `M${l.curve}`,
|
|
1876
1932
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1877
1933
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1878
|
-
"stroke-dasharray":
|
|
1934
|
+
"stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1879
1935
|
fill: "none"
|
|
1880
|
-
}, null, 8, il)) :
|
|
1936
|
+
}, null, 8, il)) : l.plots.length > 1 ? (i(), a("path", {
|
|
1881
1937
|
key: 1,
|
|
1882
|
-
d: `M${
|
|
1938
|
+
d: `M${l.straight}`,
|
|
1883
1939
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1884
1940
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1885
|
-
"stroke-dasharray":
|
|
1941
|
+
"stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1886
1942
|
fill: "none",
|
|
1887
1943
|
"stroke-linecap": "round",
|
|
1888
1944
|
"stroke-linejoin": "round"
|
|
1889
|
-
}, null, 8,
|
|
1945
|
+
}, null, 8, al)) : u("", !0)
|
|
1890
1946
|
], 6))), 128)),
|
|
1891
|
-
t.$slots.pattern ? (i(),
|
|
1892
|
-
(i(!0),
|
|
1947
|
+
t.$slots.pattern ? (i(), a("defs", sl, [
|
|
1948
|
+
(i(!0), a(g, null, N(e.safeDataset, (l, c) => G(t.$slots, "pattern", K({
|
|
1893
1949
|
key: `serie_pattern_slot_${c}`
|
|
1894
|
-
}, { ref_for: !0 }, { ...
|
|
1895
|
-
])) :
|
|
1896
|
-
(i(!0),
|
|
1950
|
+
}, { ref_for: !0 }, { ...l, seriesIndex: l.slotAbsoluteIndex, patternId: `pattern_${r.uniqueId}_${c}` }), void 0, !0)), 128))
|
|
1951
|
+
])) : u("", !0),
|
|
1952
|
+
(i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a("g", {
|
|
1897
1953
|
key: `serie_line_${c}`,
|
|
1898
|
-
class:
|
|
1899
|
-
style:
|
|
1954
|
+
class: E(`serie_line_${c}`),
|
|
1955
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1900
1956
|
}, [
|
|
1901
|
-
|
|
1902
|
-
|
|
1957
|
+
l.useArea && l.plots.length > 1 ? (i(), a("g", nl, [
|
|
1958
|
+
l.smooth ? (i(!0), a(g, { key: 0 }, N(l.curveAreas, (n, h) => (i(), a(g, { key: h }, [
|
|
1903
1959
|
f("path", {
|
|
1904
1960
|
d: n,
|
|
1905
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${
|
|
1961
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${r.uniqueId})` : e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1906
1962
|
}, null, 8, cl),
|
|
1907
|
-
t.$slots.pattern ? (i(),
|
|
1963
|
+
t.$slots.pattern ? (i(), a("path", {
|
|
1908
1964
|
key: 0,
|
|
1909
1965
|
d: n,
|
|
1910
|
-
fill: `url(#pattern_${
|
|
1911
|
-
}, null, 8, ol)) :
|
|
1912
|
-
], 64))), 128)) : (i(!0),
|
|
1966
|
+
fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`
|
|
1967
|
+
}, null, 8, ol)) : u("", !0)
|
|
1968
|
+
], 64))), 128)) : (i(!0), a(g, { key: 1 }, N(l.area.split(";"), (n, h) => (i(), a(g, { key: h }, [
|
|
1913
1969
|
f("path", {
|
|
1914
1970
|
d: `M${n}Z`,
|
|
1915
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${
|
|
1971
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${r.uniqueId})` : e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1916
1972
|
}, null, 8, hl),
|
|
1917
|
-
t.$slots.pattern ? (i(),
|
|
1973
|
+
t.$slots.pattern ? (i(), a("path", {
|
|
1918
1974
|
key: 0,
|
|
1919
1975
|
d: `M${n}Z`,
|
|
1920
|
-
fill: `url(#pattern_${
|
|
1921
|
-
}, null, 8, ul)) :
|
|
1976
|
+
fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`
|
|
1977
|
+
}, null, 8, ul)) : u("", !0)
|
|
1922
1978
|
], 64))), 128))
|
|
1923
|
-
])) :
|
|
1924
|
-
|
|
1979
|
+
])) : u("", !0),
|
|
1980
|
+
l.smooth && l.plots.length > 1 ? (i(), a("path", {
|
|
1925
1981
|
key: 1,
|
|
1926
|
-
d: `M${
|
|
1927
|
-
stroke:
|
|
1982
|
+
d: `M${l.curve}`,
|
|
1983
|
+
stroke: l.color,
|
|
1928
1984
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1929
|
-
"stroke-dasharray":
|
|
1985
|
+
"stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1930
1986
|
fill: "none",
|
|
1931
1987
|
"stroke-linecap": "round"
|
|
1932
|
-
}, null, 8, dl)) :
|
|
1988
|
+
}, null, 8, dl)) : l.plots.length > 1 ? (i(), a("path", {
|
|
1933
1989
|
key: 2,
|
|
1934
|
-
d: `M${
|
|
1935
|
-
stroke:
|
|
1990
|
+
d: `M${l.straight}`,
|
|
1991
|
+
stroke: l.color,
|
|
1936
1992
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1937
|
-
"stroke-dasharray":
|
|
1993
|
+
"stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1938
1994
|
fill: "none",
|
|
1939
1995
|
"stroke-linecap": "round",
|
|
1940
1996
|
"stroke-linejoin": "round"
|
|
1941
|
-
}, null, 8, gl)) :
|
|
1942
|
-
(i(!0),
|
|
1997
|
+
}, null, 8, gl)) : u("", !0),
|
|
1998
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
1943
1999
|
key: `circle_line_${c}_${h}`
|
|
1944
2000
|
}, [
|
|
1945
|
-
!e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (
|
|
2001
|
+
!e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h) ? (i(), B(v, {
|
|
1946
2002
|
key: 0,
|
|
1947
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1948
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${
|
|
2003
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
2004
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${r.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? l.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1949
2005
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1950
|
-
radius:
|
|
1951
|
-
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
2006
|
+
radius: r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (r.plotRadii.line || 6) * 1.5 : r.plotRadii.line || 6,
|
|
2007
|
+
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : l.color,
|
|
1952
2008
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1953
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
1954
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(),
|
|
2009
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
2010
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), a("foreignObject", {
|
|
1955
2011
|
key: 1,
|
|
1956
2012
|
style: { overflow: "visible" },
|
|
1957
2013
|
height: "12",
|
|
@@ -1960,13 +2016,13 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1960
2016
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1961
2017
|
}, [
|
|
1962
2018
|
f("div", Il, [
|
|
1963
|
-
|
|
1964
|
-
plot: { ...n, color:
|
|
2019
|
+
G(t.$slots, "plot-comment", {
|
|
2020
|
+
plot: { ...n, color: l.color, seriesIndex: c, datapointIndex: h }
|
|
1965
2021
|
}, void 0, !0)
|
|
1966
2022
|
])
|
|
1967
|
-
], 8, fl)) :
|
|
2023
|
+
], 8, fl)) : u("", !0)
|
|
1968
2024
|
], 64))), 128)),
|
|
1969
|
-
Object.hasOwn(
|
|
2025
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (i(), a("g", Nl, [
|
|
1970
2026
|
f("defs", null, [
|
|
1971
2027
|
f("marker", {
|
|
1972
2028
|
id: `line_arrow_${c}`,
|
|
@@ -1978,117 +2034,117 @@ function Sa(t, s, o, d, l, e) {
|
|
|
1978
2034
|
}, [
|
|
1979
2035
|
f("polygon", {
|
|
1980
2036
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1981
|
-
fill:
|
|
1982
|
-
}, null, 8,
|
|
1983
|
-
], 8,
|
|
2037
|
+
fill: l.color
|
|
2038
|
+
}, null, 8, ml)
|
|
2039
|
+
], 8, xl)
|
|
1984
2040
|
]),
|
|
1985
|
-
|
|
2041
|
+
l.plots.length > 1 ? (i(), a("line", {
|
|
1986
2042
|
key: 0,
|
|
1987
|
-
x1: e.calcLinearProgression(
|
|
1988
|
-
x2: e.calcLinearProgression(
|
|
1989
|
-
y1: e.forceValidValue(e.calcLinearProgression(
|
|
1990
|
-
y2: e.forceValidValue(e.calcLinearProgression(
|
|
2043
|
+
x1: e.calcLinearProgression(l.plots).x1,
|
|
2044
|
+
x2: e.calcLinearProgression(l.plots).x2,
|
|
2045
|
+
y1: e.forceValidValue(e.calcLinearProgression(l.plots).y1),
|
|
2046
|
+
y2: e.forceValidValue(e.calcLinearProgression(l.plots).y2),
|
|
1991
2047
|
"stroke-width": 1,
|
|
1992
|
-
stroke:
|
|
2048
|
+
stroke: l.color,
|
|
1993
2049
|
"stroke-dasharray": 2,
|
|
1994
2050
|
"marker-end": `url(#line_arrow_${c})`
|
|
1995
|
-
}, null, 8, bl)) :
|
|
1996
|
-
|
|
2051
|
+
}, null, 8, bl)) : u("", !0),
|
|
2052
|
+
l.plots.length > 1 ? (i(), a("text", {
|
|
1997
2053
|
key: 1,
|
|
1998
2054
|
"text-anchor": "middle",
|
|
1999
|
-
x: e.calcLinearProgression(
|
|
2000
|
-
y: e.calcLinearProgression(
|
|
2001
|
-
"font-size":
|
|
2002
|
-
fill:
|
|
2055
|
+
x: e.calcLinearProgression(l.plots).x2,
|
|
2056
|
+
y: e.calcLinearProgression(l.plots).y2 - 6,
|
|
2057
|
+
"font-size": r.fontSizes.plotLabels,
|
|
2058
|
+
fill: l.color
|
|
2003
2059
|
}, T(e.dataLabel({
|
|
2004
|
-
v: e.calcLinearProgression(
|
|
2060
|
+
v: e.calcLinearProgression(l.plots).trend * 100,
|
|
2005
2061
|
s: "%",
|
|
2006
2062
|
r: 2
|
|
2007
|
-
})), 9, Fl)) :
|
|
2008
|
-
])) :
|
|
2063
|
+
})), 9, Fl)) : u("", !0)
|
|
2064
|
+
])) : u("", !0)
|
|
2009
2065
|
], 6))), 128)),
|
|
2010
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) &&
|
|
2011
|
-
(i(!0),
|
|
2066
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && r.mutableConfig.dataLabels.show ? (i(), a("g", _l, [
|
|
2067
|
+
(i(!0), a(g, null, N(e.barSet, (l, c) => (i(), a(g, {
|
|
2012
2068
|
key: `xLabel_bar_${c}`
|
|
2013
2069
|
}, [
|
|
2014
|
-
(i(!0),
|
|
2070
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
2015
2071
|
key: `xLabel_bar_${c}_${h}`
|
|
2016
2072
|
}, [
|
|
2017
|
-
n && (!Object.hasOwn(
|
|
2073
|
+
n && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h) && e.FINAL_CONFIG.bar.labels.show ? (i(), a("text", {
|
|
2018
2074
|
key: 0,
|
|
2019
|
-
x:
|
|
2075
|
+
x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
2020
2076
|
y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
2021
2077
|
"text-anchor": "middle",
|
|
2022
|
-
"font-size":
|
|
2078
|
+
"font-size": r.fontSizes.plotLabels,
|
|
2023
2079
|
fill: e.FINAL_CONFIG.bar.labels.color,
|
|
2024
|
-
style:
|
|
2080
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2025
2081
|
}, T(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2026
2082
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
2027
2083
|
n.value,
|
|
2028
2084
|
e.dataLabel({
|
|
2029
|
-
p:
|
|
2085
|
+
p: l.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2030
2086
|
v: n.value,
|
|
2031
|
-
s:
|
|
2087
|
+
s: l.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2032
2088
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
2033
2089
|
}),
|
|
2034
2090
|
{
|
|
2035
2091
|
datapoint: n,
|
|
2036
|
-
serie:
|
|
2092
|
+
serie: l
|
|
2037
2093
|
}
|
|
2038
|
-
) : ""), 13,
|
|
2039
|
-
n && e.FINAL_CONFIG.bar.serieName.show ? (i(),
|
|
2094
|
+
) : ""), 13, yl)) : u("", !0),
|
|
2095
|
+
n && e.FINAL_CONFIG.bar.serieName.show ? (i(), a("text", {
|
|
2040
2096
|
key: 1,
|
|
2041
|
-
x:
|
|
2097
|
+
x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
2042
2098
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
2043
2099
|
"text-anchor": "middle",
|
|
2044
|
-
"font-size":
|
|
2045
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
2100
|
+
"font-size": r.fontSizes.plotLabels,
|
|
2101
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? l.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2046
2102
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2047
|
-
style:
|
|
2048
|
-
}, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source:
|
|
2103
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2104
|
+
}, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: l.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : l.name), 13, Al)) : u("", !0)
|
|
2049
2105
|
], 64))), 128))
|
|
2050
2106
|
], 64))), 128))
|
|
2051
|
-
])) :
|
|
2052
|
-
e.FINAL_CONFIG.plot.labels.show &&
|
|
2053
|
-
(i(!0),
|
|
2107
|
+
])) : u("", !0),
|
|
2108
|
+
e.FINAL_CONFIG.plot.labels.show && r.mutableConfig.dataLabels.show ? (i(), a("g", Ll, [
|
|
2109
|
+
(i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
|
|
2054
2110
|
key: `xLabel_plot_${c}`
|
|
2055
2111
|
}, [
|
|
2056
|
-
(i(!0),
|
|
2112
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
2057
2113
|
key: `xLabel_plot_${c}_${h}`
|
|
2058
2114
|
}, [
|
|
2059
|
-
n && !Object.hasOwn(
|
|
2115
|
+
n && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (i(), a("text", {
|
|
2060
2116
|
key: 0,
|
|
2061
2117
|
x: n.x,
|
|
2062
2118
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
2063
2119
|
"text-anchor": "middle",
|
|
2064
|
-
"font-size":
|
|
2120
|
+
"font-size": r.fontSizes.plotLabels,
|
|
2065
2121
|
fill: e.FINAL_CONFIG.plot.labels.color,
|
|
2066
|
-
style:
|
|
2122
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2067
2123
|
}, T(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2068
2124
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
2069
2125
|
n.value,
|
|
2070
2126
|
e.dataLabel({
|
|
2071
|
-
p:
|
|
2127
|
+
p: l.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2072
2128
|
v: n.value,
|
|
2073
|
-
s:
|
|
2129
|
+
s: l.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2074
2130
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
2075
2131
|
}),
|
|
2076
2132
|
{
|
|
2077
2133
|
datapoint: n,
|
|
2078
|
-
serie:
|
|
2134
|
+
serie: l
|
|
2079
2135
|
}
|
|
2080
|
-
) : ""), 13, Cl)) :
|
|
2136
|
+
) : ""), 13, Cl)) : u("", !0)
|
|
2081
2137
|
], 64))), 128))
|
|
2082
2138
|
], 64))), 128))
|
|
2083
|
-
])) : (i(),
|
|
2084
|
-
(i(!0),
|
|
2139
|
+
])) : (i(), a("g", Sl, [
|
|
2140
|
+
(i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
|
|
2085
2141
|
key: `xLabel_plot_${c}`
|
|
2086
2142
|
}, [
|
|
2087
|
-
(i(!0),
|
|
2143
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
2088
2144
|
key: `xLabel_plot_${c}_${h}`
|
|
2089
2145
|
}, [
|
|
2090
|
-
e.FINAL_CONFIG.plot.tag.followValue ? (i(),
|
|
2091
|
-
[
|
|
2146
|
+
e.FINAL_CONFIG.plot.tag.followValue ? (i(), a(g, { key: 1 }, [
|
|
2147
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag ? (i(), a("line", {
|
|
2092
2148
|
key: 0,
|
|
2093
2149
|
class: "vue-ui-xy-tag-plot",
|
|
2094
2150
|
x1: e.drawingArea.left,
|
|
@@ -2098,97 +2154,97 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2098
2154
|
"stroke-width": 1,
|
|
2099
2155
|
"stroke-linecap": "round",
|
|
2100
2156
|
"stroke-dasharray": "2",
|
|
2101
|
-
stroke:
|
|
2102
|
-
}, null, 8, vl)) :
|
|
2103
|
-
], 64)) : (i(),
|
|
2104
|
-
n && h === 0 &&
|
|
2157
|
+
stroke: l.color
|
|
2158
|
+
}, null, 8, vl)) : u("", !0)
|
|
2159
|
+
], 64)) : (i(), a(g, { key: 0 }, [
|
|
2160
|
+
n && h === 0 && l.useTag && l.useTag === "start" ? (i(), a("foreignObject", {
|
|
2105
2161
|
key: 0,
|
|
2106
2162
|
x: n.x,
|
|
2107
2163
|
y: n.y - 20,
|
|
2108
2164
|
height: 24,
|
|
2109
2165
|
width: "150",
|
|
2110
|
-
style:
|
|
2166
|
+
style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2111
2167
|
}, [
|
|
2112
2168
|
f("div", {
|
|
2113
|
-
style:
|
|
2169
|
+
style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2114
2170
|
innerHTML: e.applyDataLabel(
|
|
2115
2171
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2116
2172
|
n.value,
|
|
2117
|
-
|
|
2173
|
+
l.name,
|
|
2118
2174
|
{
|
|
2119
2175
|
datapoint: n,
|
|
2120
2176
|
seriesIndex: h,
|
|
2121
|
-
serieName:
|
|
2177
|
+
serieName: l.name
|
|
2122
2178
|
}
|
|
2123
2179
|
)
|
|
2124
2180
|
}, null, 12, wl)
|
|
2125
|
-
], 12, kl)) :
|
|
2126
|
-
n && h ===
|
|
2181
|
+
], 12, kl)) : u("", !0),
|
|
2182
|
+
n && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (i(), a("foreignObject", {
|
|
2127
2183
|
key: 1,
|
|
2128
|
-
x: n.x -
|
|
2184
|
+
x: n.x - l.name.length * (r.fontSizes.plotLabels / 2),
|
|
2129
2185
|
y: n.y - 20,
|
|
2130
2186
|
height: 24,
|
|
2131
2187
|
width: "150",
|
|
2132
|
-
style:
|
|
2188
|
+
style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2133
2189
|
}, [
|
|
2134
2190
|
f("div", {
|
|
2135
|
-
style:
|
|
2191
|
+
style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2136
2192
|
innerHTML: e.applyDataLabel(
|
|
2137
2193
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2138
2194
|
n.value,
|
|
2139
|
-
|
|
2195
|
+
l.name,
|
|
2140
2196
|
{
|
|
2141
2197
|
datapoint: n,
|
|
2142
2198
|
seriesIndex: h,
|
|
2143
|
-
serieName:
|
|
2199
|
+
serieName: l.name
|
|
2144
2200
|
}
|
|
2145
2201
|
)
|
|
2146
2202
|
}, null, 12, Gl)
|
|
2147
|
-
], 12, Ol)) :
|
|
2203
|
+
], 12, Ol)) : u("", !0)
|
|
2148
2204
|
], 64))
|
|
2149
2205
|
], 64))), 128))
|
|
2150
2206
|
], 64))), 128))
|
|
2151
2207
|
])),
|
|
2152
|
-
e.FINAL_CONFIG.line.labels.show &&
|
|
2153
|
-
(i(!0),
|
|
2208
|
+
e.FINAL_CONFIG.line.labels.show && r.mutableConfig.dataLabels.show ? (i(), a("g", pl, [
|
|
2209
|
+
(i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
|
|
2154
2210
|
key: `xLabel_line_${c}`
|
|
2155
2211
|
}, [
|
|
2156
|
-
(i(!0),
|
|
2212
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
2157
2213
|
key: `xLabel_line_${c}_${h}`
|
|
2158
2214
|
}, [
|
|
2159
|
-
n && !Object.hasOwn(
|
|
2215
|
+
n && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (i(), a("text", {
|
|
2160
2216
|
key: 0,
|
|
2161
2217
|
x: n.x,
|
|
2162
2218
|
y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
2163
2219
|
"text-anchor": "middle",
|
|
2164
|
-
"font-size":
|
|
2220
|
+
"font-size": r.fontSizes.plotLabels,
|
|
2165
2221
|
fill: e.FINAL_CONFIG.line.labels.color,
|
|
2166
|
-
style:
|
|
2222
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2167
2223
|
}, T(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2168
2224
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
2169
2225
|
n.value,
|
|
2170
2226
|
e.dataLabel({
|
|
2171
|
-
p:
|
|
2227
|
+
p: l.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2172
2228
|
v: n.value,
|
|
2173
|
-
s:
|
|
2229
|
+
s: l.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2174
2230
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
2175
2231
|
}),
|
|
2176
2232
|
{
|
|
2177
2233
|
datapoint: n,
|
|
2178
|
-
serie:
|
|
2234
|
+
serie: l
|
|
2179
2235
|
}
|
|
2180
|
-
) : ""), 13, Ml)) :
|
|
2236
|
+
) : ""), 13, Ml)) : u("", !0)
|
|
2181
2237
|
], 64))), 128))
|
|
2182
2238
|
], 64))), 128))
|
|
2183
|
-
])) : (i(),
|
|
2184
|
-
(i(!0),
|
|
2239
|
+
])) : (i(), a("g", zl, [
|
|
2240
|
+
(i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
|
|
2185
2241
|
key: `xLabel_line_${c}`
|
|
2186
2242
|
}, [
|
|
2187
|
-
(i(!0),
|
|
2243
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
2188
2244
|
key: `xLabel_line_${c}_${h}`
|
|
2189
2245
|
}, [
|
|
2190
|
-
e.FINAL_CONFIG.line.tag.followValue ? (i(),
|
|
2191
|
-
[
|
|
2246
|
+
e.FINAL_CONFIG.line.tag.followValue ? (i(), a(g, { key: 1 }, [
|
|
2247
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag ? (i(), a("line", {
|
|
2192
2248
|
key: 0,
|
|
2193
2249
|
class: "vue-ui-xy-tag-line",
|
|
2194
2250
|
x1: e.drawingArea.left,
|
|
@@ -2198,145 +2254,145 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2198
2254
|
"stroke-width": 1,
|
|
2199
2255
|
"stroke-linecap": "round",
|
|
2200
2256
|
"stroke-dasharray": "2",
|
|
2201
|
-
stroke:
|
|
2202
|
-
}, null, 8, Hl)) :
|
|
2203
|
-
], 64)) : (i(),
|
|
2204
|
-
n && h === 0 &&
|
|
2257
|
+
stroke: l.color
|
|
2258
|
+
}, null, 8, Hl)) : u("", !0)
|
|
2259
|
+
], 64)) : (i(), a(g, { key: 0 }, [
|
|
2260
|
+
n && h === 0 && l.useTag && l.useTag === "start" ? (i(), a("foreignObject", {
|
|
2205
2261
|
key: 0,
|
|
2206
2262
|
x: n.x,
|
|
2207
2263
|
y: n.y - 20,
|
|
2208
2264
|
height: 24,
|
|
2209
2265
|
width: "150",
|
|
2210
|
-
style:
|
|
2266
|
+
style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2211
2267
|
}, [
|
|
2212
2268
|
f("div", {
|
|
2213
|
-
style:
|
|
2269
|
+
style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2214
2270
|
innerHTML: e.applyDataLabel(
|
|
2215
2271
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2216
2272
|
n.value,
|
|
2217
|
-
|
|
2273
|
+
l.name,
|
|
2218
2274
|
{
|
|
2219
2275
|
datapoint: n,
|
|
2220
2276
|
seriesIndex: h,
|
|
2221
|
-
serieName:
|
|
2277
|
+
serieName: l.name
|
|
2222
2278
|
}
|
|
2223
2279
|
)
|
|
2224
2280
|
}, null, 12, Pl)
|
|
2225
|
-
], 12, Tl)) :
|
|
2226
|
-
n && h ===
|
|
2281
|
+
], 12, Tl)) : u("", !0),
|
|
2282
|
+
n && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (i(), a("foreignObject", {
|
|
2227
2283
|
key: 1,
|
|
2228
2284
|
x: n.x,
|
|
2229
2285
|
y: n.y - 20,
|
|
2230
2286
|
height: 24,
|
|
2231
2287
|
width: "150",
|
|
2232
|
-
style:
|
|
2288
|
+
style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2233
2289
|
}, [
|
|
2234
2290
|
f("div", {
|
|
2235
|
-
style:
|
|
2291
|
+
style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2236
2292
|
innerHTML: e.applyDataLabel(
|
|
2237
2293
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2238
2294
|
n.value,
|
|
2239
|
-
|
|
2295
|
+
l.name,
|
|
2240
2296
|
{
|
|
2241
2297
|
datapoint: n,
|
|
2242
2298
|
seriesIndex: h,
|
|
2243
|
-
serieName:
|
|
2299
|
+
serieName: l.name
|
|
2244
2300
|
}
|
|
2245
2301
|
)
|
|
2246
2302
|
}, null, 12, Rl)
|
|
2247
|
-
], 12, Vl)) :
|
|
2303
|
+
], 12, Vl)) : u("", !0)
|
|
2248
2304
|
], 64))
|
|
2249
2305
|
], 64))), 128))
|
|
2250
2306
|
], 64))), 128))
|
|
2251
2307
|
])),
|
|
2252
|
-
(i(!0),
|
|
2308
|
+
(i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
|
|
2253
2309
|
key: `xLabel_line_${c}`
|
|
2254
2310
|
}, [
|
|
2255
|
-
(i(!0),
|
|
2311
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
2256
2312
|
key: `xLabel_line_${c}_${h}`
|
|
2257
2313
|
}, [
|
|
2258
|
-
n && h === 0 &&
|
|
2314
|
+
n && h === 0 && l.showSerieName && l.showSerieName === "start" ? (i(), a("text", {
|
|
2259
2315
|
key: 0,
|
|
2260
|
-
x: n.x -
|
|
2316
|
+
x: n.x - r.fontSizes.plotLabels,
|
|
2261
2317
|
y: n.y,
|
|
2262
|
-
"font-size":
|
|
2318
|
+
"font-size": r.fontSizes.plotLabels,
|
|
2263
2319
|
"text-anchor": "end",
|
|
2264
|
-
fill:
|
|
2320
|
+
fill: l.color,
|
|
2265
2321
|
innerHTML: e.createTSpans({
|
|
2266
|
-
content:
|
|
2267
|
-
fontSize:
|
|
2268
|
-
fill:
|
|
2269
|
-
x: n.x -
|
|
2322
|
+
content: l.name,
|
|
2323
|
+
fontSize: r.fontSizes.plotLabels,
|
|
2324
|
+
fill: l.color,
|
|
2325
|
+
x: n.x - r.fontSizes.plotLabels,
|
|
2270
2326
|
y: n.y,
|
|
2271
2327
|
maxWords: 2
|
|
2272
2328
|
}),
|
|
2273
|
-
style:
|
|
2274
|
-
}, null, 12, Dl)) :
|
|
2275
|
-
n && h ===
|
|
2329
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2330
|
+
}, null, 12, Dl)) : u("", !0),
|
|
2331
|
+
n && h === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (i(), a("text", {
|
|
2276
2332
|
key: 1,
|
|
2277
|
-
x: n.x +
|
|
2333
|
+
x: n.x + r.fontSizes.plotLabels,
|
|
2278
2334
|
y: n.y,
|
|
2279
|
-
"font-size":
|
|
2335
|
+
"font-size": r.fontSizes.plotLabels,
|
|
2280
2336
|
"text-anchor": "start",
|
|
2281
|
-
fill:
|
|
2337
|
+
fill: l.color,
|
|
2282
2338
|
innerHTML: e.createTSpans({
|
|
2283
|
-
content:
|
|
2284
|
-
fontSize:
|
|
2285
|
-
fill:
|
|
2286
|
-
x: n.x +
|
|
2339
|
+
content: l.name,
|
|
2340
|
+
fontSize: r.fontSizes.plotLabels,
|
|
2341
|
+
fill: l.color,
|
|
2342
|
+
x: n.x + r.fontSizes.plotLabels,
|
|
2287
2343
|
y: n.y,
|
|
2288
2344
|
maxWords: 2
|
|
2289
2345
|
}),
|
|
2290
|
-
style:
|
|
2291
|
-
}, null, 12,
|
|
2346
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2347
|
+
}, null, 12, Bl)) : u("", !0)
|
|
2292
2348
|
], 64))), 128))
|
|
2293
2349
|
], 64))), 128)),
|
|
2294
|
-
(i(!0),
|
|
2350
|
+
(i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
|
|
2295
2351
|
key: `xLabel_plot_${c}`
|
|
2296
2352
|
}, [
|
|
2297
|
-
(i(!0),
|
|
2353
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
2298
2354
|
key: `xLabel_plot_${c}_${h}`
|
|
2299
2355
|
}, [
|
|
2300
|
-
n && h === 0 &&
|
|
2356
|
+
n && h === 0 && l.showSerieName && l.showSerieName === "start" ? (i(), a("text", {
|
|
2301
2357
|
key: 0,
|
|
2302
|
-
x: n.x -
|
|
2358
|
+
x: n.x - r.fontSizes.plotLabels,
|
|
2303
2359
|
y: n.y,
|
|
2304
|
-
"font-size":
|
|
2360
|
+
"font-size": r.fontSizes.plotLabels,
|
|
2305
2361
|
"text-anchor": "end",
|
|
2306
|
-
fill:
|
|
2362
|
+
fill: l.color,
|
|
2307
2363
|
innerHTML: e.createTSpans({
|
|
2308
|
-
content:
|
|
2309
|
-
fontSize:
|
|
2310
|
-
fill:
|
|
2311
|
-
x: n.x -
|
|
2364
|
+
content: l.name,
|
|
2365
|
+
fontSize: r.fontSizes.plotLabels,
|
|
2366
|
+
fill: l.color,
|
|
2367
|
+
x: n.x - r.fontSizes.plotLabels,
|
|
2312
2368
|
y: n.y,
|
|
2313
2369
|
maxWords: 2
|
|
2314
2370
|
}),
|
|
2315
|
-
style:
|
|
2316
|
-
}, null, 12,
|
|
2317
|
-
n && h ===
|
|
2371
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2372
|
+
}, null, 12, Wl)) : u("", !0),
|
|
2373
|
+
n && h === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (i(), a("text", {
|
|
2318
2374
|
key: 1,
|
|
2319
|
-
x: n.x +
|
|
2375
|
+
x: n.x + r.fontSizes.plotLabels,
|
|
2320
2376
|
y: n.y,
|
|
2321
|
-
"font-size":
|
|
2377
|
+
"font-size": r.fontSizes.plotLabels,
|
|
2322
2378
|
"text-anchor": "start",
|
|
2323
|
-
fill:
|
|
2379
|
+
fill: l.color,
|
|
2324
2380
|
innerHTML: e.createTSpans({
|
|
2325
|
-
content:
|
|
2326
|
-
fontSize:
|
|
2327
|
-
fill:
|
|
2328
|
-
x: n.x +
|
|
2381
|
+
content: l.name,
|
|
2382
|
+
fontSize: r.fontSizes.plotLabels,
|
|
2383
|
+
fill: l.color,
|
|
2384
|
+
x: n.x + r.fontSizes.plotLabels,
|
|
2329
2385
|
y: n.y,
|
|
2330
2386
|
maxWords: 2
|
|
2331
2387
|
}),
|
|
2332
|
-
style:
|
|
2333
|
-
}, null, 12,
|
|
2388
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2389
|
+
}, null, 12, El)) : u("", !0)
|
|
2334
2390
|
], 64))), 128))
|
|
2335
2391
|
], 64))), 128)),
|
|
2336
|
-
|
|
2392
|
+
r.mutableConfig.useIndividualScale && !r.mutableConfig.isStacked ? (i(), a(g, { key: 11 }, [
|
|
2337
2393
|
f("defs", null, [
|
|
2338
|
-
(i(!0),
|
|
2339
|
-
id: `individual_scale_gradient_${
|
|
2394
|
+
(i(!0), a(g, null, N(e.allScales, (l, c) => (i(), a("linearGradient", {
|
|
2395
|
+
id: `individual_scale_gradient_${r.uniqueId}_${c}`,
|
|
2340
2396
|
x1: "0%",
|
|
2341
2397
|
x2: "100%",
|
|
2342
2398
|
y1: "0%",
|
|
@@ -2349,72 +2405,123 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2349
2405
|
}, null, 8, ql),
|
|
2350
2406
|
f("stop", {
|
|
2351
2407
|
offset: "100%",
|
|
2352
|
-
"stop-color":
|
|
2408
|
+
"stop-color": l.color,
|
|
2353
2409
|
"stop-opacity": "0.2"
|
|
2354
2410
|
}, null, 8, Xl)
|
|
2355
2411
|
], 8, Yl))), 256))
|
|
2356
2412
|
]),
|
|
2357
|
-
(i(!0),
|
|
2358
|
-
x:
|
|
2413
|
+
(i(!0), a(g, null, N(e.allScales, (l, c) => (i(), a("rect", {
|
|
2414
|
+
x: l.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2359
2415
|
y: e.drawingArea.top,
|
|
2360
2416
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2361
2417
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2362
|
-
fill:
|
|
2363
|
-
onMouseenter: (n) =>
|
|
2364
|
-
onMouseleave: s[0] || (s[0] = (n) =>
|
|
2418
|
+
fill: r.selectedScale === l.groupId ? `url(#individual_scale_gradient_${r.uniqueId}_${c})` : "transparent",
|
|
2419
|
+
onMouseenter: (n) => r.selectedScale = l.groupId,
|
|
2420
|
+
onMouseleave: s[0] || (s[0] = (n) => r.selectedScale = null)
|
|
2365
2421
|
}, null, 40, Ul))), 256))
|
|
2366
|
-
], 64)) :
|
|
2422
|
+
], 64)) : u("", !0),
|
|
2367
2423
|
f("g", null, [
|
|
2368
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !
|
|
2424
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !r.mutableConfig.useIndividualScale ? (i(), a("text", {
|
|
2369
2425
|
key: 0,
|
|
2370
|
-
"font-size":
|
|
2426
|
+
"font-size": r.fontSizes.yAxis,
|
|
2371
2427
|
fill: e.FINAL_CONFIG.chart.grid.labels.color,
|
|
2372
|
-
transform: `translate(${
|
|
2428
|
+
transform: `translate(${r.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2373
2429
|
"text-anchor": "middle",
|
|
2374
2430
|
style: { transition: "none" }
|
|
2375
|
-
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Zl)) :
|
|
2376
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (i(),
|
|
2431
|
+
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Zl)) : u("", !0),
|
|
2432
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (i(), a("text", {
|
|
2377
2433
|
key: 1,
|
|
2378
2434
|
"text-anchor": "middle",
|
|
2379
|
-
x:
|
|
2380
|
-
y: e.drawingArea.bottom +
|
|
2381
|
-
"font-size":
|
|
2435
|
+
x: r.width / 2,
|
|
2436
|
+
y: e.drawingArea.bottom + r.fontSizes.yAxis + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2437
|
+
"font-size": r.fontSizes.yAxis,
|
|
2382
2438
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2383
|
-
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Jl)) :
|
|
2439
|
+
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Jl)) : u("", !0)
|
|
2384
2440
|
]),
|
|
2385
|
-
s[9] || (s[9] =
|
|
2386
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(),
|
|
2387
|
-
t.$slots["time-label"] ? (i(!0),
|
|
2441
|
+
s[9] || (s[9] = ee('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),
|
|
2442
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(), a("g", Kl, [
|
|
2443
|
+
t.$slots["time-label"] ? (i(!0), a(g, { key: 0 }, N(e.timeLabels, (l, c) => G(t.$slots, "time-label", K({
|
|
2388
2444
|
key: `time_label_${c}`,
|
|
2389
2445
|
ref_for: !0
|
|
2390
2446
|
}, {
|
|
2391
2447
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
|
|
2392
|
-
y: e.drawingArea.bottom +
|
|
2393
|
-
fontSize:
|
|
2448
|
+
y: e.drawingArea.bottom + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2449
|
+
fontSize: r.fontSizes.xAxis,
|
|
2394
2450
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2395
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom +
|
|
2396
|
-
absoluteIndex:
|
|
2397
|
-
content:
|
|
2451
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2452
|
+
absoluteIndex: l.absoluteIndex,
|
|
2453
|
+
content: l.text,
|
|
2398
2454
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2399
|
-
show:
|
|
2400
|
-
}), void 0, !0)), 128)) : (i(!0),
|
|
2455
|
+
show: l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2456
|
+
}), void 0, !0)), 128)) : (i(!0), a(g, { key: 1 }, N(e.timeLabels, (l, c) => (i(), a("g", {
|
|
2401
2457
|
key: `time_label_${c}`
|
|
2402
2458
|
}, [
|
|
2403
|
-
|
|
2459
|
+
l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (i(), a("text", {
|
|
2404
2460
|
key: 0,
|
|
2405
2461
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2406
|
-
"font-size":
|
|
2462
|
+
"font-size": r.fontSizes.xAxis,
|
|
2407
2463
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2408
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom +
|
|
2464
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2409
2465
|
style: {
|
|
2410
2466
|
cursor: "pointer"
|
|
2411
2467
|
},
|
|
2412
|
-
onClick: () => e.selectTimeLabel(
|
|
2413
|
-
}, T(
|
|
2468
|
+
onClick: () => e.selectTimeLabel(l, c)
|
|
2469
|
+
}, T(l.text || ""), 9, Ql)) : u("", !0)
|
|
2470
|
+
]))), 128))
|
|
2471
|
+
])) : u("", !0),
|
|
2472
|
+
e.annotationsY.length && !r.mutableConfig.isStacked ? (i(), a("g", jl, [
|
|
2473
|
+
(i(!0), a(g, null, N(e.annotationsY, (l) => (i(), a("g", {
|
|
2474
|
+
key: l.uid
|
|
2475
|
+
}, [
|
|
2476
|
+
l.yTop ? (i(), a("line", {
|
|
2477
|
+
key: 0,
|
|
2478
|
+
x1: l.x1,
|
|
2479
|
+
y1: l.yTop,
|
|
2480
|
+
x2: l.x2,
|
|
2481
|
+
y2: l.yTop,
|
|
2482
|
+
stroke: l.config.line.stroke,
|
|
2483
|
+
"stroke-width": l.config.line.strokeWidth,
|
|
2484
|
+
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
2485
|
+
"stroke-linecap": "round"
|
|
2486
|
+
}, null, 8, $l)) : u("", !0),
|
|
2487
|
+
l.yBottom ? (i(), a("line", {
|
|
2488
|
+
key: 1,
|
|
2489
|
+
x1: l.x1,
|
|
2490
|
+
y1: l.yBottom,
|
|
2491
|
+
x2: l.x2,
|
|
2492
|
+
y2: l.yBottom,
|
|
2493
|
+
stroke: l.config.line.stroke,
|
|
2494
|
+
"stroke-width": l.config.line.strokeWidth,
|
|
2495
|
+
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
2496
|
+
"stroke-linecap": "round"
|
|
2497
|
+
}, null, 8, er)) : u("", !0),
|
|
2498
|
+
l.hasArea ? (i(), a("rect", {
|
|
2499
|
+
key: 2,
|
|
2500
|
+
y: Math.min(l.yTop, l.yBottom),
|
|
2501
|
+
x: l.x1,
|
|
2502
|
+
width: e.drawingArea.width,
|
|
2503
|
+
height: l.areaHeight,
|
|
2504
|
+
fill: e.setOpacity(l.config.area.fill, l.config.area.opacity),
|
|
2505
|
+
style: { animation: "none !important" }
|
|
2506
|
+
}, null, 8, tr)) : u("", !0),
|
|
2507
|
+
l.config.label.text ? (i(), a("rect", K({
|
|
2508
|
+
key: 3,
|
|
2509
|
+
class: "vue-ui-xy-annotation-label-box"
|
|
2510
|
+
}, { ref_for: !0 }, l._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : u("", !0),
|
|
2511
|
+
l.config.label.text ? (i(), a("text", {
|
|
2512
|
+
key: 4,
|
|
2513
|
+
id: l.id,
|
|
2514
|
+
class: "vue-ui-xy-annotation-label",
|
|
2515
|
+
x: l._text.x,
|
|
2516
|
+
y: l._text.y,
|
|
2517
|
+
"font-size": l.config.label.fontSize,
|
|
2518
|
+
fill: l.config.label.color,
|
|
2519
|
+
"text-anchor": l.config.label.textAnchor
|
|
2520
|
+
}, T(l.config.label.text), 9, lr)) : u("", !0)
|
|
2414
2521
|
]))), 128))
|
|
2415
|
-
])) :
|
|
2522
|
+
])) : u("", !0),
|
|
2416
2523
|
f("g", null, [
|
|
2417
|
-
(i(!0),
|
|
2524
|
+
(i(!0), a(g, null, N(e.maxSeries, (l, c) => (i(), a("rect", {
|
|
2418
2525
|
key: `tooltip_trap_${c}`,
|
|
2419
2526
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
|
|
2420
2527
|
y: e.drawingArea.top,
|
|
@@ -2424,11 +2531,11 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2424
2531
|
onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
|
|
2425
2532
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2426
2533
|
onClick: (n) => e.selectX(c)
|
|
2427
|
-
}, null, 40,
|
|
2534
|
+
}, null, 40, rr))), 128))
|
|
2428
2535
|
]),
|
|
2429
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(
|
|
2430
|
-
(i(),
|
|
2431
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((
|
|
2536
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (i(), a("g", ir, [
|
|
2537
|
+
(i(), a("foreignObject", {
|
|
2538
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2432
2539
|
y: e.drawingArea.bottom,
|
|
2433
2540
|
width: "200",
|
|
2434
2541
|
height: "40",
|
|
@@ -2436,247 +2543,247 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2436
2543
|
}, [
|
|
2437
2544
|
f("div", {
|
|
2438
2545
|
class: "vue-ui-xy-time-tag",
|
|
2439
|
-
style:
|
|
2440
|
-
}, T(e.timeLabels[(
|
|
2441
|
-
], 8,
|
|
2546
|
+
style: y(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
2547
|
+
}, T(e.timeLabels[(r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)].text || (r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)), 5)
|
|
2548
|
+
], 8, ar)),
|
|
2442
2549
|
f("circle", {
|
|
2443
|
-
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((
|
|
2550
|
+
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2444
2551
|
cy: e.drawingArea.bottom,
|
|
2445
2552
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2446
2553
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2447
|
-
}, null, 8,
|
|
2448
|
-
])) :
|
|
2449
|
-
])) :
|
|
2450
|
-
|
|
2451
|
-
], 14, et)) :
|
|
2452
|
-
t.$slots.watermark ? (i(),
|
|
2453
|
-
|
|
2454
|
-
])) :
|
|
2455
|
-
(i(!0),
|
|
2554
|
+
}, null, 8, sr)
|
|
2555
|
+
])) : u("", !0)
|
|
2556
|
+
])) : u("", !0),
|
|
2557
|
+
G(t.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2558
|
+
], 14, et)) : u("", !0),
|
|
2559
|
+
t.$slots.watermark ? (i(), a("div", nr, [
|
|
2560
|
+
G(t.$slots, "watermark", Y(q({ isPrinting: r.isPrinting || r.isImaging })), void 0, !0)
|
|
2561
|
+
])) : u("", !0),
|
|
2562
|
+
(i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
|
|
2456
2563
|
key: `tag_line_${c}`
|
|
2457
2564
|
}, [
|
|
2458
|
-
(i(!0),
|
|
2565
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
2459
2566
|
key: `tag_line_${c}_${h}`
|
|
2460
2567
|
}, [
|
|
2461
|
-
[
|
|
2568
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (i(), a("div", {
|
|
2462
2569
|
key: 0,
|
|
2463
2570
|
ref_for: !0,
|
|
2464
|
-
ref: (
|
|
2571
|
+
ref: (L) => e.setTagRef(c, h, L, "right", "line"),
|
|
2465
2572
|
class: "vue-ui-xy-tag",
|
|
2466
2573
|
"data-tag": "right",
|
|
2467
|
-
style:
|
|
2574
|
+
style: y({
|
|
2468
2575
|
position: "fixed",
|
|
2469
2576
|
top: e.placeXYTag({
|
|
2470
|
-
svgElement:
|
|
2577
|
+
svgElement: r.svgRef,
|
|
2471
2578
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2472
2579
|
y: n.y,
|
|
2473
|
-
element:
|
|
2580
|
+
element: r.tagRefs[`${c}_${h}_right_line`],
|
|
2474
2581
|
position: "right"
|
|
2475
2582
|
}).top + "px",
|
|
2476
2583
|
left: e.placeXYTag({
|
|
2477
|
-
svgElement:
|
|
2584
|
+
svgElement: r.svgRef,
|
|
2478
2585
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2479
2586
|
y: n.y,
|
|
2480
|
-
element:
|
|
2587
|
+
element: r.tagRefs[`${c}_${h}_right_line`],
|
|
2481
2588
|
position: "right"
|
|
2482
2589
|
}).left + "px",
|
|
2483
2590
|
height: "fit-content",
|
|
2484
2591
|
width: "fit-content",
|
|
2485
|
-
background:
|
|
2486
|
-
color: e.adaptColorToBackground(
|
|
2592
|
+
background: l.color,
|
|
2593
|
+
color: e.adaptColorToBackground(l.color),
|
|
2487
2594
|
padding: "0 6px",
|
|
2488
2595
|
fontSize: e.FINAL_CONFIG.line.tag.fontSize + "px",
|
|
2489
2596
|
opacity: 1
|
|
2490
2597
|
})
|
|
2491
2598
|
}, [
|
|
2492
|
-
(i(),
|
|
2599
|
+
(i(), a("svg", cr, [
|
|
2493
2600
|
f("path", {
|
|
2494
2601
|
d: "M 0,10 10,0 10,20 Z",
|
|
2495
|
-
fill:
|
|
2602
|
+
fill: l.color,
|
|
2496
2603
|
stroke: "none"
|
|
2497
|
-
}, null, 8,
|
|
2604
|
+
}, null, 8, or)
|
|
2498
2605
|
])),
|
|
2499
2606
|
f("div", {
|
|
2500
2607
|
class: "vue-ui-xy-tag-content",
|
|
2501
2608
|
innerHTML: e.applyDataLabel(
|
|
2502
2609
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2503
2610
|
n.value,
|
|
2504
|
-
|
|
2611
|
+
l.name,
|
|
2505
2612
|
{
|
|
2506
2613
|
datapoint: n,
|
|
2507
2614
|
seriesIndex: h,
|
|
2508
|
-
serieName:
|
|
2615
|
+
serieName: l.name
|
|
2509
2616
|
}
|
|
2510
2617
|
)
|
|
2511
|
-
}, null, 8,
|
|
2512
|
-
], 4)) :
|
|
2513
|
-
[
|
|
2618
|
+
}, null, 8, hr)
|
|
2619
|
+
], 4)) : u("", !0),
|
|
2620
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (i(), a("div", {
|
|
2514
2621
|
key: 1,
|
|
2515
2622
|
ref_for: !0,
|
|
2516
|
-
ref: (
|
|
2623
|
+
ref: (L) => e.setTagRef(c, h, L, "left", "line"),
|
|
2517
2624
|
class: "vue-ui-xy-tag",
|
|
2518
2625
|
"data-tag": "left",
|
|
2519
|
-
style:
|
|
2626
|
+
style: y({
|
|
2520
2627
|
position: "fixed",
|
|
2521
2628
|
top: e.placeXYTag({
|
|
2522
|
-
svgElement:
|
|
2629
|
+
svgElement: r.svgRef,
|
|
2523
2630
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2524
2631
|
y: n.y,
|
|
2525
|
-
element:
|
|
2632
|
+
element: r.tagRefs[`${c}_${h}_left_line`],
|
|
2526
2633
|
position: "left"
|
|
2527
2634
|
}).top + "px",
|
|
2528
2635
|
left: e.placeXYTag({
|
|
2529
|
-
svgElement:
|
|
2636
|
+
svgElement: r.svgRef,
|
|
2530
2637
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2531
2638
|
y: n.y,
|
|
2532
|
-
element:
|
|
2639
|
+
element: r.tagRefs[`${c}_${h}_left_line`],
|
|
2533
2640
|
position: "left"
|
|
2534
2641
|
}).left + "px",
|
|
2535
2642
|
height: "fit-content",
|
|
2536
2643
|
width: "fit-content",
|
|
2537
|
-
background:
|
|
2538
|
-
color: e.adaptColorToBackground(
|
|
2644
|
+
background: l.color,
|
|
2645
|
+
color: e.adaptColorToBackground(l.color),
|
|
2539
2646
|
padding: "0 6px",
|
|
2540
2647
|
fontSize: e.FINAL_CONFIG.line.tag.fontSize + "px",
|
|
2541
2648
|
opacity: 1
|
|
2542
2649
|
})
|
|
2543
2650
|
}, [
|
|
2544
|
-
(i(),
|
|
2651
|
+
(i(), a("svg", ur, [
|
|
2545
2652
|
f("path", {
|
|
2546
2653
|
d: "M 0,0 10,10 0,20 Z",
|
|
2547
|
-
fill:
|
|
2654
|
+
fill: l.color,
|
|
2548
2655
|
stroke: "none"
|
|
2549
|
-
}, null, 8,
|
|
2656
|
+
}, null, 8, dr)
|
|
2550
2657
|
])),
|
|
2551
2658
|
f("div", {
|
|
2552
2659
|
class: "vue-ui-xy-tag-content",
|
|
2553
2660
|
innerHTML: e.applyDataLabel(
|
|
2554
2661
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2555
2662
|
n.value,
|
|
2556
|
-
|
|
2663
|
+
l.name,
|
|
2557
2664
|
{
|
|
2558
2665
|
datapoint: n,
|
|
2559
2666
|
seriesIndex: h,
|
|
2560
|
-
serieName:
|
|
2667
|
+
serieName: l.name
|
|
2561
2668
|
}
|
|
2562
2669
|
)
|
|
2563
|
-
}, null, 8,
|
|
2564
|
-
], 4)) :
|
|
2670
|
+
}, null, 8, gr)
|
|
2671
|
+
], 4)) : u("", !0)
|
|
2565
2672
|
], 64))), 128))
|
|
2566
2673
|
], 64))), 128)),
|
|
2567
|
-
(i(!0),
|
|
2674
|
+
(i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
|
|
2568
2675
|
key: `tag_plot_${c}`
|
|
2569
2676
|
}, [
|
|
2570
|
-
(i(!0),
|
|
2677
|
+
(i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
|
|
2571
2678
|
key: `tag_plot_${c}_${h}`
|
|
2572
2679
|
}, [
|
|
2573
|
-
[
|
|
2680
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (i(), a("div", {
|
|
2574
2681
|
key: 0,
|
|
2575
2682
|
ref_for: !0,
|
|
2576
|
-
ref: (
|
|
2683
|
+
ref: (L) => e.setTagRef(c, h, L, "right", "plot"),
|
|
2577
2684
|
class: "vue-ui-xy-tag",
|
|
2578
2685
|
"data-tag": "right",
|
|
2579
|
-
style:
|
|
2686
|
+
style: y({
|
|
2580
2687
|
position: "fixed",
|
|
2581
2688
|
top: e.placeXYTag({
|
|
2582
|
-
svgElement:
|
|
2689
|
+
svgElement: r.svgRef,
|
|
2583
2690
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2584
2691
|
y: n.y,
|
|
2585
|
-
element:
|
|
2692
|
+
element: r.tagRefs[`${c}_${h}_right_plot`],
|
|
2586
2693
|
position: "right"
|
|
2587
2694
|
}).top + "px",
|
|
2588
2695
|
left: e.placeXYTag({
|
|
2589
|
-
svgElement:
|
|
2696
|
+
svgElement: r.svgRef,
|
|
2590
2697
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2591
2698
|
y: n.y,
|
|
2592
|
-
element:
|
|
2699
|
+
element: r.tagRefs[`${c}_${h}_right_plot`],
|
|
2593
2700
|
position: "right"
|
|
2594
2701
|
}).left + "px",
|
|
2595
2702
|
height: "fit-content",
|
|
2596
2703
|
width: "fit-content",
|
|
2597
|
-
background:
|
|
2598
|
-
color: e.adaptColorToBackground(
|
|
2704
|
+
background: l.color,
|
|
2705
|
+
color: e.adaptColorToBackground(l.color),
|
|
2599
2706
|
padding: "0 6px",
|
|
2600
2707
|
fontSize: e.FINAL_CONFIG.plot.tag.fontSize + "px",
|
|
2601
2708
|
opacity: 1
|
|
2602
2709
|
})
|
|
2603
2710
|
}, [
|
|
2604
|
-
(i(),
|
|
2711
|
+
(i(), a("svg", fr, [
|
|
2605
2712
|
f("path", {
|
|
2606
2713
|
d: "M 0,10 10,0 10,20 Z",
|
|
2607
|
-
fill:
|
|
2714
|
+
fill: l.color,
|
|
2608
2715
|
stroke: "none"
|
|
2609
|
-
}, null, 8,
|
|
2716
|
+
}, null, 8, Ir)
|
|
2610
2717
|
])),
|
|
2611
2718
|
f("div", {
|
|
2612
2719
|
class: "vue-ui-xy-tag-content",
|
|
2613
2720
|
innerHTML: e.applyDataLabel(
|
|
2614
2721
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2615
2722
|
n.value,
|
|
2616
|
-
|
|
2723
|
+
l.name,
|
|
2617
2724
|
{
|
|
2618
2725
|
datapoint: n,
|
|
2619
2726
|
seriesIndex: h,
|
|
2620
|
-
serieName:
|
|
2727
|
+
serieName: l.name
|
|
2621
2728
|
}
|
|
2622
2729
|
)
|
|
2623
|
-
}, null, 8,
|
|
2624
|
-
], 4)) :
|
|
2625
|
-
[
|
|
2730
|
+
}, null, 8, Nr)
|
|
2731
|
+
], 4)) : u("", !0),
|
|
2732
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (i(), a("div", {
|
|
2626
2733
|
key: 1,
|
|
2627
2734
|
ref_for: !0,
|
|
2628
|
-
ref: (
|
|
2735
|
+
ref: (L) => e.setTagRef(c, h, L, "left", "plot"),
|
|
2629
2736
|
class: "vue-ui-xy-tag",
|
|
2630
2737
|
"data-tag": "left",
|
|
2631
|
-
style:
|
|
2738
|
+
style: y({
|
|
2632
2739
|
position: "fixed",
|
|
2633
2740
|
top: e.placeXYTag({
|
|
2634
|
-
svgElement:
|
|
2741
|
+
svgElement: r.svgRef,
|
|
2635
2742
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2636
2743
|
y: n.y,
|
|
2637
|
-
element:
|
|
2744
|
+
element: r.tagRefs[`${c}_${h}_left_plot`],
|
|
2638
2745
|
position: "left"
|
|
2639
2746
|
}).top + "px",
|
|
2640
2747
|
left: e.placeXYTag({
|
|
2641
|
-
svgElement:
|
|
2748
|
+
svgElement: r.svgRef,
|
|
2642
2749
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2643
2750
|
y: n.y,
|
|
2644
|
-
element:
|
|
2751
|
+
element: r.tagRefs[`${c}_${h}_left_plot`],
|
|
2645
2752
|
position: "left"
|
|
2646
2753
|
}).left + "px",
|
|
2647
2754
|
height: "fit-content",
|
|
2648
2755
|
width: "fit-content",
|
|
2649
|
-
background:
|
|
2650
|
-
color: e.adaptColorToBackground(
|
|
2756
|
+
background: l.color,
|
|
2757
|
+
color: e.adaptColorToBackground(l.color),
|
|
2651
2758
|
padding: "0 6px",
|
|
2652
2759
|
fontSize: e.FINAL_CONFIG.plot.tag.fontSize + "px",
|
|
2653
2760
|
opacity: 1
|
|
2654
2761
|
})
|
|
2655
2762
|
}, [
|
|
2656
|
-
(i(),
|
|
2763
|
+
(i(), a("svg", xr, [
|
|
2657
2764
|
f("path", {
|
|
2658
2765
|
d: "M 0,0 10,10 0,20 Z",
|
|
2659
|
-
fill:
|
|
2766
|
+
fill: l.color,
|
|
2660
2767
|
stroke: "none"
|
|
2661
|
-
}, null, 8,
|
|
2768
|
+
}, null, 8, mr)
|
|
2662
2769
|
])),
|
|
2663
2770
|
f("div", {
|
|
2664
2771
|
class: "vue-ui-xy-tag-content",
|
|
2665
2772
|
innerHTML: e.applyDataLabel(
|
|
2666
2773
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2667
2774
|
n.value,
|
|
2668
|
-
|
|
2775
|
+
l.name,
|
|
2669
2776
|
{
|
|
2670
2777
|
datapoint: n,
|
|
2671
2778
|
seriesIndex: h,
|
|
2672
|
-
serieName:
|
|
2779
|
+
serieName: l.name
|
|
2673
2780
|
}
|
|
2674
2781
|
)
|
|
2675
|
-
}, null, 8,
|
|
2676
|
-
], 4)) :
|
|
2782
|
+
}, null, 8, br)
|
|
2783
|
+
], 4)) : u("", !0)
|
|
2677
2784
|
], 64))), 128))
|
|
2678
2785
|
], 64))), 128)),
|
|
2679
|
-
e.isDataset ?
|
|
2786
|
+
e.isDataset ? u("", !0) : (i(), B(S, {
|
|
2680
2787
|
key: 6,
|
|
2681
2788
|
config: {
|
|
2682
2789
|
type: "line",
|
|
@@ -2694,14 +2801,14 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2694
2801
|
}
|
|
2695
2802
|
}
|
|
2696
2803
|
}, null, 8, ["config"])),
|
|
2697
|
-
e.FINAL_CONFIG.chart.zoom.show &&
|
|
2804
|
+
e.FINAL_CONFIG.chart.zoom.show && r.maxX > 6 && e.isDataset ? (i(), B(k, {
|
|
2698
2805
|
ref: "chartSlicer",
|
|
2699
|
-
key: `slicer_${
|
|
2806
|
+
key: `slicer_${r.slicerStep}`,
|
|
2700
2807
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
2701
2808
|
fontSize: e.FINAL_CONFIG.chart.zoom.fontSize,
|
|
2702
2809
|
useResetSlot: e.FINAL_CONFIG.chart.zoom.useResetSlot,
|
|
2703
|
-
labelLeft: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
2704
|
-
labelRight: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
2810
|
+
labelLeft: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.start],
|
|
2811
|
+
labelRight: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.end - 1],
|
|
2705
2812
|
textColor: e.FINAL_CONFIG.chart.color,
|
|
2706
2813
|
inputColor: e.FINAL_CONFIG.chart.zoom.color,
|
|
2707
2814
|
selectColor: e.FINAL_CONFIG.chart.zoom.highlightColor,
|
|
@@ -2712,41 +2819,41 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2712
2819
|
minimapSelectionRadius: e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,
|
|
2713
2820
|
minimapLineColor: e.FINAL_CONFIG.chart.zoom.minimap.lineColor,
|
|
2714
2821
|
minimapSelectedColorOpacity: e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,
|
|
2715
|
-
minimapSelectedIndex:
|
|
2822
|
+
minimapSelectedIndex: r.selectedSerieIndex,
|
|
2716
2823
|
minimapIndicatorColor: e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,
|
|
2717
2824
|
verticalHandles: e.FINAL_CONFIG.chart.zoom.minimap.verticalHandles,
|
|
2718
|
-
max:
|
|
2825
|
+
max: r.maxX,
|
|
2719
2826
|
min: 0,
|
|
2720
|
-
valueStart:
|
|
2721
|
-
valueEnd:
|
|
2722
|
-
start:
|
|
2723
|
-
"onUpdate:start": s[2] || (s[2] = (
|
|
2724
|
-
end:
|
|
2725
|
-
"onUpdate:end": s[3] || (s[3] = (
|
|
2827
|
+
valueStart: r.slicer.start,
|
|
2828
|
+
valueEnd: r.slicer.end,
|
|
2829
|
+
start: r.slicer.start,
|
|
2830
|
+
"onUpdate:start": s[2] || (s[2] = (l) => r.slicer.start = l),
|
|
2831
|
+
end: r.slicer.end,
|
|
2832
|
+
"onUpdate:end": s[3] || (s[3] = (l) => r.slicer.end = l),
|
|
2726
2833
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2727
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((
|
|
2834
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((l) => e.largestTriangleThreeBucketsArray({ data: l.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2728
2835
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2729
2836
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2730
2837
|
onReset: e.refreshSlicer,
|
|
2731
2838
|
onTrapMouse: e.selectMinimapIndex
|
|
2732
2839
|
}, {
|
|
2733
|
-
"reset-action": V(({ reset:
|
|
2734
|
-
|
|
2840
|
+
"reset-action": V(({ reset: l }) => [
|
|
2841
|
+
G(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
|
|
2735
2842
|
]),
|
|
2736
2843
|
_: 3
|
|
2737
|
-
}, 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"])) :
|
|
2738
|
-
e.FINAL_CONFIG.chart.legend.show ? (i(),
|
|
2844
|
+
}, 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),
|
|
2845
|
+
e.FINAL_CONFIG.chart.legend.show ? (i(), a("div", {
|
|
2739
2846
|
key: 8,
|
|
2740
2847
|
ref: "chartLegend",
|
|
2741
2848
|
class: "vue-ui-xy-legend",
|
|
2742
|
-
style:
|
|
2849
|
+
style: y(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2743
2850
|
}, [
|
|
2744
|
-
(i(!0),
|
|
2851
|
+
(i(!0), a(g, null, N(e.absoluteDataset, (l, c) => (i(), a("div", {
|
|
2745
2852
|
key: `div_legend_item_${c}`,
|
|
2746
|
-
onClick: (n) => e.segregate(
|
|
2747
|
-
class:
|
|
2853
|
+
onClick: (n) => e.segregate(l),
|
|
2854
|
+
class: E({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": r.segregatedSeries.includes(l.id) })
|
|
2748
2855
|
}, [
|
|
2749
|
-
|
|
2856
|
+
r.icons[l.type] === "line" ? (i(), a("svg", _r, [
|
|
2750
2857
|
f("rect", {
|
|
2751
2858
|
x: "0",
|
|
2752
2859
|
y: "7.5",
|
|
@@ -2755,18 +2862,18 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2755
2862
|
"stroke-width": 0.5,
|
|
2756
2863
|
height: "3",
|
|
2757
2864
|
width: "20",
|
|
2758
|
-
fill:
|
|
2759
|
-
}, null, 8,
|
|
2865
|
+
fill: l.color
|
|
2866
|
+
}, null, 8, yr),
|
|
2760
2867
|
U(v, {
|
|
2761
2868
|
plot: { x: 10, y: 9 },
|
|
2762
2869
|
radius: 4,
|
|
2763
|
-
color:
|
|
2764
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2870
|
+
color: l.color,
|
|
2871
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
2765
2872
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2766
2873
|
strokeWidth: 0.5
|
|
2767
2874
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2768
|
-
])) :
|
|
2769
|
-
|
|
2875
|
+
])) : r.icons[l.type] === "bar" ? (i(), a("svg", Ar, [
|
|
2876
|
+
r.icons[l.type] === "bar" && t.$slots.pattern ? (i(), a("rect", {
|
|
2770
2877
|
key: 0,
|
|
2771
2878
|
x: "0",
|
|
2772
2879
|
y: "0",
|
|
@@ -2774,9 +2881,9 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2774
2881
|
height: "40",
|
|
2775
2882
|
width: "40",
|
|
2776
2883
|
stroke: "none",
|
|
2777
|
-
fill:
|
|
2778
|
-
}, null, 8,
|
|
2779
|
-
|
|
2884
|
+
fill: l.color
|
|
2885
|
+
}, null, 8, Lr)) : u("", !0),
|
|
2886
|
+
r.icons[l.type] === "bar" ? (i(), a("rect", {
|
|
2780
2887
|
key: 1,
|
|
2781
2888
|
x: "0",
|
|
2782
2889
|
y: "0",
|
|
@@ -2784,28 +2891,28 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2784
2891
|
height: "40",
|
|
2785
2892
|
width: "40",
|
|
2786
2893
|
stroke: "none",
|
|
2787
|
-
fill: t.$slots.pattern ? `url(#pattern_${
|
|
2788
|
-
}, null, 8,
|
|
2789
|
-
])) : (i(),
|
|
2894
|
+
fill: t.$slots.pattern ? `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})` : l.color
|
|
2895
|
+
}, null, 8, Cr)) : u("", !0)
|
|
2896
|
+
])) : (i(), a("svg", Sr, [
|
|
2790
2897
|
U(v, {
|
|
2791
2898
|
plot: { x: 6, y: 6 },
|
|
2792
2899
|
radius: 5,
|
|
2793
|
-
color:
|
|
2794
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2900
|
+
color: l.color,
|
|
2901
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle"
|
|
2795
2902
|
}, null, 8, ["color", "shape"])
|
|
2796
2903
|
])),
|
|
2797
2904
|
f("span", {
|
|
2798
|
-
style:
|
|
2799
|
-
}, T(
|
|
2800
|
-
], 10,
|
|
2801
|
-
], 4)) : (i(),
|
|
2802
|
-
|
|
2905
|
+
style: y(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2906
|
+
}, T(l.name), 5)
|
|
2907
|
+
], 10, Fr))), 128))
|
|
2908
|
+
], 4)) : (i(), a("div", kr, [
|
|
2909
|
+
G(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2803
2910
|
], 512)),
|
|
2804
|
-
t.$slots.source ? (i(),
|
|
2805
|
-
|
|
2806
|
-
], 512)) :
|
|
2911
|
+
t.$slots.source ? (i(), a("div", wr, [
|
|
2912
|
+
G(t.$slots, "source", {}, void 0, !0)
|
|
2913
|
+
], 512)) : u("", !0),
|
|
2807
2914
|
U(O, {
|
|
2808
|
-
show:
|
|
2915
|
+
show: r.mutableConfig.showTooltip && r.isTooltip,
|
|
2809
2916
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2810
2917
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
2811
2918
|
fontSize: e.FINAL_CONFIG.chart.tooltip.fontSize,
|
|
@@ -2817,22 +2924,22 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2817
2924
|
offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
|
|
2818
2925
|
parent: t.$refs.chart,
|
|
2819
2926
|
content: e.tooltipContent,
|
|
2820
|
-
isFullscreen:
|
|
2927
|
+
isFullscreen: r.isFullscreen,
|
|
2821
2928
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2822
2929
|
}, {
|
|
2823
2930
|
"tooltip-before": V(() => [
|
|
2824
|
-
|
|
2931
|
+
G(t.$slots, "tooltip-before", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2825
2932
|
]),
|
|
2826
2933
|
"tooltip-after": V(() => [
|
|
2827
|
-
|
|
2934
|
+
G(t.$slots, "tooltip-after", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2828
2935
|
]),
|
|
2829
2936
|
_: 3
|
|
2830
2937
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2831
|
-
e.isDataset ? (i(),
|
|
2938
|
+
e.isDataset ? (i(), B(p, {
|
|
2832
2939
|
key: 11,
|
|
2833
2940
|
hideDetails: "",
|
|
2834
2941
|
config: {
|
|
2835
|
-
open:
|
|
2942
|
+
open: r.mutableConfig.showTable,
|
|
2836
2943
|
maxHeight: 1e4,
|
|
2837
2944
|
body: {
|
|
2838
2945
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -2846,17 +2953,17 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2846
2953
|
}, {
|
|
2847
2954
|
content: V(() => [
|
|
2848
2955
|
f("div", {
|
|
2849
|
-
style:
|
|
2956
|
+
style: y(`${r.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2850
2957
|
}, [
|
|
2851
|
-
f("div",
|
|
2958
|
+
f("div", Or, [
|
|
2852
2959
|
Ye(f("input", {
|
|
2853
2960
|
type: "checkbox",
|
|
2854
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
2961
|
+
"onUpdate:modelValue": s[4] || (s[4] = (l) => r.showSparklineTable = l)
|
|
2855
2962
|
}, null, 512), [
|
|
2856
|
-
[qe,
|
|
2963
|
+
[qe, r.showSparklineTable]
|
|
2857
2964
|
]),
|
|
2858
2965
|
f("div", {
|
|
2859
|
-
onClick: s[5] || (s[5] = (
|
|
2966
|
+
onClick: s[5] || (s[5] = (l) => r.showSparklineTable = !r.showSparklineTable),
|
|
2860
2967
|
style: { cursor: "pointer" }
|
|
2861
2968
|
}, [
|
|
2862
2969
|
U(F, {
|
|
@@ -2866,26 +2973,26 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2866
2973
|
}, null, 8, ["stroke"])
|
|
2867
2974
|
])
|
|
2868
2975
|
]),
|
|
2869
|
-
|
|
2870
|
-
key: `sparkline_${
|
|
2976
|
+
r.showSparklineTable ? (i(), B(C, {
|
|
2977
|
+
key: `sparkline_${r.segregateStep}`,
|
|
2871
2978
|
dataset: e.tableSparklineDataset,
|
|
2872
2979
|
config: e.tableSparklineConfig
|
|
2873
|
-
}, null, 8, ["dataset", "config"])) : (i(),
|
|
2874
|
-
key: `table_${
|
|
2980
|
+
}, null, 8, ["dataset", "config"])) : (i(), B(w, {
|
|
2981
|
+
key: `table_${r.tableStep}`,
|
|
2875
2982
|
colNames: e.dataTable.colNames,
|
|
2876
2983
|
head: e.dataTable.head,
|
|
2877
2984
|
body: e.dataTable.body,
|
|
2878
2985
|
config: e.dataTable.config,
|
|
2879
2986
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2880
|
-
onClose: s[6] || (s[6] = (
|
|
2987
|
+
onClose: s[6] || (s[6] = (l) => r.mutableConfig.showTable = !1)
|
|
2881
2988
|
}, {
|
|
2882
|
-
th: V(({ th:
|
|
2883
|
-
f("div", { innerHTML:
|
|
2989
|
+
th: V(({ th: l }) => [
|
|
2990
|
+
f("div", { innerHTML: l }, null, 8, Gr)
|
|
2884
2991
|
]),
|
|
2885
|
-
td: V(({ td:
|
|
2886
|
-
|
|
2992
|
+
td: V(({ td: l }) => [
|
|
2993
|
+
ee(T(isNaN(Number(l)) ? l : e.dataLabel({
|
|
2887
2994
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2888
|
-
v:
|
|
2995
|
+
v: l,
|
|
2889
2996
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2890
2997
|
r: e.FINAL_CONFIG.table.rounding
|
|
2891
2998
|
})), 1)
|
|
@@ -2895,10 +3002,10 @@ function Sa(t, s, o, d, l, e) {
|
|
|
2895
3002
|
], 4)
|
|
2896
3003
|
]),
|
|
2897
3004
|
_: 1
|
|
2898
|
-
}, 8, ["config"])) :
|
|
3005
|
+
}, 8, ["config"])) : u("", !0)
|
|
2899
3006
|
], 46, je);
|
|
2900
3007
|
}
|
|
2901
|
-
const
|
|
3008
|
+
const Dr = /* @__PURE__ */ Je(Qe, [["render", vr], ["__scopeId", "data-v-fc22098c"]]);
|
|
2902
3009
|
export {
|
|
2903
|
-
|
|
3010
|
+
Dr as default
|
|
2904
3011
|
};
|