vue-data-ui 2.12.6 → 2.12.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import { Q as H, Z as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
import Ze from "./vue-ui-skeleton-B_YI7Yuc.js";
|
|
10
|
-
import { S as Je } from "./Slicer-7qFdY-bT.js";
|
|
11
|
-
import Ke from "./vue-ui-accordion-BUz4JIIX.js";
|
|
12
|
-
import { u as Q } from "./useNestedProp-v7KPpwuP.js";
|
|
13
|
-
import { _ as Qe } from "./PackageVersion-BjrblLPQ.js";
|
|
14
|
-
import { _ as je } from "./PenAndPaper-BkP3J-Ft.js";
|
|
15
|
-
import { resolveComponent as R, createElementBlock as i, openBlock as r, normalizeStyle as b, normalizeClass as B, createBlock as W, createCommentVNode as d, createVNode as X, createSlots as $e, withCtx as V, renderSlot as S, normalizeProps as E, guardReactiveProps as Y, createElementVNode as f, createTextVNode as j, Fragment as u, renderList as I, toDisplayString as T, mergeProps as $, withDirectives as et, vModelCheckbox as tt } from "vue";
|
|
16
|
-
import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const at = Z(), rt = {
|
|
1
|
+
import { Q as H, Z, a7 as le, a8 as K, a9 as re, aa as ae, ab as ie, ac as se, ad as ne, c as J, 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 me, a6 as be, e as xe, r as Fe, f as Q, 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, a4 as ve, ai as pe, i as ze, G as Me, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-BHEd2dgu.js";
|
|
2
|
+
import { u as We } from "./useMouse-AicQS8Vf.js";
|
|
3
|
+
import { u as j } from "./useNestedProp-CZztHZIm.js";
|
|
4
|
+
import { S as Ee } from "./Slicer-DXpA-pZk.js";
|
|
5
|
+
import Be from "./Title-Bc66VstS.js";
|
|
6
|
+
import { defineAsyncComponent as W, resolveComponent as R, createElementBlock as i, openBlock as a, normalizeStyle as x, normalizeClass as B, createBlock as E, createCommentVNode as d, createVNode as U, createSlots as Ye, withCtx as V, renderSlot as S, normalizeProps as Y, guardReactiveProps as q, createElementVNode as f, createTextVNode as $, Fragment as u, renderList as I, toDisplayString as T, mergeProps as ee, withDirectives as qe, vModelCheckbox as Xe } from "vue";
|
|
7
|
+
import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const Ze = J(), Je = {
|
|
18
9
|
name: "vue-ui-xy",
|
|
19
10
|
props: {
|
|
20
11
|
config: {
|
|
@@ -31,18 +22,20 @@ const at = Z(), rt = {
|
|
|
31
22
|
}
|
|
32
23
|
},
|
|
33
24
|
components: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
Title:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
25
|
+
Slicer: Ee,
|
|
26
|
+
// Must be ready in responsive mode
|
|
27
|
+
Title: Be,
|
|
28
|
+
// Must be ready in responsive mode
|
|
29
|
+
DataTable: W(() => import("./DataTable-Y5HbiUZU.js")),
|
|
30
|
+
Shape: W(() => import("./Shape-B6kIkp2s.js")),
|
|
31
|
+
Tooltip: W(() => import("./Tooltip-B07vY6jm.js")),
|
|
32
|
+
UserOptions: W(() => import("./UserOptions-C8X2STEg.js")),
|
|
33
|
+
BaseIcon: W(() => import("./BaseIcon-DhWmrDAn.js")),
|
|
34
|
+
TableSparkline: W(() => import("./vue-ui-table-sparkline-D7C5AiCp.js")),
|
|
35
|
+
Skeleton: W(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")),
|
|
36
|
+
Accordion: W(() => import("./vue-ui-accordion-DntThSTF.js")),
|
|
37
|
+
PackageVersion: W(() => import("./PackageVersion-DaWGaZxE.js")),
|
|
38
|
+
PenAndPaper: W(() => import("./PenAndPaper-C-CpE0NC.js"))
|
|
46
39
|
},
|
|
47
40
|
data() {
|
|
48
41
|
this.dataset.forEach((g, l) => {
|
|
@@ -53,20 +46,22 @@ const at = Z(), rt = {
|
|
|
53
46
|
index: l
|
|
54
47
|
});
|
|
55
48
|
});
|
|
56
|
-
const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500,
|
|
49
|
+
const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, s = Math.max(...this.dataset.map((g) => this.largestTriangleThreeBucketsArray({ data: g.series, threshold: t }).length)), o = {
|
|
57
50
|
start: 0,
|
|
58
|
-
end:
|
|
51
|
+
end: s
|
|
59
52
|
};
|
|
60
53
|
return {
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
resizeObserver: null,
|
|
55
|
+
observedEl: null,
|
|
56
|
+
themePalettes: De,
|
|
57
|
+
themes: He,
|
|
63
58
|
slicerStep: 0,
|
|
64
59
|
selectedScale: null,
|
|
65
60
|
CTX: null,
|
|
66
61
|
CANVAS: null,
|
|
67
|
-
opacity:
|
|
62
|
+
opacity: Re,
|
|
68
63
|
useSafeValues: !0,
|
|
69
|
-
palette:
|
|
64
|
+
palette: Ve,
|
|
70
65
|
height: 600,
|
|
71
66
|
width: 1e3,
|
|
72
67
|
viewBox: "0 0 1000 600",
|
|
@@ -100,16 +95,16 @@ const at = Z(), rt = {
|
|
|
100
95
|
selectedSerieIndex: null,
|
|
101
96
|
selectedRowIndex: null,
|
|
102
97
|
segregatedSeries: [],
|
|
103
|
-
uniqueId:
|
|
98
|
+
uniqueId: J(),
|
|
104
99
|
step: 0,
|
|
105
100
|
tableStep: 0,
|
|
106
101
|
titleStep: 0,
|
|
107
102
|
slicer: o,
|
|
108
103
|
__to__: null,
|
|
109
|
-
maxX:
|
|
104
|
+
maxX: s,
|
|
110
105
|
showSparklineTable: !0,
|
|
111
106
|
segregateStep: 0,
|
|
112
|
-
sliderId:
|
|
107
|
+
sliderId: Ze,
|
|
113
108
|
fontSizes: {
|
|
114
109
|
xAxis: 18,
|
|
115
110
|
yAxis: 12,
|
|
@@ -130,7 +125,7 @@ const at = Z(), rt = {
|
|
|
130
125
|
},
|
|
131
126
|
watch: {
|
|
132
127
|
dataset: {
|
|
133
|
-
handler(t,
|
|
128
|
+
handler(t, s) {
|
|
134
129
|
this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
|
|
135
130
|
data: o.series,
|
|
136
131
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
@@ -142,7 +137,7 @@ const at = Z(), rt = {
|
|
|
142
137
|
deep: !0
|
|
143
138
|
},
|
|
144
139
|
config: {
|
|
145
|
-
handler(t,
|
|
140
|
+
handler(t, s) {
|
|
146
141
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
|
|
147
142
|
dataLabels: {
|
|
148
143
|
show: !0
|
|
@@ -158,8 +153,8 @@ const at = Z(), rt = {
|
|
|
158
153
|
},
|
|
159
154
|
computed: {
|
|
160
155
|
chartAriaLabel() {
|
|
161
|
-
const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization",
|
|
162
|
-
return `${t}. ${
|
|
156
|
+
const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization", s = this.FINAL_CONFIG.chart.title.subtitle.text || "";
|
|
157
|
+
return `${t}. ${s}`;
|
|
163
158
|
},
|
|
164
159
|
optimize() {
|
|
165
160
|
return {
|
|
@@ -171,8 +166,8 @@ const at = Z(), rt = {
|
|
|
171
166
|
},
|
|
172
167
|
minimap() {
|
|
173
168
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
174
|
-
const t = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)),
|
|
175
|
-
for (let l = 0; l <
|
|
169
|
+
const t = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), s = Math.max(...t.map((l) => l.series.length)), o = [];
|
|
170
|
+
for (let l = 0; l < s; l += 1)
|
|
176
171
|
o.push(t.map((e) => e.series[l] || 0).reduce((e, A) => (e || 0) + (A || 0), 0));
|
|
177
172
|
const g = Math.min(...o);
|
|
178
173
|
return o.map((l) => l + (g < 0 ? Math.abs(g) : 0));
|
|
@@ -199,7 +194,7 @@ const at = Z(), rt = {
|
|
|
199
194
|
yOffset: e.yOffset || 0,
|
|
200
195
|
individualHeight: e.individualHeight || this.drawingArea.height,
|
|
201
196
|
autoScaleYLabels: e.autoScaleYLabels
|
|
202
|
-
})),
|
|
197
|
+
})), s = this.barSet.map((e) => ({
|
|
203
198
|
name: e.name,
|
|
204
199
|
color: e.color,
|
|
205
200
|
scale: e.individualScale,
|
|
@@ -222,7 +217,7 @@ const at = Z(), rt = {
|
|
|
222
217
|
id: e.id,
|
|
223
218
|
yOffset: e.yOffset || 0,
|
|
224
219
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
225
|
-
})), g = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...
|
|
220
|
+
})), g = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...s, ...o], l = g.flatMap((e) => e).length;
|
|
226
221
|
return g.flatMap((e, A) => ({
|
|
227
222
|
unique: e.unique,
|
|
228
223
|
id: e.id,
|
|
@@ -234,9 +229,9 @@ const at = Z(), rt = {
|
|
|
234
229
|
yOffset: e.yOffset,
|
|
235
230
|
individualHeight: e.individualHeight,
|
|
236
231
|
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / l * (A + 1),
|
|
237
|
-
yLabels: e.scaleYLabels || e.scale.ticks.map((
|
|
238
|
-
y:
|
|
239
|
-
value:
|
|
232
|
+
yLabels: e.scaleYLabels || e.scale.ticks.map((b) => ({
|
|
233
|
+
y: b >= 0 ? e.zero - e.individualHeight * (b / e.max) : e.zero + e.individualHeight * Math.abs(b) / e.max,
|
|
234
|
+
value: b
|
|
240
235
|
}))
|
|
241
236
|
}));
|
|
242
237
|
},
|
|
@@ -260,9 +255,9 @@ const at = Z(), rt = {
|
|
|
260
255
|
},
|
|
261
256
|
highlightAreas() {
|
|
262
257
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
263
|
-
return this.FINAL_CONFIG.chart.highlightArea.map((
|
|
264
|
-
...
|
|
265
|
-
span:
|
|
258
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((s) => ({
|
|
259
|
+
...s,
|
|
260
|
+
span: s.from === s.to ? 1 : s.to < s.from ? 0 : s.to - s.from + 1
|
|
266
261
|
}));
|
|
267
262
|
const t = this.FINAL_CONFIG.chart.highlightArea;
|
|
268
263
|
return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
|
|
@@ -277,33 +272,33 @@ const at = Z(), rt = {
|
|
|
277
272
|
return this.niceScale.max + this.relativeZero;
|
|
278
273
|
},
|
|
279
274
|
datasetWithIds() {
|
|
280
|
-
return this.useSafeValues ? this.dataset.map((t,
|
|
275
|
+
return this.useSafeValues ? this.dataset.map((t, s) => ({
|
|
281
276
|
...t,
|
|
282
277
|
series: this.largestTriangleThreeBucketsArray({
|
|
283
278
|
data: t.series,
|
|
284
279
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
285
280
|
}),
|
|
286
|
-
id: `uniqueId_${
|
|
281
|
+
id: `uniqueId_${s}`
|
|
287
282
|
})) : this.dataset;
|
|
288
283
|
},
|
|
289
284
|
safeDataset() {
|
|
290
|
-
return this.useSafeValues ? this.dataset.map((t,
|
|
285
|
+
return this.useSafeValues ? this.dataset.map((t, s) => {
|
|
291
286
|
const o = this.largestTriangleThreeBucketsArray({
|
|
292
287
|
data: t.series,
|
|
293
288
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
294
|
-
}), g = `uniqueId_${
|
|
289
|
+
}), g = `uniqueId_${s}`;
|
|
295
290
|
return {
|
|
296
291
|
...t,
|
|
297
|
-
slotAbsoluteIndex:
|
|
292
|
+
slotAbsoluteIndex: s,
|
|
298
293
|
series: o.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
|
|
299
|
-
color: this.convertColorToHex(t.color ? t.color : this.customPalette[
|
|
294
|
+
color: this.convertColorToHex(t.color ? t.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
|
|
300
295
|
id: g,
|
|
301
296
|
scaleLabel: t.scaleLabel || g
|
|
302
297
|
};
|
|
303
298
|
}) : this.dataset;
|
|
304
299
|
},
|
|
305
300
|
relativeDataset() {
|
|
306
|
-
return this.safeDataset.map((t,
|
|
301
|
+
return this.safeDataset.map((t, s) => ({
|
|
307
302
|
...t,
|
|
308
303
|
series: t.series.map((o) => o + this.relativeZero),
|
|
309
304
|
absoluteValues: t.series
|
|
@@ -311,12 +306,12 @@ const at = Z(), rt = {
|
|
|
311
306
|
},
|
|
312
307
|
tableSparklineDataset() {
|
|
313
308
|
return this.relativeDataset.map((t) => {
|
|
314
|
-
const
|
|
309
|
+
const s = t.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
|
|
315
310
|
return {
|
|
316
311
|
id: t.id,
|
|
317
312
|
name: t.name,
|
|
318
313
|
color: t.color,
|
|
319
|
-
values: this.fillArray(this.maxSeries,
|
|
314
|
+
values: this.fillArray(this.maxSeries, s)
|
|
320
315
|
};
|
|
321
316
|
});
|
|
322
317
|
},
|
|
@@ -347,8 +342,8 @@ const at = Z(), rt = {
|
|
|
347
342
|
};
|
|
348
343
|
},
|
|
349
344
|
absoluteDataset() {
|
|
350
|
-
return this.safeDataset.map((t,
|
|
351
|
-
absoluteIndex:
|
|
345
|
+
return this.safeDataset.map((t, s) => ({
|
|
346
|
+
absoluteIndex: s,
|
|
352
347
|
...t,
|
|
353
348
|
series: t.series.map((o) => o + this.relativeZero),
|
|
354
349
|
absoluteValues: t.series,
|
|
@@ -363,19 +358,19 @@ const at = Z(), rt = {
|
|
|
363
358
|
return this.assignStackRatios(this.absoluteDataset.filter((t) => !this.segregatedSeries.includes(t.id)));
|
|
364
359
|
},
|
|
365
360
|
scaleGroups() {
|
|
366
|
-
const t = Object.groupBy(this.activeSeriesWithStackRatios, (o) => o.scaleLabel),
|
|
361
|
+
const t = Object.groupBy(this.activeSeriesWithStackRatios, (o) => o.scaleLabel), s = {};
|
|
367
362
|
for (const [o, g] of Object.entries(t)) {
|
|
368
363
|
const l = g.flatMap((e) => e.absoluteValues);
|
|
369
|
-
|
|
364
|
+
s[o] = {
|
|
370
365
|
min: Math.min(...l) || 0,
|
|
371
366
|
max: Math.max(...l) || 1,
|
|
372
367
|
groupId: `scale_group_${this.createUid()}`
|
|
373
368
|
};
|
|
374
369
|
}
|
|
375
|
-
return
|
|
370
|
+
return s;
|
|
376
371
|
},
|
|
377
372
|
barSet() {
|
|
378
|
-
return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t,
|
|
373
|
+
return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t, s) => {
|
|
379
374
|
this.checkAutoScaleError(t);
|
|
380
375
|
const o = this.scaleGroups[t.scaleLabel].min, g = this.scaleGroups[t.scaleLabel].max;
|
|
381
376
|
t.absoluteValues.filter((_) => ![null, void 0].includes(_)).map((_) => (_ - o) / (g - o));
|
|
@@ -385,32 +380,32 @@ const at = Z(), rt = {
|
|
|
385
380
|
}, e = {
|
|
386
381
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
387
382
|
min: t.scaleMin || Math.min(...t.absoluteValues.filter((_) => ![void 0, null].includes(_))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((_) => ![null, void 0].includes(_)))
|
|
388
|
-
}, A = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
389
|
-
const
|
|
383
|
+
}, A = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * b : e.max, A), L = this.calculateNiceScaleWithExactExtremes(l.valueMin, l.valueMax === l.valueMin ? l.valueMax * b : l.valueMax, A), v = N.min >= 0 ? 0 : Math.abs(N.min), k = 0, w = N.max + v, O = L.max + Math.abs(k), 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, G = this.drawingArea.bottom - F - C * v / w, p = this.drawingArea.bottom - F - C * k / O, r = this.absoluteDataset.filter((_) => _.type === "bar").filter((_) => !this.segregatedSeries.includes(_.id)).length, c = t.series.map((_, M) => {
|
|
384
|
+
const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[M] + v) / w : this.ratioToMax(_), D = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left + this.slot.bar * s + this.slot.bar * M * r - this.barSlot / 2 - s * this.barPeriodGap;
|
|
390
385
|
return {
|
|
391
386
|
yOffset: this.checkNaN(F),
|
|
392
387
|
individualHeight: this.checkNaN(C),
|
|
393
388
|
x: this.checkNaN(D),
|
|
394
|
-
y: this.drawingArea.bottom - F - C *
|
|
389
|
+
y: this.drawingArea.bottom - F - C * X,
|
|
395
390
|
value: t.absoluteValues[M],
|
|
396
|
-
zeroPosition: this.checkNaN(
|
|
397
|
-
individualMax: this.checkNaN(
|
|
391
|
+
zeroPosition: this.checkNaN(G),
|
|
392
|
+
individualMax: this.checkNaN(w),
|
|
398
393
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
399
394
|
};
|
|
400
|
-
}),
|
|
401
|
-
const
|
|
395
|
+
}), n = t.absoluteValues.map((_) => L.min >= 0 ? (_ - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (_ + Math.abs(L.min)) / (L.max + Math.abs(L.min))), h = t.series.map((_, M) => {
|
|
396
|
+
const X = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * M * this.absoluteDataset.filter((D) => D.type === "bar").filter((D) => !this.segregatedSeries.includes(D.id)).length;
|
|
402
397
|
return {
|
|
403
398
|
yOffset: this.checkNaN(F),
|
|
404
399
|
individualHeight: this.checkNaN(C),
|
|
405
|
-
x: this.checkNaN(
|
|
406
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) *
|
|
400
|
+
x: this.checkNaN(X),
|
|
401
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * n[M] || 0)),
|
|
407
402
|
value: t.absoluteValues[M],
|
|
408
|
-
zeroPosition: this.checkNaN(
|
|
409
|
-
individualMax: this.checkNaN(
|
|
403
|
+
zeroPosition: this.checkNaN(G),
|
|
404
|
+
individualMax: this.checkNaN(w),
|
|
410
405
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
411
406
|
};
|
|
412
407
|
}), y = N.ticks.map((_) => ({
|
|
413
|
-
y: _ >= 0 ?
|
|
408
|
+
y: _ >= 0 ? G - C * (_ / w) : G + C * Math.abs(_) / w,
|
|
414
409
|
value: _,
|
|
415
410
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
416
411
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -425,15 +420,15 @@ const at = Z(), rt = {
|
|
|
425
420
|
datapoint: t
|
|
426
421
|
};
|
|
427
422
|
});
|
|
428
|
-
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 ? z : y, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? p :
|
|
423
|
+
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 ? z : y, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? p : G, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? O : w, 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 = z, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((_) => _.scaleLabel === t.scaleLabel).length === 1, {
|
|
429
424
|
...t,
|
|
430
425
|
yOffset: F,
|
|
431
426
|
autoScaleYLabels: z,
|
|
432
427
|
individualHeight: C,
|
|
433
428
|
scaleYLabels: t.autoScaling ? z : y,
|
|
434
429
|
individualScale: t.autoScaling ? L : N,
|
|
435
|
-
individualMax: t.autoScaling ?
|
|
436
|
-
zeroPosition: t.autoScaling ? p :
|
|
430
|
+
individualMax: t.autoScaling ? O : w,
|
|
431
|
+
zeroPosition: t.autoScaling ? p : G,
|
|
437
432
|
plots: t.autoScaling ? h : c,
|
|
438
433
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
439
434
|
};
|
|
@@ -442,33 +437,33 @@ const at = Z(), rt = {
|
|
|
442
437
|
lineSet() {
|
|
443
438
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "line").map((t) => {
|
|
444
439
|
this.checkAutoScaleError(t);
|
|
445
|
-
const
|
|
446
|
-
t.absoluteValues.filter((m) => ![null, void 0].includes(m)).map((m) => (m -
|
|
440
|
+
const s = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
|
|
441
|
+
t.absoluteValues.filter((m) => ![null, void 0].includes(m)).map((m) => (m - s) / (o - s));
|
|
447
442
|
const g = {
|
|
448
|
-
valueMin:
|
|
443
|
+
valueMin: s,
|
|
449
444
|
valueMax: o
|
|
450
445
|
}, l = {
|
|
451
446
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
452
447
|
min: t.scaleMin || (Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues))
|
|
453
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001,
|
|
454
|
-
const
|
|
448
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, b = this.calculateNiceScaleWithExactExtremes(l.min, l.max === l.min ? l.max * A : l.max, e), N = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * A : g.valueMax, e), L = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, k = b.max + Math.abs(L), w = N.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 * L / k, G = this.drawingArea.bottom - O - F * v / w, p = t.series.map((m, P) => {
|
|
449
|
+
const te = this.mutableConfig.useIndividualScale ? (t.absoluteValues[P] + Math.abs(L)) / k : this.ratioToMax(m);
|
|
455
450
|
return {
|
|
456
451
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
457
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
452
|
+
y: this.checkNaN(this.drawingArea.bottom - O - F * te),
|
|
458
453
|
value: t.absoluteValues[P],
|
|
459
454
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
460
455
|
};
|
|
461
|
-
}),
|
|
456
|
+
}), r = t.absoluteValues.map((m) => N.min >= 0 ? (m - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (m + Math.abs(N.min)) / (N.max + Math.abs(N.min))), c = t.series.map((m, P) => [void 0, null].includes(t.absoluteValues[P]) ? {
|
|
462
457
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
463
458
|
y: C,
|
|
464
459
|
value: t.absoluteValues[P],
|
|
465
460
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
466
461
|
} : {
|
|
467
462
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
468
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
463
|
+
y: this.checkNaN(this.drawingArea.bottom - O - (F * r[P] || 0)),
|
|
469
464
|
value: t.absoluteValues[P],
|
|
470
465
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
471
|
-
}),
|
|
466
|
+
}), n = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(p) : this.createSmoothPath(p.filter((m) => m.value !== null)), h = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(c) : this.createSmoothPath(c.filter((m) => m.value !== null)), y = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(p) : this.createStraightPath(p.filter((m) => m.value !== null)), z = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(c) : this.createStraightPath(c.filter((m) => m.value !== null)), _ = b.ticks.map((m) => ({
|
|
472
467
|
y: m >= 0 ? C - F * (m / k) : C + F * Math.abs(m) / k,
|
|
473
468
|
value: m,
|
|
474
469
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
@@ -477,25 +472,25 @@ const at = Z(), rt = {
|
|
|
477
472
|
})), M = N.ticks.map((m) => {
|
|
478
473
|
const P = (m - N.min) / (N.max - N.min);
|
|
479
474
|
return {
|
|
480
|
-
y: m >= 0 ?
|
|
475
|
+
y: m >= 0 ? G - F * P : G + F * P,
|
|
481
476
|
value: m,
|
|
482
477
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
483
478
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
484
479
|
datapoint: t
|
|
485
480
|
};
|
|
486
481
|
});
|
|
487
|
-
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 : _, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ?
|
|
488
|
-
const
|
|
482
|
+
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 : _, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? G : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? w : k, 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 = M, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((m) => m.scaleLabel === t.scaleLabel).length === 1;
|
|
483
|
+
const X = this.mutableConfig.useIndividualScale ? t.autoScaling ? G : C : this.zero, D = Math.max(Math.max(t.autoScaling ? G : _.at(-1).y, this.drawingArea.top), X);
|
|
489
484
|
return {
|
|
490
485
|
...t,
|
|
491
|
-
yOffset:
|
|
486
|
+
yOffset: O,
|
|
492
487
|
autoScaleYLabels: M,
|
|
493
488
|
individualHeight: F,
|
|
494
489
|
scaleYLabels: t.autoScaling ? M : _,
|
|
495
|
-
individualScale: t.autoScaling ? N :
|
|
496
|
-
individualMax: t.autoScaling ?
|
|
497
|
-
zeroPosition: t.autoScaling ?
|
|
498
|
-
curve: t.autoScaling ? h :
|
|
490
|
+
individualScale: t.autoScaling ? N : b,
|
|
491
|
+
individualMax: t.autoScaling ? w : k,
|
|
492
|
+
zeroPosition: t.autoScaling ? G : C,
|
|
493
|
+
curve: t.autoScaling ? h : n,
|
|
499
494
|
plots: t.autoScaling ? c : p,
|
|
500
495
|
area: t.useArea ? this.mutableConfig.useIndividualScale ? this.FINAL_CONFIG.line.cutNullValues ? this.createIndividualAreaWithCuts(
|
|
501
496
|
t.autoScaling ? c : p,
|
|
@@ -504,7 +499,7 @@ const at = Z(), rt = {
|
|
|
504
499
|
t.autoScaling ? c.filter((m) => m.value !== null) : p.filter((m) => m.value !== null),
|
|
505
500
|
D
|
|
506
501
|
) : this.createIndividualArea(p.filter((m) => m.value !== null), D) : "",
|
|
507
|
-
curveAreas: t.useArea ?
|
|
502
|
+
curveAreas: t.useArea ? K(
|
|
508
503
|
t.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? c : c.filter((m) => m.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? p : p.filter((m) => m.value !== null),
|
|
509
504
|
D,
|
|
510
505
|
this.FINAL_CONFIG.line.cutNullValues
|
|
@@ -517,28 +512,28 @@ const at = Z(), rt = {
|
|
|
517
512
|
plotSet() {
|
|
518
513
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "plot").map((t) => {
|
|
519
514
|
this.checkAutoScaleError(t);
|
|
520
|
-
const
|
|
521
|
-
t.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y -
|
|
515
|
+
const s = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
|
|
516
|
+
t.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - s) / (o - s));
|
|
522
517
|
const g = {
|
|
523
|
-
valueMin:
|
|
518
|
+
valueMin: s,
|
|
524
519
|
valueMax: o
|
|
525
520
|
}, l = {
|
|
526
521
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
527
522
|
min: t.scaleMin || Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues)
|
|
528
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001,
|
|
523
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, b = this.calculateNiceScaleWithExactExtremes(l.min, l.max === l.min ? l.max * A : l.max, e), N = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * A : g.valueMax, e), L = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, k = b.max + L, w = N.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 * L / k, G = this.drawingArea.bottom - O - F * v / w, p = t.series.map((y, z) => {
|
|
529
524
|
const _ = this.mutableConfig.useIndividualScale ? (t.absoluteValues[z] + Math.abs(L)) / k : this.ratioToMax(y);
|
|
530
525
|
return {
|
|
531
526
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * z),
|
|
532
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
527
|
+
y: this.checkNaN(this.drawingArea.bottom - O - F * _),
|
|
533
528
|
value: t.absoluteValues[z],
|
|
534
529
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
|
|
535
530
|
};
|
|
536
|
-
}),
|
|
531
|
+
}), r = t.absoluteValues.map((y) => N.min >= 0 ? (y - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (y + Math.abs(N.min)) / (N.max + Math.abs(N.min))), c = t.series.map((y, z) => ({
|
|
537
532
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * z),
|
|
538
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
533
|
+
y: this.checkNaN(this.drawingArea.bottom - O - (F * r[z] || 0)),
|
|
539
534
|
value: t.absoluteValues[z],
|
|
540
535
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
|
|
541
|
-
})),
|
|
536
|
+
})), n = b.ticks.map((y) => ({
|
|
542
537
|
y: y >= 0 ? C - F * (y / k) : C + F * Math.abs(y) / k,
|
|
543
538
|
value: y,
|
|
544
539
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
@@ -547,22 +542,22 @@ const at = Z(), rt = {
|
|
|
547
542
|
})), h = N.ticks.map((y) => {
|
|
548
543
|
const z = (y - N.min) / (N.max - N.min);
|
|
549
544
|
return {
|
|
550
|
-
y: y >= 0 ?
|
|
545
|
+
y: y >= 0 ? G - F * z : G + F * z,
|
|
551
546
|
value: y,
|
|
552
547
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
553
548
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
554
549
|
datapoint: t
|
|
555
550
|
};
|
|
556
551
|
});
|
|
557
|
-
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 :
|
|
552
|
+
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 ? G : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? w : k, 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((y) => y.scaleLabel === t.scaleLabel).length === 1, {
|
|
558
553
|
...t,
|
|
559
|
-
yOffset:
|
|
554
|
+
yOffset: O,
|
|
560
555
|
autoScaleYLabels: h,
|
|
561
556
|
individualHeight: F,
|
|
562
|
-
scaleYLabels: t.autoScaling ? h :
|
|
563
|
-
individualScale: t.autoScaling ? N :
|
|
564
|
-
individualMax: t.autoScaling ?
|
|
565
|
-
zeroPosition: t.autoScaling ?
|
|
557
|
+
scaleYLabels: t.autoScaling ? h : n,
|
|
558
|
+
individualScale: t.autoScaling ? N : b,
|
|
559
|
+
individualMax: t.autoScaling ? w : k,
|
|
560
|
+
zeroPosition: t.autoScaling ? G : C,
|
|
566
561
|
plots: t.autoScaling ? c : p,
|
|
567
562
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
568
563
|
};
|
|
@@ -576,7 +571,7 @@ const at = Z(), rt = {
|
|
|
576
571
|
l.add(A);
|
|
577
572
|
}), l.size;
|
|
578
573
|
}
|
|
579
|
-
const
|
|
574
|
+
const s = t(this.absoluteDataset.filter((g) => !this.segregatedSeries.includes(g.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;
|
|
580
575
|
return {
|
|
581
576
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
582
577
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
@@ -592,7 +587,7 @@ const at = Z(), rt = {
|
|
|
592
587
|
min() {
|
|
593
588
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
594
589
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
595
|
-
const t = Math.min(...this.safeDataset.filter((
|
|
590
|
+
const t = Math.min(...this.safeDataset.filter((s) => !this.segregatedSeries.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
596
591
|
return t > 0 ? 0 : t;
|
|
597
592
|
},
|
|
598
593
|
niceScale() {
|
|
@@ -602,13 +597,13 @@ const at = Z(), rt = {
|
|
|
602
597
|
return this.slicer.end - this.slicer.start;
|
|
603
598
|
},
|
|
604
599
|
timeLabels() {
|
|
605
|
-
const t = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)),
|
|
600
|
+
const t = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), s = [];
|
|
606
601
|
for (let o = 0; o < t; o += 1)
|
|
607
|
-
|
|
602
|
+
s.push({
|
|
608
603
|
text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
|
|
609
604
|
absoluteIndex: o
|
|
610
605
|
});
|
|
611
|
-
return
|
|
606
|
+
return s.slice(this.slicer.start, this.slicer.end);
|
|
612
607
|
},
|
|
613
608
|
slot() {
|
|
614
609
|
return {
|
|
@@ -618,7 +613,7 @@ const at = Z(), rt = {
|
|
|
618
613
|
};
|
|
619
614
|
},
|
|
620
615
|
barSlot() {
|
|
621
|
-
const t = this.safeDataset.filter((
|
|
616
|
+
const t = this.safeDataset.filter((s) => s.type === "bar").filter((s) => !this.segregatedSeries.includes(s.id)).length;
|
|
622
617
|
return this.drawingArea.width / this.maxSeries / t - this.barPeriodGap * t;
|
|
623
618
|
},
|
|
624
619
|
barPeriodGap() {
|
|
@@ -633,32 +628,32 @@ const at = Z(), rt = {
|
|
|
633
628
|
label: o.name,
|
|
634
629
|
color: o.color,
|
|
635
630
|
type: o.type
|
|
636
|
-
})),
|
|
631
|
+
})), s = [];
|
|
637
632
|
return this.timeLabels.forEach((o, g) => {
|
|
638
633
|
const l = [o.text];
|
|
639
634
|
this.relativeDataset.forEach((e) => {
|
|
640
635
|
l.push(this.canShowValue(e.absoluteValues[g]) ? Number(e.absoluteValues[g].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
641
|
-
}),
|
|
642
|
-
}), { head: t, body:
|
|
636
|
+
}), s.push(l);
|
|
637
|
+
}), { head: t, body: s };
|
|
643
638
|
},
|
|
644
639
|
dataTable() {
|
|
645
640
|
const t = this.FINAL_CONFIG.table.showSum;
|
|
646
|
-
let
|
|
647
|
-
t && (
|
|
641
|
+
let s = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
642
|
+
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>'));
|
|
648
643
|
let o = [];
|
|
649
644
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
650
|
-
const A = this.relativeDataset.map((
|
|
645
|
+
const A = this.relativeDataset.map((b) => b.absoluteValues[e] ?? 0).reduce((b, N) => b + N, 0);
|
|
651
646
|
o.push(
|
|
652
647
|
[
|
|
653
648
|
this.timeLabels[e].text ?? "-"
|
|
654
649
|
].concat(this.relativeDataset.map(
|
|
655
|
-
(
|
|
656
|
-
|
|
657
|
-
|
|
650
|
+
(b) => this.applyDataLabel(
|
|
651
|
+
b.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : b.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
652
|
+
b.absoluteValues[e] ?? 0,
|
|
658
653
|
this.dataLabel({
|
|
659
|
-
p:
|
|
660
|
-
v:
|
|
661
|
-
s:
|
|
654
|
+
p: b.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
655
|
+
v: b.absoluteValues[e] ?? 0,
|
|
656
|
+
s: b.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
662
657
|
r: this.FINAL_CONFIG.table.rounding
|
|
663
658
|
})
|
|
664
659
|
)
|
|
@@ -678,7 +673,7 @@ const at = Z(), rt = {
|
|
|
678
673
|
},
|
|
679
674
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
680
675
|
}, l = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
681
|
-
return { head:
|
|
676
|
+
return { head: s, body: o, config: g, colNames: l };
|
|
682
677
|
},
|
|
683
678
|
dataTooltipSlot() {
|
|
684
679
|
return {
|
|
@@ -698,14 +693,14 @@ const at = Z(), rt = {
|
|
|
698
693
|
name: t.name,
|
|
699
694
|
color: t.color,
|
|
700
695
|
type: t.type,
|
|
701
|
-
value: t.absoluteValues.find((
|
|
696
|
+
value: t.absoluteValues.find((s, o) => o === this.selectedSerieIndex),
|
|
702
697
|
comments: t.comments || [],
|
|
703
698
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
704
699
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
705
700
|
}));
|
|
706
701
|
},
|
|
707
702
|
tooltipContent() {
|
|
708
|
-
let t = "",
|
|
703
|
+
let t = "", s = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
|
|
709
704
|
const o = this.timeLabels[this.selectedSerieIndex], g = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
710
705
|
return this.isFunction(g) && this.functionReturnsString(() => g({
|
|
711
706
|
seriesIndex: this.selectedSerieIndex,
|
|
@@ -731,7 +726,7 @@ const at = Z(), rt = {
|
|
|
731
726
|
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="${l.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${l.slotAbsoluteIndex}` : l.color}" /></svg>`;
|
|
732
727
|
break;
|
|
733
728
|
case "line":
|
|
734
|
-
!l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape) ? A = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" />` : l.shape === "triangle" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "square" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "diamond" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "pentagon" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "hexagon" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "star" && (A = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" points="${
|
|
729
|
+
!l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape) ? A = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" />` : l.shape === "triangle" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "square" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "diamond" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "pentagon" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "hexagon" ? A = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "star" && (A = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.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="${l.color}" />${A}</svg>`;
|
|
735
730
|
break;
|
|
736
731
|
case "plot":
|
|
737
732
|
if (!l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape)) {
|
|
@@ -739,7 +734,7 @@ const at = Z(), rt = {
|
|
|
739
734
|
break;
|
|
740
735
|
}
|
|
741
736
|
if (l.shape === "star") {
|
|
742
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${
|
|
737
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${Z({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
743
738
|
break;
|
|
744
739
|
}
|
|
745
740
|
if (l.shape === "triangle") {
|
|
@@ -773,8 +768,8 @@ const at = Z(), rt = {
|
|
|
773
768
|
r: this.FINAL_CONFIG.chart.tooltip.roundingValue
|
|
774
769
|
}),
|
|
775
770
|
{ datapoint: l }
|
|
776
|
-
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${
|
|
777
|
-
v: this.checkNaN(Math.abs(l.value) /
|
|
771
|
+
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${Q({
|
|
772
|
+
v: this.checkNaN(Math.abs(l.value) / s * 100),
|
|
778
773
|
s: "%",
|
|
779
774
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
780
775
|
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && l.comments.length && l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (t += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${l.color}">${l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
@@ -808,54 +803,54 @@ const at = Z(), rt = {
|
|
|
808
803
|
}), document.addEventListener("scroll", this.hideTags);
|
|
809
804
|
},
|
|
810
805
|
beforeUnmount() {
|
|
811
|
-
document.removeEventListener("scroll", this.hideTags);
|
|
806
|
+
document.removeEventListener("scroll", this.hideTags), this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
812
807
|
},
|
|
813
808
|
methods: {
|
|
814
|
-
abbreviate:
|
|
815
|
-
adaptColorToBackground:
|
|
816
|
-
applyDataLabel:
|
|
817
|
-
assignStackRatios:
|
|
818
|
-
calcLinearProgression:
|
|
819
|
-
calculateNiceScaleWithExactExtremes:
|
|
820
|
-
checkNaN:
|
|
821
|
-
closestDecimal:
|
|
822
|
-
convertColorToHex:
|
|
823
|
-
convertConfigColors:
|
|
824
|
-
convertCustomPalette:
|
|
825
|
-
createCsvContent:
|
|
826
|
-
createSmoothPath:
|
|
827
|
-
createStraightPath:
|
|
828
|
-
createTSpans:
|
|
829
|
-
dataLabel:
|
|
830
|
-
downloadCsv:
|
|
809
|
+
abbreviate: Te,
|
|
810
|
+
adaptColorToBackground: Me,
|
|
811
|
+
applyDataLabel: ze,
|
|
812
|
+
assignStackRatios: pe,
|
|
813
|
+
calcLinearProgression: ve,
|
|
814
|
+
calculateNiceScaleWithExactExtremes: Ge,
|
|
815
|
+
checkNaN: Oe,
|
|
816
|
+
closestDecimal: we,
|
|
817
|
+
convertColorToHex: ke,
|
|
818
|
+
convertConfigColors: Se,
|
|
819
|
+
convertCustomPalette: Ce,
|
|
820
|
+
createCsvContent: Le,
|
|
821
|
+
createSmoothPath: Ae,
|
|
822
|
+
createStraightPath: ye,
|
|
823
|
+
createTSpans: _e,
|
|
824
|
+
dataLabel: Q,
|
|
825
|
+
downloadCsv: Fe,
|
|
831
826
|
error: xe,
|
|
832
|
-
forceValidValue:
|
|
833
|
-
functionReturnsString:
|
|
834
|
-
hasDeepProperty:
|
|
835
|
-
isFunction:
|
|
836
|
-
isSafeValue:
|
|
837
|
-
largestTriangleThreeBucketsArray:
|
|
838
|
-
objectIsEmpty:
|
|
839
|
-
setOpacity:
|
|
840
|
-
shiftHue:
|
|
841
|
-
translateSize:
|
|
842
|
-
treeShake:
|
|
843
|
-
useMouse:
|
|
844
|
-
useNestedProp:
|
|
845
|
-
createUid:
|
|
846
|
-
placeXYTag:
|
|
847
|
-
createSmoothPathWithCuts:
|
|
848
|
-
createStraightPathWithCuts:
|
|
827
|
+
forceValidValue: be,
|
|
828
|
+
functionReturnsString: me,
|
|
829
|
+
hasDeepProperty: Ne,
|
|
830
|
+
isFunction: Ie,
|
|
831
|
+
isSafeValue: fe,
|
|
832
|
+
largestTriangleThreeBucketsArray: ge,
|
|
833
|
+
objectIsEmpty: de,
|
|
834
|
+
setOpacity: ue,
|
|
835
|
+
shiftHue: he,
|
|
836
|
+
translateSize: oe,
|
|
837
|
+
treeShake: ce,
|
|
838
|
+
useMouse: We,
|
|
839
|
+
useNestedProp: j,
|
|
840
|
+
createUid: J,
|
|
841
|
+
placeXYTag: ne,
|
|
842
|
+
createSmoothPathWithCuts: se,
|
|
843
|
+
createStraightPathWithCuts: ie,
|
|
849
844
|
createAreaWithCuts: ae,
|
|
850
|
-
createIndividualAreaWithCuts:
|
|
851
|
-
createSmoothAreaSegments:
|
|
852
|
-
createIndividualArea:
|
|
845
|
+
createIndividualAreaWithCuts: re,
|
|
846
|
+
createSmoothAreaSegments: K,
|
|
847
|
+
createIndividualArea: le,
|
|
853
848
|
hideTags() {
|
|
854
849
|
const t = document.querySelectorAll(".vue-ui-xy-tag");
|
|
855
|
-
t.length && Array.from(t).forEach((
|
|
850
|
+
t.length && Array.from(t).forEach((s) => s.style.opacity = "0");
|
|
856
851
|
},
|
|
857
|
-
setTagRef(t,
|
|
858
|
-
o && (this.tagRefs[`${t}_${
|
|
852
|
+
setTagRef(t, s, o, g, l) {
|
|
853
|
+
o && (this.tagRefs[`${t}_${s}_${g}_${l}`] = o);
|
|
859
854
|
},
|
|
860
855
|
setUserOptionsVisibility(t = !1) {
|
|
861
856
|
this.showUserOptionsOnChartHover && (this.userOptionsVisible = t);
|
|
@@ -863,13 +858,13 @@ const at = Z(), rt = {
|
|
|
863
858
|
toggleAnnotator() {
|
|
864
859
|
this.isAnnotator = !this.isAnnotator;
|
|
865
860
|
},
|
|
866
|
-
selectTimeLabel(t,
|
|
861
|
+
selectTimeLabel(t, s) {
|
|
867
862
|
const o = this.relativeDataset.map((g) => ({
|
|
868
863
|
shape: g.shape || null,
|
|
869
864
|
name: g.name,
|
|
870
865
|
color: g.color,
|
|
871
866
|
type: g.type,
|
|
872
|
-
value: g.absoluteValues.find((l, e) => e ===
|
|
867
|
+
value: g.absoluteValues.find((l, e) => e === s),
|
|
873
868
|
comments: g.comments || [],
|
|
874
869
|
prefix: g.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
875
870
|
suffix: g.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
@@ -881,44 +876,44 @@ const at = Z(), rt = {
|
|
|
881
876
|
});
|
|
882
877
|
},
|
|
883
878
|
getHighlightAreaPosition(t) {
|
|
884
|
-
const
|
|
879
|
+
const s = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
|
|
885
880
|
return {
|
|
886
|
-
x:
|
|
881
|
+
x: s < this.drawingArea.left ? this.drawingArea.left : s,
|
|
887
882
|
width: o
|
|
888
883
|
};
|
|
889
884
|
},
|
|
890
885
|
prepareConfig() {
|
|
891
|
-
const t =
|
|
886
|
+
const t = Pe().vue_ui_xy;
|
|
892
887
|
if (!Object.keys(this.config || {}).length)
|
|
893
888
|
return t;
|
|
894
|
-
const
|
|
889
|
+
const s = this.useNestedProp({
|
|
895
890
|
userConfig: this.config,
|
|
896
891
|
defaultConfig: t
|
|
897
892
|
});
|
|
898
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ?
|
|
899
|
-
...
|
|
900
|
-
userConfig: this.themes.vue_ui_xy[
|
|
901
|
-
defaultConfig:
|
|
893
|
+
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.theme ? {
|
|
894
|
+
...j({
|
|
895
|
+
userConfig: this.themes.vue_ui_xy[s.theme] || this.config,
|
|
896
|
+
defaultConfig: s
|
|
902
897
|
}),
|
|
903
|
-
customPalette: this.themePalettes[
|
|
904
|
-
} :
|
|
898
|
+
customPalette: this.themePalettes[s.theme] || this.palette
|
|
899
|
+
} : s;
|
|
905
900
|
},
|
|
906
901
|
prepareChart() {
|
|
907
902
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
908
903
|
componentName: "VueUiXy",
|
|
909
904
|
type: "dataset"
|
|
910
|
-
}) : this.dataset.forEach((t,
|
|
905
|
+
}) : this.dataset.forEach((t, s) => {
|
|
911
906
|
[null, void 0].includes(t.name) && this.error({
|
|
912
907
|
componentName: "VueUiXy",
|
|
913
908
|
type: "datasetSerieAttribute",
|
|
914
909
|
property: "name (string)",
|
|
915
|
-
index:
|
|
910
|
+
index: s
|
|
916
911
|
});
|
|
917
912
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((t) => {
|
|
918
|
-
t.series.forEach((
|
|
919
|
-
this.isSafeValue(
|
|
920
|
-
-----> The serie '${t.name}' contains the value '${
|
|
921
|
-
'${
|
|
913
|
+
t.series.forEach((s, o) => {
|
|
914
|
+
this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
915
|
+
-----> The serie '${t.name}' contains the value '${s}' at index ${o}.
|
|
916
|
+
'${s}' was converted to null to allow the chart to display.`);
|
|
922
917
|
});
|
|
923
918
|
}), this.showUserOptionsOnChartHover = this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.keepUserOptionState = this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave, this.userOptionsVisible = !this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.mutableConfig = {
|
|
924
919
|
dataLabels: {
|
|
@@ -929,22 +924,26 @@ const at = Z(), rt = {
|
|
|
929
924
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
930
925
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
931
926
|
}, this.FINAL_CONFIG.responsive) {
|
|
932
|
-
const
|
|
927
|
+
const s = this.$refs.chart.parentNode;
|
|
928
|
+
this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
929
|
+
const { height: o, width: g } = s.getBoundingClientRect();
|
|
933
930
|
let l = null, e = 0;
|
|
934
931
|
this.FINAL_CONFIG.chart.title.show && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
|
|
935
|
-
let A = null,
|
|
936
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (A = this.$refs.chartSlicer.$el,
|
|
932
|
+
let A = null, b = 0;
|
|
933
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (A = this.$refs.chartSlicer.$el, b = A.getBoundingClientRect().height);
|
|
937
934
|
let N = null, L = 0;
|
|
938
935
|
this.FINAL_CONFIG.chart.legend.show && (N = this.$refs.chartLegend, L = N.getBoundingClientRect().height);
|
|
939
|
-
let
|
|
940
|
-
this.$refs.source && (
|
|
936
|
+
let v = 0;
|
|
937
|
+
this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height);
|
|
941
938
|
let k = 0;
|
|
942
|
-
this.$refs.noTitle && (k = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - L -
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
939
|
+
this.$refs.noTitle && (k = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - L - b - v - k, this.width = g, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
940
|
+
const w = new ResizeObserver((O) => {
|
|
941
|
+
for (const F of O)
|
|
942
|
+
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 && (L = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
|
|
943
|
+
this.height = F.contentBoxSize[0].blockSize - e - L - 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
944
|
});
|
|
947
|
-
})
|
|
945
|
+
});
|
|
946
|
+
this.resizeObserver = w, this.observedEl = s, w.observe(s);
|
|
948
947
|
} else
|
|
949
948
|
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;
|
|
950
949
|
},
|
|
@@ -1005,19 +1004,19 @@ const at = Z(), rt = {
|
|
|
1005
1004
|
checkAutoScaleError(t) {
|
|
1006
1005
|
t.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1007
1006
|
},
|
|
1008
|
-
createArea(t,
|
|
1007
|
+
createArea(t, s) {
|
|
1009
1008
|
if (!t[0]) return [-10, -10, "", -10, -10];
|
|
1010
|
-
const o = { x: t[0].x, y:
|
|
1009
|
+
const o = { x: t[0].x, y: s }, g = { x: t.at(-1).x, y: s }, l = [];
|
|
1011
1010
|
return t.forEach((e) => {
|
|
1012
1011
|
l.push(`${e.x},${e.y} `);
|
|
1013
1012
|
}), [o.x, o.y, ...l, g.x, g.y].toString();
|
|
1014
1013
|
},
|
|
1015
|
-
createStar:
|
|
1014
|
+
createStar: Z,
|
|
1016
1015
|
createPolygonPath: H,
|
|
1017
|
-
fillArray(t,
|
|
1016
|
+
fillArray(t, s) {
|
|
1018
1017
|
let o = Array(t).fill(0);
|
|
1019
|
-
for (let g = 0; g <
|
|
1020
|
-
o[g] =
|
|
1018
|
+
for (let g = 0; g < s.length && g < t; g += 1)
|
|
1019
|
+
o[g] = s[g];
|
|
1021
1020
|
return o;
|
|
1022
1021
|
},
|
|
1023
1022
|
async setupSlicer() {
|
|
@@ -1030,12 +1029,12 @@ const at = Z(), rt = {
|
|
|
1030
1029
|
this.setupSlicer();
|
|
1031
1030
|
},
|
|
1032
1031
|
validSlicerEnd(t) {
|
|
1033
|
-
const
|
|
1034
|
-
return t >
|
|
1032
|
+
const s = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
1033
|
+
return t > s ? s : t < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && t < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : t;
|
|
1035
1034
|
},
|
|
1036
1035
|
calcRectHeight(t) {
|
|
1037
|
-
const
|
|
1038
|
-
return t.value >= 0 ? this.checkNaN(
|
|
1036
|
+
const s = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
|
|
1037
|
+
return t.value >= 0 ? this.checkNaN(s - t.y <= 0 ? 1e-5 : s - t.y) : this.checkNaN(t.y - this.zero <= 0 ? 1e-5 : t.y - this.zero);
|
|
1039
1038
|
},
|
|
1040
1039
|
calcIndividualHeight(t) {
|
|
1041
1040
|
return t.value >= 0 ? this.checkNaN(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : this.checkNaN(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
|
|
@@ -1055,11 +1054,11 @@ const at = Z(), rt = {
|
|
|
1055
1054
|
canShowValue(t) {
|
|
1056
1055
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
|
|
1057
1056
|
},
|
|
1058
|
-
findClosestValue(t,
|
|
1059
|
-
let o =
|
|
1060
|
-
for (let l = 1; l <
|
|
1061
|
-
const e = Math.abs(t -
|
|
1062
|
-
e < g &&
|
|
1057
|
+
findClosestValue(t, s) {
|
|
1058
|
+
let o = s[0], g = Math.abs(t - s[0]);
|
|
1059
|
+
for (let l = 1; l < s.length; l += 1) {
|
|
1060
|
+
const e = Math.abs(t - s[l]);
|
|
1061
|
+
e < g && s[l] < t && (o = s[l], g = e);
|
|
1063
1062
|
}
|
|
1064
1063
|
return o;
|
|
1065
1064
|
},
|
|
@@ -1070,11 +1069,11 @@ const at = Z(), rt = {
|
|
|
1070
1069
|
this.$emit(
|
|
1071
1070
|
"selectX",
|
|
1072
1071
|
{
|
|
1073
|
-
dataset: this.relativeDataset.map((
|
|
1074
|
-
name:
|
|
1075
|
-
value: [null, void 0, NaN].includes(
|
|
1076
|
-
color:
|
|
1077
|
-
type:
|
|
1072
|
+
dataset: this.relativeDataset.map((s) => ({
|
|
1073
|
+
name: s.name,
|
|
1074
|
+
value: [null, void 0, NaN].includes(s.absoluteValues[t]) ? null : s.absoluteValues[t],
|
|
1075
|
+
color: s.color,
|
|
1076
|
+
type: s.type
|
|
1078
1077
|
})),
|
|
1079
1078
|
index: t,
|
|
1080
1079
|
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[t]
|
|
@@ -1091,20 +1090,20 @@ const at = Z(), rt = {
|
|
|
1091
1090
|
},
|
|
1092
1091
|
segregate(t) {
|
|
1093
1092
|
if (this.segregatedSeries.includes(t.id))
|
|
1094
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
1093
|
+
this.segregatedSeries = this.segregatedSeries.filter((s) => s !== t.id);
|
|
1095
1094
|
else {
|
|
1096
1095
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1097
1096
|
this.segregatedSeries.push(t.id);
|
|
1098
1097
|
}
|
|
1099
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
1100
|
-
name:
|
|
1101
|
-
values:
|
|
1102
|
-
color:
|
|
1103
|
-
type:
|
|
1098
|
+
this.$emit("selectLegend", this.relativeDataset.map((s) => ({
|
|
1099
|
+
name: s.name,
|
|
1100
|
+
values: s.absoluteValues,
|
|
1101
|
+
color: s.color,
|
|
1102
|
+
type: s.type
|
|
1104
1103
|
}))), this.segregateStep += 1;
|
|
1105
1104
|
},
|
|
1106
|
-
toggleTooltipVisibility(t,
|
|
1107
|
-
this.isTooltip = t, t ? this.selectedSerieIndex =
|
|
1105
|
+
toggleTooltipVisibility(t, s = null) {
|
|
1106
|
+
this.isTooltip = t, t ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
|
|
1108
1107
|
},
|
|
1109
1108
|
toggleFullscreen(t) {
|
|
1110
1109
|
this.isFullscreen = t, this.step += 1;
|
|
@@ -1115,7 +1114,7 @@ const at = Z(), rt = {
|
|
|
1115
1114
|
async generatePdf() {
|
|
1116
1115
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1117
1116
|
try {
|
|
1118
|
-
const { default: t } = await import("./pdf-
|
|
1117
|
+
const { default: t } = await import("./pdf-BfkyEFza.js");
|
|
1119
1118
|
await t({
|
|
1120
1119
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1121
1120
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1129,7 +1128,7 @@ const at = Z(), rt = {
|
|
|
1129
1128
|
}, 100);
|
|
1130
1129
|
},
|
|
1131
1130
|
generateCsv() {
|
|
1132
|
-
const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]],
|
|
1131
|
+
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, g = t.concat([s]).concat(o), l = this.createCsvContent(g);
|
|
1133
1132
|
this.downloadCsv({ csvContent: l, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1134
1133
|
},
|
|
1135
1134
|
showSpinnerImage() {
|
|
@@ -1138,7 +1137,7 @@ const at = Z(), rt = {
|
|
|
1138
1137
|
async generateImage() {
|
|
1139
1138
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1140
1139
|
try {
|
|
1141
|
-
const { default: t } = await import("./img-
|
|
1140
|
+
const { default: t } = await import("./img-CEn9LJxg.js");
|
|
1142
1141
|
await t({
|
|
1143
1142
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1144
1143
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1153,74 +1152,74 @@ const at = Z(), rt = {
|
|
|
1153
1152
|
}, 100);
|
|
1154
1153
|
}
|
|
1155
1154
|
}
|
|
1156
|
-
},
|
|
1155
|
+
}, Ke = ["id"], Qe = {
|
|
1157
1156
|
key: 1,
|
|
1158
1157
|
ref: "noTitle",
|
|
1159
1158
|
class: "vue-data-ui-no-title-space",
|
|
1160
1159
|
style: "height:36px; width: 100%; background:transparent"
|
|
1161
|
-
},
|
|
1160
|
+
}, je = ["viewBox", "aria-label"], $e = ["x", "y", "width", "height"], et = { key: 1 }, tt = { class: "vue-ui-xy-grid" }, lt = ["stroke", "x1", "x2", "y1", "y2"], rt = ["stroke", "x1", "x2", "y1", "y2"], at = { key: 1 }, it = ["x1", "x2", "y1", "y2", "stroke"], st = ["x1", "x2", "y1", "y2", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke"], ct = { key: 3 }, ot = ["x1", "x2", "y1", "y2", "stroke"], ht = ["id"], ut = ["stop-color"], dt = ["stop-color"], gt = ["stop-color"], ft = ["id"], It = ["stop-color"], Nt = ["stop-color"], mt = ["stop-color"], bt = ["id"], xt = ["stop-color"], Ft = ["stop-color"], _t = ["id"], yt = ["stop-color"], At = ["stop-color"], Lt = ["id"], Ct = ["stop-color"], St = ["stop-color"], kt = ["x", "y", "height", "width", "fill"], wt = ["x", "y", "width"], Ot = ["x", "y", "height", "width", "fill"], Gt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], pt = ["width", "x", "y"], zt = { key: 0 }, Mt = ["id"], Tt = ["fill"], Pt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Vt = ["x", "y", "font-size", "fill"], Rt = ["stroke", "x1", "x2", "y1", "y2"], Ht = { key: 2 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Et = { key: 4 }, Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = ["fill", "font-size", "transform"], qt = ["x1", "x2", "y1", "y2", "stroke"], Xt = ["x", "y", "font-size", "fill"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Zt = ["x", "y", "font-size", "fill"], Jt = ["width", "x", "y"], Kt = { style: { width: "100%" } }, Qt = { key: 0 }, jt = ["id"], $t = ["fill"], el = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], tl = ["x", "y", "font-size", "fill"], ll = ["d", "stroke", "stroke-width", "stroke-dasharray"], rl = ["d", "stroke", "stroke-width", "stroke-dasharray"], al = { key: 5 }, il = { key: 0 }, sl = ["d", "fill"], nl = ["d", "fill"], cl = ["d", "fill"], ol = ["d", "fill"], hl = ["d", "stroke", "stroke-width", "stroke-dasharray"], ul = ["d", "stroke", "stroke-width", "stroke-dasharray"], dl = ["width", "x", "y"], gl = { style: { width: "100%" } }, fl = { key: 3 }, Il = ["id"], Nl = ["fill"], ml = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], bl = ["x", "y", "font-size", "fill"], xl = { key: 6 }, Fl = ["x", "y", "font-size", "fill"], _l = ["x", "y", "font-size", "fill", "font-weight"], yl = { key: 7 }, Al = ["x", "y", "font-size", "fill"], Ll = { key: 8 }, Cl = ["x", "y"], Sl = ["innerHTML"], kl = ["x", "y"], wl = ["innerHTML"], Ol = ["x1", "x2", "y1", "y2", "stroke"], Gl = { key: 9 }, vl = ["x", "y", "font-size", "fill"], pl = { key: 10 }, zl = ["x", "y"], Ml = ["innerHTML"], Tl = ["x", "y"], Pl = ["innerHTML"], Vl = ["x1", "x2", "y1", "y2", "stroke"], Rl = ["x", "y", "font-size", "fill", "innerHTML"], Hl = ["x", "y", "font-size", "fill", "innerHTML"], Dl = ["x", "y", "font-size", "fill", "innerHTML"], Wl = ["x", "y", "font-size", "fill", "innerHTML"], El = ["id"], Bl = ["stop-color"], Yl = ["stop-color"], ql = ["x", "y", "width", "height", "fill", "onMouseenter"], Xl = ["font-size", "fill", "transform"], Ul = ["x", "y", "font-size", "fill"], Zl = { key: 12 }, Jl = ["text-anchor", "font-size", "fill", "transform", "onClick"], Kl = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ql = {
|
|
1162
1161
|
key: 13,
|
|
1163
1162
|
style: { "pointer-events": "none" }
|
|
1164
|
-
},
|
|
1163
|
+
}, jl = ["x", "y"], $l = ["cx", "cy", "r", "fill"], er = {
|
|
1165
1164
|
key: 5,
|
|
1166
1165
|
class: "vue-data-ui-watermark"
|
|
1167
|
-
},
|
|
1166
|
+
}, tr = {
|
|
1168
1167
|
class: "vue-ui-xy-tag-arrow",
|
|
1169
1168
|
height: "20",
|
|
1170
1169
|
viewBox: "0 0 10 20",
|
|
1171
1170
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1172
|
-
},
|
|
1171
|
+
}, lr = ["fill"], rr = ["innerHTML"], ar = {
|
|
1173
1172
|
class: "vue-ui-xy-tag-arrow",
|
|
1174
1173
|
height: "100%",
|
|
1175
1174
|
viewBox: "0 0 10 20",
|
|
1176
1175
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1177
|
-
},
|
|
1176
|
+
}, ir = ["fill"], sr = ["innerHTML"], nr = {
|
|
1178
1177
|
class: "vue-ui-xy-tag-arrow",
|
|
1179
1178
|
height: "20",
|
|
1180
1179
|
viewBox: "0 0 10 20",
|
|
1181
1180
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1182
|
-
},
|
|
1181
|
+
}, cr = ["fill"], or = ["innerHTML"], hr = {
|
|
1183
1182
|
class: "vue-ui-xy-tag-arrow",
|
|
1184
1183
|
height: "100%",
|
|
1185
1184
|
viewBox: "0 0 10 20",
|
|
1186
1185
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1187
|
-
},
|
|
1186
|
+
}, ur = ["fill"], dr = ["innerHTML"], gr = ["onClick"], fr = {
|
|
1188
1187
|
key: 0,
|
|
1189
1188
|
viewBox: "0 0 20 12",
|
|
1190
1189
|
height: "14",
|
|
1191
1190
|
width: "20"
|
|
1192
|
-
},
|
|
1191
|
+
}, Ir = ["stroke", "fill"], Nr = {
|
|
1193
1192
|
key: 1,
|
|
1194
1193
|
viewBox: "0 0 40 40",
|
|
1195
1194
|
height: "14",
|
|
1196
1195
|
width: "14"
|
|
1197
|
-
},
|
|
1196
|
+
}, mr = ["fill"], br = ["fill"], xr = {
|
|
1198
1197
|
key: 2,
|
|
1199
1198
|
viewBox: "0 0 12 12",
|
|
1200
1199
|
height: "14",
|
|
1201
1200
|
width: "14"
|
|
1202
|
-
},
|
|
1201
|
+
}, Fr = {
|
|
1203
1202
|
key: 9,
|
|
1204
1203
|
ref: "chartLegend"
|
|
1205
|
-
},
|
|
1204
|
+
}, _r = {
|
|
1206
1205
|
key: 10,
|
|
1207
1206
|
ref: "source",
|
|
1208
1207
|
dir: "auto"
|
|
1209
|
-
},
|
|
1208
|
+
}, yr = {
|
|
1210
1209
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1211
1210
|
"data-dom-to-png-ignore": ""
|
|
1212
|
-
},
|
|
1213
|
-
function
|
|
1214
|
-
const A = R("PenAndPaper"),
|
|
1215
|
-
return
|
|
1211
|
+
}, Ar = ["innerHTML"];
|
|
1212
|
+
function Lr(t, s, o, g, l, e) {
|
|
1213
|
+
const A = R("PenAndPaper"), b = R("Title"), N = R("UserOptions"), L = R("PackageVersion"), v = R("Shape"), k = R("Skeleton"), w = R("Slicer"), O = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), G = R("DataTable"), p = R("Accordion");
|
|
1214
|
+
return a(), i("div", {
|
|
1216
1215
|
id: `vue-ui-xy_${l.uniqueId}`,
|
|
1217
1216
|
class: B(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1218
1217
|
ref: "chart",
|
|
1219
|
-
style:
|
|
1220
|
-
onMouseenter:
|
|
1221
|
-
onMouseleave:
|
|
1218
|
+
style: x(`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%" : ""}`),
|
|
1219
|
+
onMouseenter: s[7] || (s[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1220
|
+
onMouseleave: s[8] || (s[8] = () => e.setUserOptionsVisibility(!1))
|
|
1222
1221
|
}, [
|
|
1223
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (
|
|
1222
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), E(A, {
|
|
1224
1223
|
key: 0,
|
|
1225
1224
|
svgRef: l.svgRef,
|
|
1226
1225
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1228,14 +1227,14 @@ function za(t, n, o, g, l, e) {
|
|
|
1228
1227
|
active: l.isAnnotator,
|
|
1229
1228
|
onClose: e.toggleAnnotator
|
|
1230
1229
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : d("", !0),
|
|
1231
|
-
e.hasOptionsNoTitle ? (
|
|
1232
|
-
e.FINAL_CONFIG.chart.title.show ? (
|
|
1230
|
+
e.hasOptionsNoTitle ? (a(), i("div", Qe, null, 512)) : d("", !0),
|
|
1231
|
+
e.FINAL_CONFIG.chart.title.show ? (a(), i("div", {
|
|
1233
1232
|
key: 2,
|
|
1234
1233
|
ref: "chartTitle",
|
|
1235
1234
|
class: "vue-ui-xy-title",
|
|
1236
|
-
style:
|
|
1235
|
+
style: x(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1237
1236
|
}, [
|
|
1238
|
-
(
|
|
1237
|
+
(a(), E(b, {
|
|
1239
1238
|
key: `title_${l.titleStep}`,
|
|
1240
1239
|
config: {
|
|
1241
1240
|
title: {
|
|
@@ -1249,7 +1248,7 @@ function za(t, n, o, g, l, e) {
|
|
|
1249
1248
|
}
|
|
1250
1249
|
}, null, 8, ["config"]))
|
|
1251
1250
|
], 4)) : d("", !0),
|
|
1252
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (
|
|
1251
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (a(), E(N, {
|
|
1253
1252
|
ref: "defails",
|
|
1254
1253
|
key: `user_options_${l.step}`,
|
|
1255
1254
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1282,14 +1281,14 @@ function za(t, n, o, g, l, e) {
|
|
|
1282
1281
|
onToggleStack: e.toggleStack,
|
|
1283
1282
|
onToggleTooltip: e.toggleTooltip,
|
|
1284
1283
|
onToggleAnnotator: e.toggleAnnotator,
|
|
1285
|
-
style:
|
|
1284
|
+
style: x({
|
|
1286
1285
|
visibility: l.keepUserOptionState ? l.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1287
1286
|
})
|
|
1288
|
-
},
|
|
1287
|
+
}, Ye({ _: 2 }, [
|
|
1289
1288
|
t.$slots.menuIcon ? {
|
|
1290
1289
|
name: "menuIcon",
|
|
1291
|
-
fn: V(({ isOpen:
|
|
1292
|
-
S(t.$slots, "menuIcon",
|
|
1290
|
+
fn: V(({ isOpen: r, color: c }) => [
|
|
1291
|
+
S(t.$slots, "menuIcon", Y(q({ isOpen: r, color: c })), void 0, !0)
|
|
1293
1292
|
]),
|
|
1294
1293
|
key: "0"
|
|
1295
1294
|
} : void 0,
|
|
@@ -1344,33 +1343,33 @@ function za(t, n, o, g, l, e) {
|
|
|
1344
1343
|
} : void 0,
|
|
1345
1344
|
t.$slots.optionFullscreen ? {
|
|
1346
1345
|
name: "optionFullscreen",
|
|
1347
|
-
fn: V(({ toggleFullscreen:
|
|
1348
|
-
S(t.$slots, "optionFullscreen",
|
|
1346
|
+
fn: V(({ toggleFullscreen: r, isFullscreen: c }) => [
|
|
1347
|
+
S(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: r, isFullscreen: c })), void 0, !0)
|
|
1349
1348
|
]),
|
|
1350
1349
|
key: "8"
|
|
1351
1350
|
} : void 0,
|
|
1352
1351
|
t.$slots.optionAnnotator ? {
|
|
1353
1352
|
name: "optionAnnotator",
|
|
1354
|
-
fn: V(({ toggleAnnotator:
|
|
1355
|
-
S(t.$slots, "optionAnnotator",
|
|
1353
|
+
fn: V(({ toggleAnnotator: r, isAnnotator: c }) => [
|
|
1354
|
+
S(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: r, isAnnotator: c })), void 0, !0)
|
|
1356
1355
|
]),
|
|
1357
1356
|
key: "9"
|
|
1358
1357
|
} : void 0
|
|
1359
1358
|
]), 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"])) : d("", !0),
|
|
1360
|
-
e.isDataset ? (
|
|
1359
|
+
e.isDataset ? (a(), i("svg", {
|
|
1361
1360
|
key: 4,
|
|
1362
1361
|
ref: "svgRef",
|
|
1363
1362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1364
1363
|
class: B([{ "vue-data-ui-fullscreen--on": l.isFullscreen, "vue-data-ui-fulscreen--off": !l.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1365
1364
|
width: "100%",
|
|
1366
1365
|
viewBox: l.viewBox,
|
|
1367
|
-
style:
|
|
1366
|
+
style: x(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
|
|
1368
1367
|
"aria-label": e.chartAriaLabel,
|
|
1369
1368
|
role: "img",
|
|
1370
1369
|
"aria-live": "polite"
|
|
1371
1370
|
}, [
|
|
1372
|
-
|
|
1373
|
-
t.$slots["chart-background"] ? (
|
|
1371
|
+
U(L),
|
|
1372
|
+
t.$slots["chart-background"] ? (a(), i("foreignObject", {
|
|
1374
1373
|
key: 0,
|
|
1375
1374
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
1376
1375
|
y: e.drawingArea.top,
|
|
@@ -1381,10 +1380,10 @@ function za(t, n, o, g, l, e) {
|
|
|
1381
1380
|
}
|
|
1382
1381
|
}, [
|
|
1383
1382
|
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
1384
|
-
], 8,
|
|
1385
|
-
e.maxSeries > 0 ? (
|
|
1386
|
-
f("g",
|
|
1387
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (
|
|
1383
|
+
], 8, $e)) : d("", !0),
|
|
1384
|
+
e.maxSeries > 0 ? (a(), i("g", et, [
|
|
1385
|
+
f("g", tt, [
|
|
1386
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), i("line", {
|
|
1388
1387
|
key: 0,
|
|
1389
1388
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1390
1389
|
"stroke-width": "1",
|
|
@@ -1393,17 +1392,17 @@ function za(t, n, o, g, l, e) {
|
|
|
1393
1392
|
y1: e.forceValidValue(e.drawingArea.bottom),
|
|
1394
1393
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1395
1394
|
"stroke-linecap": "round"
|
|
1396
|
-
}, null, 8,
|
|
1397
|
-
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1398
|
-
|
|
1395
|
+
}, null, 8, lt)) : d("", !0),
|
|
1396
|
+
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), i(u, { key: 2 }, I(e.allScales, (r) => (a(), i("g", null, [
|
|
1397
|
+
r.id === l.selectedScale && r.yLabels.length ? (a(!0), i(u, { key: 0 }, I(r.yLabels, (c) => (a(), i("line", {
|
|
1399
1398
|
x1: e.drawingArea.left + e.xPadding,
|
|
1400
1399
|
x2: e.drawingArea.right - e.xPadding,
|
|
1401
1400
|
y1: e.forceValidValue(c.y),
|
|
1402
1401
|
y2: e.forceValidValue(c.y),
|
|
1403
|
-
stroke:
|
|
1402
|
+
stroke: r.color,
|
|
1404
1403
|
"stroke-width": 0.5,
|
|
1405
1404
|
"stroke-linecap": "round"
|
|
1406
|
-
}, null, 8,
|
|
1405
|
+
}, null, 8, st))), 256)) : r.yLabels.length ? (a(!0), i(u, { key: 1 }, I(r.yLabels, (c) => (a(), i("line", {
|
|
1407
1406
|
x1: e.drawingArea.left + e.xPadding,
|
|
1408
1407
|
x2: e.drawingArea.right - e.xPadding,
|
|
1409
1408
|
y1: e.forceValidValue(c.y),
|
|
@@ -1411,9 +1410,9 @@ function za(t, n, o, g, l, e) {
|
|
|
1411
1410
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1412
1411
|
"stroke-width": 0.5,
|
|
1413
1412
|
"stroke-linecap": "round"
|
|
1414
|
-
}, null, 8,
|
|
1415
|
-
]))), 256)) : d("", !0) : (
|
|
1416
|
-
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (
|
|
1413
|
+
}, null, 8, nt))), 256)) : d("", !0)
|
|
1414
|
+
]))), 256)) : d("", !0) : (a(), i(u, { key: 1 }, [
|
|
1415
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), i("line", {
|
|
1417
1416
|
key: 0,
|
|
1418
1417
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1419
1418
|
"stroke-width": "1",
|
|
@@ -1422,21 +1421,21 @@ function za(t, n, o, g, l, e) {
|
|
|
1422
1421
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
1423
1422
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1424
1423
|
"stroke-linecap": "round"
|
|
1425
|
-
}, null, 8,
|
|
1426
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1427
|
-
(
|
|
1424
|
+
}, null, 8, rt)) : d("", !0),
|
|
1425
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), i("g", at, [
|
|
1426
|
+
(a(!0), i(u, null, I(e.yLabels, (r) => (a(), i("line", {
|
|
1428
1427
|
x1: e.drawingArea.left + e.xPadding,
|
|
1429
1428
|
x2: e.drawingArea.right - e.xPadding,
|
|
1430
|
-
y1: e.forceValidValue(
|
|
1431
|
-
y2: e.forceValidValue(
|
|
1429
|
+
y1: e.forceValidValue(r.y),
|
|
1430
|
+
y2: e.forceValidValue(r.y),
|
|
1432
1431
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1433
1432
|
"stroke-width": 0.5,
|
|
1434
1433
|
"stroke-linecap": "round"
|
|
1435
|
-
}, null, 8,
|
|
1434
|
+
}, null, 8, it))), 256))
|
|
1436
1435
|
])) : d("", !0)
|
|
1437
1436
|
], 64)),
|
|
1438
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (
|
|
1439
|
-
(
|
|
1437
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), i("g", ct, [
|
|
1438
|
+
(a(!0), i(u, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (r, c) => (a(), i("line", {
|
|
1440
1439
|
key: `grid_vertical_line_${c}`,
|
|
1441
1440
|
x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1442
1441
|
x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
@@ -1444,10 +1443,10 @@ function za(t, n, o, g, l, e) {
|
|
|
1444
1443
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1445
1444
|
"stroke-width": "0.5",
|
|
1446
1445
|
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1447
|
-
}, null, 8,
|
|
1446
|
+
}, null, 8, ot))), 128))
|
|
1448
1447
|
])) : d("", !0)
|
|
1449
1448
|
]),
|
|
1450
|
-
(
|
|
1449
|
+
(a(!0), i(u, null, I(e.barSet, (r, c) => (a(), i("defs", {
|
|
1451
1450
|
key: `def_rect_${c}`
|
|
1452
1451
|
}, [
|
|
1453
1452
|
f("linearGradient", {
|
|
@@ -1457,17 +1456,17 @@ function za(t, n, o, g, l, e) {
|
|
|
1457
1456
|
}, [
|
|
1458
1457
|
f("stop", {
|
|
1459
1458
|
offset: "0%",
|
|
1460
|
-
"stop-color":
|
|
1461
|
-
}, null, 8,
|
|
1459
|
+
"stop-color": r.color
|
|
1460
|
+
}, null, 8, ut),
|
|
1462
1461
|
f("stop", {
|
|
1463
1462
|
offset: "62%",
|
|
1464
|
-
"stop-color": `${e.shiftHue(
|
|
1465
|
-
}, null, 8,
|
|
1463
|
+
"stop-color": `${e.shiftHue(r.color, 0.02)}`
|
|
1464
|
+
}, null, 8, dt),
|
|
1466
1465
|
f("stop", {
|
|
1467
1466
|
offset: "100%",
|
|
1468
|
-
"stop-color": `${e.shiftHue(
|
|
1469
|
-
}, null, 8,
|
|
1470
|
-
], 8,
|
|
1467
|
+
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1468
|
+
}, null, 8, gt)
|
|
1469
|
+
], 8, ht),
|
|
1471
1470
|
f("linearGradient", {
|
|
1472
1471
|
id: `rectGradient_neg_${c}_${l.uniqueId}`,
|
|
1473
1472
|
x2: "0%",
|
|
@@ -1475,19 +1474,19 @@ function za(t, n, o, g, l, e) {
|
|
|
1475
1474
|
}, [
|
|
1476
1475
|
f("stop", {
|
|
1477
1476
|
offset: "0%",
|
|
1478
|
-
"stop-color": `${e.shiftHue(
|
|
1479
|
-
}, null, 8,
|
|
1477
|
+
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1478
|
+
}, null, 8, It),
|
|
1480
1479
|
f("stop", {
|
|
1481
1480
|
offset: "38%",
|
|
1482
|
-
"stop-color": `${e.shiftHue(
|
|
1483
|
-
}, null, 8,
|
|
1481
|
+
"stop-color": `${e.shiftHue(r.color, 0.02)}`
|
|
1482
|
+
}, null, 8, Nt),
|
|
1484
1483
|
f("stop", {
|
|
1485
1484
|
offset: "100%",
|
|
1486
|
-
"stop-color":
|
|
1487
|
-
}, null, 8,
|
|
1488
|
-
], 8,
|
|
1485
|
+
"stop-color": r.color
|
|
1486
|
+
}, null, 8, mt)
|
|
1487
|
+
], 8, ft)
|
|
1489
1488
|
]))), 128)),
|
|
1490
|
-
(
|
|
1489
|
+
(a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i("defs", {
|
|
1491
1490
|
key: `def_plot_${c}`
|
|
1492
1491
|
}, [
|
|
1493
1492
|
f("radialGradient", {
|
|
@@ -1500,15 +1499,15 @@ function za(t, n, o, g, l, e) {
|
|
|
1500
1499
|
}, [
|
|
1501
1500
|
f("stop", {
|
|
1502
1501
|
offset: "0%",
|
|
1503
|
-
"stop-color": `${e.shiftHue(
|
|
1504
|
-
}, null, 8,
|
|
1502
|
+
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1503
|
+
}, null, 8, xt),
|
|
1505
1504
|
f("stop", {
|
|
1506
1505
|
offset: "100%",
|
|
1507
|
-
"stop-color":
|
|
1508
|
-
}, null, 8,
|
|
1509
|
-
], 8,
|
|
1506
|
+
"stop-color": r.color
|
|
1507
|
+
}, null, 8, Ft)
|
|
1508
|
+
], 8, bt)
|
|
1510
1509
|
]))), 128)),
|
|
1511
|
-
(
|
|
1510
|
+
(a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i("defs", {
|
|
1512
1511
|
key: `def_line_${c}`
|
|
1513
1512
|
}, [
|
|
1514
1513
|
f("radialGradient", {
|
|
@@ -1521,13 +1520,13 @@ function za(t, n, o, g, l, e) {
|
|
|
1521
1520
|
}, [
|
|
1522
1521
|
f("stop", {
|
|
1523
1522
|
offset: "0%",
|
|
1524
|
-
"stop-color": `${e.shiftHue(
|
|
1525
|
-
}, null, 8,
|
|
1523
|
+
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1524
|
+
}, null, 8, yt),
|
|
1526
1525
|
f("stop", {
|
|
1527
1526
|
offset: "100%",
|
|
1528
|
-
"stop-color":
|
|
1529
|
-
}, null, 8,
|
|
1530
|
-
], 8,
|
|
1527
|
+
"stop-color": r.color
|
|
1528
|
+
}, null, 8, At)
|
|
1529
|
+
], 8, _t),
|
|
1531
1530
|
f("linearGradient", {
|
|
1532
1531
|
id: `areaGradient_${c}_${l.uniqueId}`,
|
|
1533
1532
|
x1: "0%",
|
|
@@ -1537,46 +1536,46 @@ function za(t, n, o, g, l, e) {
|
|
|
1537
1536
|
}, [
|
|
1538
1537
|
f("stop", {
|
|
1539
1538
|
offset: "0%",
|
|
1540
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1541
|
-
}, null, 8,
|
|
1539
|
+
"stop-color": `${e.setOpacity(e.shiftHue(r.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1540
|
+
}, null, 8, Ct),
|
|
1542
1541
|
f("stop", {
|
|
1543
1542
|
offset: "100%",
|
|
1544
|
-
"stop-color": `${e.setOpacity(
|
|
1545
|
-
}, null, 8,
|
|
1546
|
-
], 8,
|
|
1543
|
+
"stop-color": `${e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1544
|
+
}, null, 8, St)
|
|
1545
|
+
], 8, Lt)
|
|
1547
1546
|
]))), 128)),
|
|
1548
|
-
(
|
|
1549
|
-
|
|
1547
|
+
(a(!0), i(u, null, I(e.highlightAreas, (r) => (a(), i("g", null, [
|
|
1548
|
+
r.show ? (a(!0), i(u, { key: 0 }, I(r.span, (c, n) => (a(), i("g", null, [
|
|
1550
1549
|
f("rect", {
|
|
1551
|
-
style:
|
|
1550
|
+
style: x({
|
|
1552
1551
|
transition: "none",
|
|
1553
|
-
opacity:
|
|
1552
|
+
opacity: r.from + n >= l.slicer.start && r.from + n <= l.slicer.end - 1 ? 1 : 0
|
|
1554
1553
|
}),
|
|
1555
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1554
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (r.from + n - l.slicer.start),
|
|
1556
1555
|
y: e.drawingArea.top,
|
|
1557
1556
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1558
1557
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1559
|
-
fill: e.setOpacity(
|
|
1560
|
-
}, null, 12,
|
|
1561
|
-
|
|
1558
|
+
fill: e.setOpacity(r.color, r.opacity)
|
|
1559
|
+
}, null, 12, kt),
|
|
1560
|
+
r.caption.text && n === 0 ? (a(), i("foreignObject", {
|
|
1562
1561
|
key: 0,
|
|
1563
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1564
|
-
y: e.drawingArea.top +
|
|
1565
|
-
style:
|
|
1562
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (r.from + n - l.slicer.start) - (r.caption.width === "auto" ? 0 : r.caption.width / 2 - e.drawingArea.width / e.maxSeries * r.span / 2),
|
|
1563
|
+
y: e.drawingArea.top + r.caption.offsetY,
|
|
1564
|
+
style: x({
|
|
1566
1565
|
overflow: "visible",
|
|
1567
|
-
opacity:
|
|
1566
|
+
opacity: r.to >= l.slicer.start && r.from < l.slicer.end ? 1 : 0
|
|
1568
1567
|
}),
|
|
1569
1568
|
height: "1",
|
|
1570
|
-
width:
|
|
1569
|
+
width: r.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * r.span : r.caption.width
|
|
1571
1570
|
}, [
|
|
1572
1571
|
f("div", {
|
|
1573
|
-
style:
|
|
1574
|
-
}, T(
|
|
1575
|
-
], 12,
|
|
1572
|
+
style: x(`padding:${r.caption.padding}px;text-align:${r.caption.textAlign};font-size:${r.caption.fontSize}px;color:${r.caption.color};font-weight:${r.caption.bold ? "bold" : "normal"}`)
|
|
1573
|
+
}, T(r.caption.text), 5)
|
|
1574
|
+
], 12, wt)) : d("", !0)
|
|
1576
1575
|
]))), 256)) : d("", !0)
|
|
1577
1576
|
]))), 256)),
|
|
1578
1577
|
f("g", null, [
|
|
1579
|
-
(
|
|
1578
|
+
(a(!0), i(u, null, I(e.maxSeries, (r, c) => (a(), i("g", {
|
|
1580
1579
|
key: `tooltip_trap_highlighter_${c}`
|
|
1581
1580
|
}, [
|
|
1582
1581
|
f("rect", {
|
|
@@ -1585,53 +1584,53 @@ function za(t, n, o, g, l, e) {
|
|
|
1585
1584
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1586
1585
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1587
1586
|
fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(c) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1588
|
-
}, null, 8,
|
|
1587
|
+
}, null, 8, Ot)
|
|
1589
1588
|
]))), 128))
|
|
1590
1589
|
]),
|
|
1591
|
-
e.barSet.length ? (
|
|
1590
|
+
e.barSet.length ? (a(!0), i(u, { key: 0 }, I(e.barSet, (r, c) => (a(), i("g", {
|
|
1592
1591
|
key: `serie_bar_${c}`,
|
|
1593
1592
|
class: B(`serie_bar_${c}`),
|
|
1594
|
-
style:
|
|
1593
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1595
1594
|
}, [
|
|
1596
|
-
(
|
|
1595
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i("g", {
|
|
1597
1596
|
key: `bar_plot_${c}_${h}`
|
|
1598
1597
|
}, [
|
|
1599
|
-
e.canShowValue(
|
|
1598
|
+
e.canShowValue(n.value) ? (a(), i("rect", {
|
|
1600
1599
|
key: 0,
|
|
1601
|
-
x: e.calcRectX(
|
|
1602
|
-
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(
|
|
1603
|
-
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(
|
|
1600
|
+
x: e.calcRectX(n),
|
|
1601
|
+
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1602
|
+
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1604
1603
|
width: e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1605
1604
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1606
|
-
fill: e.FINAL_CONFIG.bar.useGradient ?
|
|
1607
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1605
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${l.uniqueId})` : `url(#rectGradient_neg_${c}_${l.uniqueId})` : r.color,
|
|
1606
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? r.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1608
1607
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1609
|
-
}, null, 8,
|
|
1610
|
-
e.canShowValue(
|
|
1608
|
+
}, null, 8, Gt)) : d("", !0),
|
|
1609
|
+
e.canShowValue(n.value) && t.$slots.pattern ? (a(), i("rect", {
|
|
1611
1610
|
key: 1,
|
|
1612
|
-
x: e.calcRectX(
|
|
1613
|
-
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(
|
|
1614
|
-
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(
|
|
1611
|
+
x: e.calcRectX(n),
|
|
1612
|
+
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1613
|
+
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1615
1614
|
width: e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1616
1615
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1617
|
-
fill: `url(#pattern_${l.uniqueId}_${
|
|
1618
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1616
|
+
fill: `url(#pattern_${l.uniqueId}_${r.slotAbsoluteIndex})`,
|
|
1617
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? r.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1619
1618
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1620
|
-
}, null, 8,
|
|
1621
|
-
|
|
1619
|
+
}, null, 8, vt)) : d("", !0),
|
|
1620
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
|
|
1622
1621
|
key: 2,
|
|
1623
1622
|
style: { overflow: "visible" },
|
|
1624
1623
|
height: "12",
|
|
1625
1624
|
width: (e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) / 2) + e.FINAL_CONFIG.chart.comments.width,
|
|
1626
|
-
x: e.calcRectX(
|
|
1627
|
-
y: e.checkNaN(
|
|
1625
|
+
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1626
|
+
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1628
1627
|
}, [
|
|
1629
1628
|
S(t.$slots, "plot-comment", {
|
|
1630
|
-
plot: { ...
|
|
1629
|
+
plot: { ...n, color: r.color, seriesIndex: c, datapointIndex: h }
|
|
1631
1630
|
}, void 0, !0)
|
|
1632
|
-
], 8,
|
|
1631
|
+
], 8, pt)) : d("", !0)
|
|
1633
1632
|
]))), 128)),
|
|
1634
|
-
Object.hasOwn(
|
|
1633
|
+
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), i("g", zt, [
|
|
1635
1634
|
f("defs", null, [
|
|
1636
1635
|
f("marker", {
|
|
1637
1636
|
id: `bar_arrow_${c}`,
|
|
@@ -1643,36 +1642,36 @@ function za(t, n, o, g, l, e) {
|
|
|
1643
1642
|
}, [
|
|
1644
1643
|
f("polygon", {
|
|
1645
1644
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1646
|
-
fill:
|
|
1647
|
-
}, null, 8,
|
|
1648
|
-
], 8,
|
|
1645
|
+
fill: r.color
|
|
1646
|
+
}, null, 8, Tt)
|
|
1647
|
+
], 8, Mt)
|
|
1649
1648
|
]),
|
|
1650
|
-
|
|
1649
|
+
r.plots.length > 1 ? (a(), i("line", {
|
|
1651
1650
|
key: 0,
|
|
1652
|
-
x1: e.calcLinearProgression(
|
|
1653
|
-
x2: e.calcLinearProgression(
|
|
1654
|
-
y1: e.forceValidValue(e.calcLinearProgression(
|
|
1655
|
-
y2: e.forceValidValue(e.calcLinearProgression(
|
|
1651
|
+
x1: e.calcLinearProgression(r.plots).x1 + e.calcRectWidth(),
|
|
1652
|
+
x2: e.calcLinearProgression(r.plots).x2 + e.calcRectWidth(),
|
|
1653
|
+
y1: e.forceValidValue(e.calcLinearProgression(r.plots).y1),
|
|
1654
|
+
y2: e.forceValidValue(e.calcLinearProgression(r.plots).y2),
|
|
1656
1655
|
"stroke-width": 1,
|
|
1657
|
-
stroke:
|
|
1656
|
+
stroke: r.color,
|
|
1658
1657
|
"stroke-dasharray": 2,
|
|
1659
1658
|
"marker-end": `url(#bar_arrow_${c})`
|
|
1660
|
-
}, null, 8,
|
|
1661
|
-
|
|
1659
|
+
}, null, 8, Pt)) : d("", !0),
|
|
1660
|
+
r.plots.length > 1 ? (a(), i("text", {
|
|
1662
1661
|
key: 1,
|
|
1663
1662
|
"text-anchor": "middle",
|
|
1664
|
-
x: e.calcLinearProgression(
|
|
1665
|
-
y: e.calcLinearProgression(
|
|
1663
|
+
x: e.calcLinearProgression(r.plots).x2 + e.calcRectWidth(),
|
|
1664
|
+
y: e.calcLinearProgression(r.plots).y2 - 6,
|
|
1666
1665
|
"font-size": l.fontSizes.plotLabels,
|
|
1667
|
-
fill:
|
|
1666
|
+
fill: r.color
|
|
1668
1667
|
}, T(e.dataLabel({
|
|
1669
|
-
v: e.calcLinearProgression(
|
|
1668
|
+
v: e.calcLinearProgression(r.plots).trend * 100,
|
|
1670
1669
|
s: "%",
|
|
1671
1670
|
r: 2
|
|
1672
|
-
})), 9,
|
|
1671
|
+
})), 9, Vt)) : d("", !0)
|
|
1673
1672
|
])) : d("", !0)
|
|
1674
1673
|
], 6))), 128)) : d("", !0),
|
|
1675
|
-
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (
|
|
1674
|
+
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), i("line", {
|
|
1676
1675
|
key: 1,
|
|
1677
1676
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1678
1677
|
"stroke-width": "1",
|
|
@@ -1681,8 +1680,8 @@ function za(t, n, o, g, l, e) {
|
|
|
1681
1680
|
y1: e.forceValidValue(e.zero),
|
|
1682
1681
|
y2: e.forceValidValue(e.zero),
|
|
1683
1682
|
"stroke-linecap": "round"
|
|
1684
|
-
}, null, 8,
|
|
1685
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (
|
|
1683
|
+
}, null, 8, Rt)) : d("", !0),
|
|
1684
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), i("g", Ht, [
|
|
1686
1685
|
f("line", {
|
|
1687
1686
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1688
1687
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1693,9 +1692,9 @@ function za(t, n, o, g, l, e) {
|
|
|
1693
1692
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1694
1693
|
"stroke-linecap": "round",
|
|
1695
1694
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1696
|
-
}, null, 8,
|
|
1695
|
+
}, null, 8, Dt)
|
|
1697
1696
|
])) : d("", !0),
|
|
1698
|
-
e.FINAL_CONFIG.chart.grid.frame.show ? (
|
|
1697
|
+
e.FINAL_CONFIG.chart.grid.frame.show ? (a(), i("rect", {
|
|
1699
1698
|
key: 3,
|
|
1700
1699
|
style: { pointerEvents: "none", transition: "none" },
|
|
1701
1700
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
@@ -1708,45 +1707,45 @@ function za(t, n, o, g, l, e) {
|
|
|
1708
1707
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1709
1708
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1710
1709
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1711
|
-
}, null, 8,
|
|
1712
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (
|
|
1713
|
-
l.mutableConfig.useIndividualScale ? (
|
|
1714
|
-
(
|
|
1710
|
+
}, null, 8, Wt)) : d("", !0),
|
|
1711
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), i("g", Et, [
|
|
1712
|
+
l.mutableConfig.useIndividualScale ? (a(), i(u, { key: 0 }, [
|
|
1713
|
+
(a(!0), i(u, null, I(e.allScales, (r) => (a(), i("g", null, [
|
|
1715
1714
|
f("line", {
|
|
1716
|
-
x1:
|
|
1717
|
-
x2:
|
|
1718
|
-
y1: l.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom -
|
|
1719
|
-
y2: l.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom -
|
|
1720
|
-
stroke:
|
|
1715
|
+
x1: r.x + e.xPadding,
|
|
1716
|
+
x2: r.x + e.xPadding,
|
|
1717
|
+
y1: l.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - r.yOffset - r.individualHeight) : e.forceValidValue(e.drawingArea.top),
|
|
1718
|
+
y2: l.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - r.yOffset) : e.forceValidValue(e.drawingArea.bottom),
|
|
1719
|
+
stroke: r.color,
|
|
1721
1720
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1722
1721
|
"stroke-linecap": "round",
|
|
1723
|
-
style:
|
|
1724
|
-
}, null, 12,
|
|
1722
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1723
|
+
}, null, 12, Bt)
|
|
1725
1724
|
]))), 256)),
|
|
1726
|
-
(
|
|
1727
|
-
style:
|
|
1725
|
+
(a(!0), i(u, null, I(e.allScales, (r) => (a(), i("g", {
|
|
1726
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1728
1727
|
}, [
|
|
1729
1728
|
f("text", {
|
|
1730
|
-
fill:
|
|
1729
|
+
fill: r.color,
|
|
1731
1730
|
"font-size": l.fontSizes.dataLabels,
|
|
1732
1731
|
"text-anchor": "middle",
|
|
1733
|
-
transform: `translate(${
|
|
1734
|
-
}, T(
|
|
1735
|
-
(
|
|
1736
|
-
x1:
|
|
1737
|
-
x2:
|
|
1732
|
+
transform: `translate(${r.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${l.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset - r.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1733
|
+
}, T(r.name) + " " + T(r.scaleLabel && r.unique && r.scaleLabel !== r.id ? `- ${r.scaleLabel}` : ""), 9, Yt),
|
|
1734
|
+
(a(!0), i(u, null, I(r.yLabels, (c, n) => (a(), i("line", {
|
|
1735
|
+
x1: r.x - 3 + e.xPadding,
|
|
1736
|
+
x2: r.x + e.xPadding,
|
|
1738
1737
|
y1: e.forceValidValue(c.y),
|
|
1739
1738
|
y2: e.forceValidValue(c.y),
|
|
1740
|
-
stroke:
|
|
1739
|
+
stroke: r.color,
|
|
1741
1740
|
"stroke-width": 1,
|
|
1742
1741
|
"stroke-linecap": "round"
|
|
1743
|
-
}, null, 8,
|
|
1744
|
-
(
|
|
1745
|
-
x:
|
|
1742
|
+
}, null, 8, qt))), 256)),
|
|
1743
|
+
(a(!0), i(u, null, I(r.yLabels, (c, n) => (a(), i("text", {
|
|
1744
|
+
x: r.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
1746
1745
|
y: e.forceValidValue(c.y) + l.fontSizes.dataLabels / 3,
|
|
1747
1746
|
"font-size": l.fontSizes.dataLabels,
|
|
1748
1747
|
"text-anchor": "end",
|
|
1749
|
-
fill:
|
|
1748
|
+
fill: r.color
|
|
1750
1749
|
}, T(e.applyDataLabel(
|
|
1751
1750
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1752
1751
|
c.value,
|
|
@@ -1756,74 +1755,74 @@ function za(t, n, o, g, l, e) {
|
|
|
1756
1755
|
s: c.suffix,
|
|
1757
1756
|
r: 1
|
|
1758
1757
|
}),
|
|
1759
|
-
{ datapoint: c.datapoint, seriesIndex:
|
|
1760
|
-
)), 9,
|
|
1758
|
+
{ datapoint: c.datapoint, seriesIndex: n }
|
|
1759
|
+
)), 9, Xt))), 256))
|
|
1761
1760
|
], 4))), 256))
|
|
1762
|
-
], 64)) : (
|
|
1761
|
+
], 64)) : (a(!0), i(u, { key: 1 }, I(e.yLabels, (r, c) => (a(), i("g", {
|
|
1763
1762
|
key: `yLabel_${c}`
|
|
1764
1763
|
}, [
|
|
1765
|
-
e.canShowValue(
|
|
1764
|
+
e.canShowValue(r) && r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), i("line", {
|
|
1766
1765
|
key: 0,
|
|
1767
1766
|
x1: e.drawingArea.left + e.xPadding,
|
|
1768
1767
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1769
|
-
y1: e.forceValidValue(
|
|
1770
|
-
y2: e.forceValidValue(
|
|
1768
|
+
y1: e.forceValidValue(r.y),
|
|
1769
|
+
y2: e.forceValidValue(r.y),
|
|
1771
1770
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1772
1771
|
"stroke-width": "1",
|
|
1773
1772
|
"stroke-linecap": "round"
|
|
1774
|
-
}, null, 8,
|
|
1775
|
-
|
|
1773
|
+
}, null, 8, Ut)) : d("", !0),
|
|
1774
|
+
r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), i("text", {
|
|
1776
1775
|
key: 1,
|
|
1777
1776
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1778
|
-
y: e.checkNaN(
|
|
1777
|
+
y: e.checkNaN(r.y + l.fontSizes.dataLabels / 3),
|
|
1779
1778
|
"font-size": l.fontSizes.dataLabels,
|
|
1780
1779
|
"text-anchor": "end",
|
|
1781
1780
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1782
|
-
}, T(e.canShowValue(
|
|
1781
|
+
}, T(e.canShowValue(r.value) ? e.applyDataLabel(
|
|
1783
1782
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1784
|
-
|
|
1783
|
+
r.value,
|
|
1785
1784
|
e.dataLabel({
|
|
1786
|
-
p:
|
|
1787
|
-
v:
|
|
1788
|
-
s:
|
|
1785
|
+
p: r.prefix,
|
|
1786
|
+
v: r.value,
|
|
1787
|
+
s: r.suffix,
|
|
1789
1788
|
r: 1
|
|
1790
1789
|
})
|
|
1791
|
-
) : ""), 9,
|
|
1790
|
+
) : ""), 9, Zt)) : d("", !0)
|
|
1792
1791
|
]))), 128))
|
|
1793
1792
|
])) : d("", !0),
|
|
1794
|
-
(
|
|
1793
|
+
(a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i("g", {
|
|
1795
1794
|
key: `serie_plot_${c}`,
|
|
1796
1795
|
class: B(`serie_plot_${c}`),
|
|
1797
|
-
style:
|
|
1796
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1798
1797
|
}, [
|
|
1799
|
-
(
|
|
1798
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i("g", {
|
|
1800
1799
|
key: `circle_plot_${c}_${h}`
|
|
1801
1800
|
}, [
|
|
1802
|
-
|
|
1801
|
+
n && e.canShowValue(n.value) ? (a(), E(v, {
|
|
1803
1802
|
key: 0,
|
|
1804
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1805
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ?
|
|
1806
|
-
plot: { x: e.checkNaN(
|
|
1803
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
|
|
1804
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? r.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1805
|
+
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1807
1806
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
|
|
1808
|
-
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1807
|
+
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
|
|
1809
1808
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1810
1809
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
1811
|
-
|
|
1810
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
|
|
1812
1811
|
key: 1,
|
|
1813
1812
|
style: { overflow: "visible" },
|
|
1814
1813
|
height: "12",
|
|
1815
1814
|
width: e.FINAL_CONFIG.chart.comments.width,
|
|
1816
|
-
x:
|
|
1817
|
-
y:
|
|
1815
|
+
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1816
|
+
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1818
1817
|
}, [
|
|
1819
|
-
f("div",
|
|
1818
|
+
f("div", Kt, [
|
|
1820
1819
|
S(t.$slots, "plot-comment", {
|
|
1821
|
-
plot: { ...
|
|
1820
|
+
plot: { ...n, color: r.color, seriesIndex: c, datapointIndex: h }
|
|
1822
1821
|
}, void 0, !0)
|
|
1823
1822
|
])
|
|
1824
|
-
], 8,
|
|
1823
|
+
], 8, Jt)) : d("", !0)
|
|
1825
1824
|
]))), 128)),
|
|
1826
|
-
Object.hasOwn(
|
|
1825
|
+
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), i("g", Qt, [
|
|
1827
1826
|
f("defs", null, [
|
|
1828
1827
|
f("marker", {
|
|
1829
1828
|
id: `plot_arrow_${c}`,
|
|
@@ -1835,137 +1834,137 @@ function za(t, n, o, g, l, e) {
|
|
|
1835
1834
|
}, [
|
|
1836
1835
|
f("polygon", {
|
|
1837
1836
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1838
|
-
fill:
|
|
1839
|
-
}, null, 8,
|
|
1840
|
-
], 8,
|
|
1837
|
+
fill: r.color
|
|
1838
|
+
}, null, 8, $t)
|
|
1839
|
+
], 8, jt)
|
|
1841
1840
|
]),
|
|
1842
|
-
|
|
1841
|
+
r.plots.length > 1 ? (a(), i("line", {
|
|
1843
1842
|
key: 0,
|
|
1844
|
-
x1: e.calcLinearProgression(
|
|
1845
|
-
x2: e.calcLinearProgression(
|
|
1846
|
-
y1: e.forceValidValue(e.calcLinearProgression(
|
|
1847
|
-
y2: e.forceValidValue(e.calcLinearProgression(
|
|
1843
|
+
x1: e.calcLinearProgression(r.plots).x1,
|
|
1844
|
+
x2: e.calcLinearProgression(r.plots).x2,
|
|
1845
|
+
y1: e.forceValidValue(e.calcLinearProgression(r.plots).y1),
|
|
1846
|
+
y2: e.forceValidValue(e.calcLinearProgression(r.plots).y2),
|
|
1848
1847
|
"stroke-width": 1,
|
|
1849
|
-
stroke:
|
|
1848
|
+
stroke: r.color,
|
|
1850
1849
|
"stroke-dasharray": 2,
|
|
1851
1850
|
"marker-end": `url(#plot_arrow_${c})`
|
|
1852
|
-
}, null, 8,
|
|
1853
|
-
|
|
1851
|
+
}, null, 8, el)) : d("", !0),
|
|
1852
|
+
r.plots.length > 1 ? (a(), i("text", {
|
|
1854
1853
|
key: 1,
|
|
1855
1854
|
"text-anchor": "middle",
|
|
1856
|
-
x: e.calcLinearProgression(
|
|
1857
|
-
y: e.calcLinearProgression(
|
|
1855
|
+
x: e.calcLinearProgression(r.plots).x2,
|
|
1856
|
+
y: e.calcLinearProgression(r.plots).y2 - 6,
|
|
1858
1857
|
"font-size": l.fontSizes.plotLabels,
|
|
1859
|
-
fill:
|
|
1858
|
+
fill: r.color
|
|
1860
1859
|
}, T(e.dataLabel({
|
|
1861
|
-
v: e.calcLinearProgression(
|
|
1860
|
+
v: e.calcLinearProgression(r.plots).trend * 100,
|
|
1862
1861
|
s: "%",
|
|
1863
1862
|
r: 2
|
|
1864
|
-
})), 9,
|
|
1863
|
+
})), 9, tl)) : d("", !0)
|
|
1865
1864
|
])) : d("", !0)
|
|
1866
1865
|
], 6))), 128)),
|
|
1867
|
-
(
|
|
1866
|
+
(a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i("g", {
|
|
1868
1867
|
key: `serie_line_${c}`,
|
|
1869
1868
|
class: B(`serie_line_${c}`),
|
|
1870
|
-
style:
|
|
1869
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1871
1870
|
}, [
|
|
1872
|
-
|
|
1871
|
+
r.smooth && r.plots.length > 1 ? (a(), i("path", {
|
|
1873
1872
|
key: 0,
|
|
1874
|
-
d: `M${
|
|
1873
|
+
d: `M${r.curve}`,
|
|
1875
1874
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1876
1875
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1877
|
-
"stroke-dasharray":
|
|
1876
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1878
1877
|
fill: "none"
|
|
1879
|
-
}, null, 8,
|
|
1878
|
+
}, null, 8, ll)) : r.plots.length > 1 ? (a(), i("path", {
|
|
1880
1879
|
key: 1,
|
|
1881
|
-
d: `M${
|
|
1880
|
+
d: `M${r.straight}`,
|
|
1882
1881
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1883
1882
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1884
|
-
"stroke-dasharray":
|
|
1883
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1885
1884
|
fill: "none",
|
|
1886
1885
|
"stroke-linecap": "round",
|
|
1887
1886
|
"stroke-linejoin": "round"
|
|
1888
|
-
}, null, 8,
|
|
1887
|
+
}, null, 8, rl)) : d("", !0)
|
|
1889
1888
|
], 6))), 128)),
|
|
1890
|
-
t.$slots.pattern ? (
|
|
1891
|
-
(
|
|
1889
|
+
t.$slots.pattern ? (a(), i("defs", al, [
|
|
1890
|
+
(a(!0), i(u, null, I(e.safeDataset, (r, c) => S(t.$slots, "pattern", ee({
|
|
1892
1891
|
key: `serie_pattern_slot_${c}`
|
|
1893
|
-
}, { ref_for: !0 }, { ...
|
|
1892
|
+
}, { ref_for: !0 }, { ...r, seriesIndex: r.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${c}` }), void 0, !0)), 128))
|
|
1894
1893
|
])) : d("", !0),
|
|
1895
|
-
(
|
|
1894
|
+
(a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i("g", {
|
|
1896
1895
|
key: `serie_line_${c}`,
|
|
1897
1896
|
class: B(`serie_line_${c}`),
|
|
1898
|
-
style:
|
|
1897
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1899
1898
|
}, [
|
|
1900
|
-
|
|
1901
|
-
|
|
1899
|
+
r.useArea && r.plots.length > 1 ? (a(), i("g", il, [
|
|
1900
|
+
r.smooth ? (a(!0), i(u, { key: 0 }, I(r.curveAreas, (n, h) => (a(), i(u, { key: h }, [
|
|
1902
1901
|
f("path", {
|
|
1903
|
-
d:
|
|
1904
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(
|
|
1905
|
-
}, null, 8,
|
|
1906
|
-
t.$slots.pattern ? (
|
|
1902
|
+
d: n,
|
|
1903
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1904
|
+
}, null, 8, sl),
|
|
1905
|
+
t.$slots.pattern ? (a(), i("path", {
|
|
1907
1906
|
key: 0,
|
|
1908
|
-
d:
|
|
1909
|
-
fill: `url(#pattern_${l.uniqueId}_${
|
|
1910
|
-
}, null, 8,
|
|
1911
|
-
], 64))), 128)) : (
|
|
1907
|
+
d: n,
|
|
1908
|
+
fill: `url(#pattern_${l.uniqueId}_${r.slotAbsoluteIndex})`
|
|
1909
|
+
}, null, 8, nl)) : d("", !0)
|
|
1910
|
+
], 64))), 128)) : (a(!0), i(u, { key: 1 }, I(r.area.split(";"), (n, h) => (a(), i(u, { key: h }, [
|
|
1912
1911
|
f("path", {
|
|
1913
|
-
d: `M${
|
|
1914
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(
|
|
1915
|
-
}, null, 8,
|
|
1916
|
-
t.$slots.pattern ? (
|
|
1912
|
+
d: `M${n}Z`,
|
|
1913
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1914
|
+
}, null, 8, cl),
|
|
1915
|
+
t.$slots.pattern ? (a(), i("path", {
|
|
1917
1916
|
key: 0,
|
|
1918
|
-
d: `M${
|
|
1919
|
-
fill: `url(#pattern_${l.uniqueId}_${
|
|
1920
|
-
}, null, 8,
|
|
1917
|
+
d: `M${n}Z`,
|
|
1918
|
+
fill: `url(#pattern_${l.uniqueId}_${r.slotAbsoluteIndex})`
|
|
1919
|
+
}, null, 8, ol)) : d("", !0)
|
|
1921
1920
|
], 64))), 128))
|
|
1922
1921
|
])) : d("", !0),
|
|
1923
|
-
|
|
1922
|
+
r.smooth && r.plots.length > 1 ? (a(), i("path", {
|
|
1924
1923
|
key: 1,
|
|
1925
|
-
d: `M${
|
|
1926
|
-
stroke:
|
|
1924
|
+
d: `M${r.curve}`,
|
|
1925
|
+
stroke: r.color,
|
|
1927
1926
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1928
|
-
"stroke-dasharray":
|
|
1927
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1929
1928
|
fill: "none",
|
|
1930
1929
|
"stroke-linecap": "round"
|
|
1931
|
-
}, null, 8,
|
|
1930
|
+
}, null, 8, hl)) : r.plots.length > 1 ? (a(), i("path", {
|
|
1932
1931
|
key: 2,
|
|
1933
|
-
d: `M${
|
|
1934
|
-
stroke:
|
|
1932
|
+
d: `M${r.straight}`,
|
|
1933
|
+
stroke: r.color,
|
|
1935
1934
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1936
|
-
"stroke-dasharray":
|
|
1935
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1937
1936
|
fill: "none",
|
|
1938
1937
|
"stroke-linecap": "round",
|
|
1939
1938
|
"stroke-linejoin": "round"
|
|
1940
|
-
}, null, 8,
|
|
1941
|
-
(
|
|
1939
|
+
}, null, 8, ul)) : d("", !0),
|
|
1940
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
1942
1941
|
key: `circle_line_${c}_${h}`
|
|
1943
1942
|
}, [
|
|
1944
|
-
!e.optimize.linePlot &&
|
|
1943
|
+
!e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h) ? (a(), E(v, {
|
|
1945
1944
|
key: 0,
|
|
1946
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1947
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ?
|
|
1948
|
-
plot: { x: e.checkNaN(
|
|
1945
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
|
|
1946
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? r.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1947
|
+
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1949
1948
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
|
|
1950
|
-
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1949
|
+
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
|
|
1951
1950
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1952
1951
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
1953
|
-
|
|
1952
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
|
|
1954
1953
|
key: 1,
|
|
1955
1954
|
style: { overflow: "visible" },
|
|
1956
1955
|
height: "12",
|
|
1957
1956
|
width: e.FINAL_CONFIG.chart.comments.width,
|
|
1958
|
-
x:
|
|
1959
|
-
y:
|
|
1957
|
+
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1958
|
+
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1960
1959
|
}, [
|
|
1961
|
-
f("div",
|
|
1960
|
+
f("div", gl, [
|
|
1962
1961
|
S(t.$slots, "plot-comment", {
|
|
1963
|
-
plot: { ...
|
|
1962
|
+
plot: { ...n, color: r.color, seriesIndex: c, datapointIndex: h }
|
|
1964
1963
|
}, void 0, !0)
|
|
1965
1964
|
])
|
|
1966
|
-
], 8,
|
|
1965
|
+
], 8, dl)) : d("", !0)
|
|
1967
1966
|
], 64))), 128)),
|
|
1968
|
-
Object.hasOwn(
|
|
1967
|
+
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), i("g", fl, [
|
|
1969
1968
|
f("defs", null, [
|
|
1970
1969
|
f("marker", {
|
|
1971
1970
|
id: `line_arrow_${c}`,
|
|
@@ -1977,364 +1976,364 @@ function za(t, n, o, g, l, e) {
|
|
|
1977
1976
|
}, [
|
|
1978
1977
|
f("polygon", {
|
|
1979
1978
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1980
|
-
fill:
|
|
1981
|
-
}, null, 8,
|
|
1982
|
-
], 8,
|
|
1979
|
+
fill: r.color
|
|
1980
|
+
}, null, 8, Nl)
|
|
1981
|
+
], 8, Il)
|
|
1983
1982
|
]),
|
|
1984
|
-
|
|
1983
|
+
r.plots.length > 1 ? (a(), i("line", {
|
|
1985
1984
|
key: 0,
|
|
1986
|
-
x1: e.calcLinearProgression(
|
|
1987
|
-
x2: e.calcLinearProgression(
|
|
1988
|
-
y1: e.forceValidValue(e.calcLinearProgression(
|
|
1989
|
-
y2: e.forceValidValue(e.calcLinearProgression(
|
|
1985
|
+
x1: e.calcLinearProgression(r.plots).x1,
|
|
1986
|
+
x2: e.calcLinearProgression(r.plots).x2,
|
|
1987
|
+
y1: e.forceValidValue(e.calcLinearProgression(r.plots).y1),
|
|
1988
|
+
y2: e.forceValidValue(e.calcLinearProgression(r.plots).y2),
|
|
1990
1989
|
"stroke-width": 1,
|
|
1991
|
-
stroke:
|
|
1990
|
+
stroke: r.color,
|
|
1992
1991
|
"stroke-dasharray": 2,
|
|
1993
1992
|
"marker-end": `url(#line_arrow_${c})`
|
|
1994
|
-
}, null, 8,
|
|
1995
|
-
|
|
1993
|
+
}, null, 8, ml)) : d("", !0),
|
|
1994
|
+
r.plots.length > 1 ? (a(), i("text", {
|
|
1996
1995
|
key: 1,
|
|
1997
1996
|
"text-anchor": "middle",
|
|
1998
|
-
x: e.calcLinearProgression(
|
|
1999
|
-
y: e.calcLinearProgression(
|
|
1997
|
+
x: e.calcLinearProgression(r.plots).x2,
|
|
1998
|
+
y: e.calcLinearProgression(r.plots).y2 - 6,
|
|
2000
1999
|
"font-size": l.fontSizes.plotLabels,
|
|
2001
|
-
fill:
|
|
2000
|
+
fill: r.color
|
|
2002
2001
|
}, T(e.dataLabel({
|
|
2003
|
-
v: e.calcLinearProgression(
|
|
2002
|
+
v: e.calcLinearProgression(r.plots).trend * 100,
|
|
2004
2003
|
s: "%",
|
|
2005
2004
|
r: 2
|
|
2006
|
-
})), 9,
|
|
2005
|
+
})), 9, bl)) : d("", !0)
|
|
2007
2006
|
])) : d("", !0)
|
|
2008
2007
|
], 6))), 128)),
|
|
2009
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (
|
|
2010
|
-
(
|
|
2008
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (a(), i("g", xl, [
|
|
2009
|
+
(a(!0), i(u, null, I(e.barSet, (r, c) => (a(), i(u, {
|
|
2011
2010
|
key: `xLabel_bar_${c}`
|
|
2012
2011
|
}, [
|
|
2013
|
-
(
|
|
2012
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
2014
2013
|
key: `xLabel_bar_${c}_${h}`
|
|
2015
2014
|
}, [
|
|
2016
|
-
|
|
2015
|
+
n && (!Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h) && e.FINAL_CONFIG.bar.labels.show ? (a(), i("text", {
|
|
2017
2016
|
key: 0,
|
|
2018
|
-
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ?
|
|
2019
|
-
y: e.checkNaN(
|
|
2017
|
+
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
2018
|
+
y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
2020
2019
|
"text-anchor": "middle",
|
|
2021
2020
|
"font-size": l.fontSizes.plotLabels,
|
|
2022
2021
|
fill: e.FINAL_CONFIG.bar.labels.color,
|
|
2023
|
-
style:
|
|
2024
|
-
}, T(e.canShowValue(
|
|
2022
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2023
|
+
}, T(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2025
2024
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
2026
|
-
|
|
2025
|
+
n.value,
|
|
2027
2026
|
e.dataLabel({
|
|
2028
|
-
p:
|
|
2029
|
-
v:
|
|
2030
|
-
s:
|
|
2027
|
+
p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2028
|
+
v: n.value,
|
|
2029
|
+
s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2031
2030
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
2032
2031
|
}),
|
|
2033
2032
|
{
|
|
2034
|
-
datapoint:
|
|
2035
|
-
serie:
|
|
2033
|
+
datapoint: n,
|
|
2034
|
+
serie: r
|
|
2036
2035
|
}
|
|
2037
|
-
) : ""), 13,
|
|
2038
|
-
|
|
2036
|
+
) : ""), 13, Fl)) : d("", !0),
|
|
2037
|
+
n && e.FINAL_CONFIG.bar.serieName.show ? (a(), i("text", {
|
|
2039
2038
|
key: 1,
|
|
2040
|
-
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ?
|
|
2041
|
-
y:
|
|
2039
|
+
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
2040
|
+
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
2042
2041
|
"text-anchor": "middle",
|
|
2043
2042
|
"font-size": l.fontSizes.plotLabels,
|
|
2044
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
2043
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? r.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2045
2044
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2046
|
-
style:
|
|
2047
|
-
}, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source:
|
|
2045
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2046
|
+
}, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: r.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : r.name), 13, _l)) : d("", !0)
|
|
2048
2047
|
], 64))), 128))
|
|
2049
2048
|
], 64))), 128))
|
|
2050
2049
|
])) : d("", !0),
|
|
2051
|
-
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (
|
|
2052
|
-
(
|
|
2050
|
+
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), i("g", yl, [
|
|
2051
|
+
(a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i(u, {
|
|
2053
2052
|
key: `xLabel_plot_${c}`
|
|
2054
2053
|
}, [
|
|
2055
|
-
(
|
|
2054
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
2056
2055
|
key: `xLabel_plot_${c}_${h}`
|
|
2057
2056
|
}, [
|
|
2058
|
-
|
|
2057
|
+
n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (a(), i("text", {
|
|
2059
2058
|
key: 0,
|
|
2060
|
-
x:
|
|
2061
|
-
y:
|
|
2059
|
+
x: n.x,
|
|
2060
|
+
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
2062
2061
|
"text-anchor": "middle",
|
|
2063
2062
|
"font-size": l.fontSizes.plotLabels,
|
|
2064
2063
|
fill: e.FINAL_CONFIG.plot.labels.color,
|
|
2065
|
-
style:
|
|
2066
|
-
}, T(e.canShowValue(
|
|
2064
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2065
|
+
}, T(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2067
2066
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
2068
|
-
|
|
2067
|
+
n.value,
|
|
2069
2068
|
e.dataLabel({
|
|
2070
|
-
p:
|
|
2071
|
-
v:
|
|
2072
|
-
s:
|
|
2069
|
+
p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2070
|
+
v: n.value,
|
|
2071
|
+
s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2073
2072
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
2074
2073
|
}),
|
|
2075
2074
|
{
|
|
2076
|
-
datapoint:
|
|
2077
|
-
serie:
|
|
2075
|
+
datapoint: n,
|
|
2076
|
+
serie: r
|
|
2078
2077
|
}
|
|
2079
|
-
) : ""), 13,
|
|
2078
|
+
) : ""), 13, Al)) : d("", !0)
|
|
2080
2079
|
], 64))), 128))
|
|
2081
2080
|
], 64))), 128))
|
|
2082
|
-
])) : (
|
|
2083
|
-
(
|
|
2081
|
+
])) : (a(), i("g", Ll, [
|
|
2082
|
+
(a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i(u, {
|
|
2084
2083
|
key: `xLabel_plot_${c}`
|
|
2085
2084
|
}, [
|
|
2086
|
-
(
|
|
2085
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
2087
2086
|
key: `xLabel_plot_${c}_${h}`
|
|
2088
2087
|
}, [
|
|
2089
|
-
e.FINAL_CONFIG.plot.tag.followValue ? (
|
|
2090
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) &&
|
|
2088
|
+
e.FINAL_CONFIG.plot.tag.followValue ? (a(), i(u, { key: 1 }, [
|
|
2089
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag ? (a(), i("line", {
|
|
2091
2090
|
key: 0,
|
|
2092
2091
|
class: "vue-ui-xy-tag-plot",
|
|
2093
2092
|
x1: e.drawingArea.left,
|
|
2094
2093
|
x2: e.drawingArea.right,
|
|
2095
|
-
y1:
|
|
2096
|
-
y2:
|
|
2094
|
+
y1: n.y,
|
|
2095
|
+
y2: n.y,
|
|
2097
2096
|
"stroke-width": 1,
|
|
2098
2097
|
"stroke-linecap": "round",
|
|
2099
2098
|
"stroke-dasharray": "2",
|
|
2100
|
-
stroke:
|
|
2101
|
-
}, null, 8,
|
|
2102
|
-
], 64)) : (
|
|
2103
|
-
|
|
2099
|
+
stroke: r.color
|
|
2100
|
+
}, null, 8, Ol)) : d("", !0)
|
|
2101
|
+
], 64)) : (a(), i(u, { key: 0 }, [
|
|
2102
|
+
n && h === 0 && r.useTag && r.useTag === "start" ? (a(), i("foreignObject", {
|
|
2104
2103
|
key: 0,
|
|
2105
|
-
x:
|
|
2106
|
-
y:
|
|
2104
|
+
x: n.x,
|
|
2105
|
+
y: n.y - 20,
|
|
2107
2106
|
height: 24,
|
|
2108
2107
|
width: "150",
|
|
2109
|
-
style:
|
|
2108
|
+
style: x(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2110
2109
|
}, [
|
|
2111
2110
|
f("div", {
|
|
2112
|
-
style:
|
|
2111
|
+
style: x(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2113
2112
|
innerHTML: e.applyDataLabel(
|
|
2114
2113
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2115
|
-
|
|
2116
|
-
|
|
2114
|
+
n.value,
|
|
2115
|
+
r.name,
|
|
2117
2116
|
{
|
|
2118
|
-
datapoint:
|
|
2117
|
+
datapoint: n,
|
|
2119
2118
|
seriesIndex: h,
|
|
2120
|
-
serieName:
|
|
2119
|
+
serieName: r.name
|
|
2121
2120
|
}
|
|
2122
2121
|
)
|
|
2123
|
-
}, null, 12,
|
|
2124
|
-
], 12,
|
|
2125
|
-
|
|
2122
|
+
}, null, 12, Sl)
|
|
2123
|
+
], 12, Cl)) : d("", !0),
|
|
2124
|
+
n && h === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), i("foreignObject", {
|
|
2126
2125
|
key: 1,
|
|
2127
|
-
x:
|
|
2128
|
-
y:
|
|
2126
|
+
x: n.x - r.name.length * (l.fontSizes.plotLabels / 2),
|
|
2127
|
+
y: n.y - 20,
|
|
2129
2128
|
height: 24,
|
|
2130
2129
|
width: "150",
|
|
2131
|
-
style:
|
|
2130
|
+
style: x(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2132
2131
|
}, [
|
|
2133
2132
|
f("div", {
|
|
2134
|
-
style:
|
|
2133
|
+
style: x(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2135
2134
|
innerHTML: e.applyDataLabel(
|
|
2136
2135
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2137
|
-
|
|
2138
|
-
|
|
2136
|
+
n.value,
|
|
2137
|
+
r.name,
|
|
2139
2138
|
{
|
|
2140
|
-
datapoint:
|
|
2139
|
+
datapoint: n,
|
|
2141
2140
|
seriesIndex: h,
|
|
2142
|
-
serieName:
|
|
2141
|
+
serieName: r.name
|
|
2143
2142
|
}
|
|
2144
2143
|
)
|
|
2145
|
-
}, null, 12,
|
|
2146
|
-
], 12,
|
|
2144
|
+
}, null, 12, wl)
|
|
2145
|
+
], 12, kl)) : d("", !0)
|
|
2147
2146
|
], 64))
|
|
2148
2147
|
], 64))), 128))
|
|
2149
2148
|
], 64))), 128))
|
|
2150
2149
|
])),
|
|
2151
|
-
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (
|
|
2152
|
-
(
|
|
2150
|
+
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (a(), i("g", Gl, [
|
|
2151
|
+
(a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i(u, {
|
|
2153
2152
|
key: `xLabel_line_${c}`
|
|
2154
2153
|
}, [
|
|
2155
|
-
(
|
|
2154
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
2156
2155
|
key: `xLabel_line_${c}_${h}`
|
|
2157
2156
|
}, [
|
|
2158
|
-
|
|
2157
|
+
n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (a(), i("text", {
|
|
2159
2158
|
key: 0,
|
|
2160
|
-
x:
|
|
2161
|
-
y:
|
|
2159
|
+
x: n.x,
|
|
2160
|
+
y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
2162
2161
|
"text-anchor": "middle",
|
|
2163
2162
|
"font-size": l.fontSizes.plotLabels,
|
|
2164
2163
|
fill: e.FINAL_CONFIG.line.labels.color,
|
|
2165
|
-
style:
|
|
2166
|
-
}, T(e.canShowValue(
|
|
2164
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2165
|
+
}, T(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2167
2166
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
2168
|
-
|
|
2167
|
+
n.value,
|
|
2169
2168
|
e.dataLabel({
|
|
2170
|
-
p:
|
|
2171
|
-
v:
|
|
2172
|
-
s:
|
|
2169
|
+
p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2170
|
+
v: n.value,
|
|
2171
|
+
s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2173
2172
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
2174
2173
|
}),
|
|
2175
2174
|
{
|
|
2176
|
-
datapoint:
|
|
2177
|
-
serie:
|
|
2175
|
+
datapoint: n,
|
|
2176
|
+
serie: r
|
|
2178
2177
|
}
|
|
2179
|
-
) : ""), 13,
|
|
2178
|
+
) : ""), 13, vl)) : d("", !0)
|
|
2180
2179
|
], 64))), 128))
|
|
2181
2180
|
], 64))), 128))
|
|
2182
|
-
])) : (
|
|
2183
|
-
(
|
|
2181
|
+
])) : (a(), i("g", pl, [
|
|
2182
|
+
(a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i(u, {
|
|
2184
2183
|
key: `xLabel_line_${c}`
|
|
2185
2184
|
}, [
|
|
2186
|
-
(
|
|
2185
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
2187
2186
|
key: `xLabel_line_${c}_${h}`
|
|
2188
2187
|
}, [
|
|
2189
|
-
e.FINAL_CONFIG.line.tag.followValue ? (
|
|
2190
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) &&
|
|
2188
|
+
e.FINAL_CONFIG.line.tag.followValue ? (a(), i(u, { key: 1 }, [
|
|
2189
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag ? (a(), i("line", {
|
|
2191
2190
|
key: 0,
|
|
2192
2191
|
class: "vue-ui-xy-tag-line",
|
|
2193
2192
|
x1: e.drawingArea.left,
|
|
2194
2193
|
x2: e.drawingArea.right,
|
|
2195
|
-
y1:
|
|
2196
|
-
y2:
|
|
2194
|
+
y1: n.y,
|
|
2195
|
+
y2: n.y,
|
|
2197
2196
|
"stroke-width": 1,
|
|
2198
2197
|
"stroke-linecap": "round",
|
|
2199
2198
|
"stroke-dasharray": "2",
|
|
2200
|
-
stroke:
|
|
2201
|
-
}, null, 8,
|
|
2202
|
-
], 64)) : (
|
|
2203
|
-
|
|
2199
|
+
stroke: r.color
|
|
2200
|
+
}, null, 8, Vl)) : d("", !0)
|
|
2201
|
+
], 64)) : (a(), i(u, { key: 0 }, [
|
|
2202
|
+
n && h === 0 && r.useTag && r.useTag === "start" ? (a(), i("foreignObject", {
|
|
2204
2203
|
key: 0,
|
|
2205
|
-
x:
|
|
2206
|
-
y:
|
|
2204
|
+
x: n.x,
|
|
2205
|
+
y: n.y - 20,
|
|
2207
2206
|
height: 24,
|
|
2208
2207
|
width: "150",
|
|
2209
|
-
style:
|
|
2208
|
+
style: x(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2210
2209
|
}, [
|
|
2211
2210
|
f("div", {
|
|
2212
|
-
style:
|
|
2211
|
+
style: x(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2213
2212
|
innerHTML: e.applyDataLabel(
|
|
2214
2213
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2215
|
-
|
|
2216
|
-
|
|
2214
|
+
n.value,
|
|
2215
|
+
r.name,
|
|
2217
2216
|
{
|
|
2218
|
-
datapoint:
|
|
2217
|
+
datapoint: n,
|
|
2219
2218
|
seriesIndex: h,
|
|
2220
|
-
serieName:
|
|
2219
|
+
serieName: r.name
|
|
2221
2220
|
}
|
|
2222
2221
|
)
|
|
2223
|
-
}, null, 12,
|
|
2224
|
-
], 12,
|
|
2225
|
-
|
|
2222
|
+
}, null, 12, Ml)
|
|
2223
|
+
], 12, zl)) : d("", !0),
|
|
2224
|
+
n && h === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), i("foreignObject", {
|
|
2226
2225
|
key: 1,
|
|
2227
|
-
x:
|
|
2228
|
-
y:
|
|
2226
|
+
x: n.x,
|
|
2227
|
+
y: n.y - 20,
|
|
2229
2228
|
height: 24,
|
|
2230
2229
|
width: "150",
|
|
2231
|
-
style:
|
|
2230
|
+
style: x(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2232
2231
|
}, [
|
|
2233
2232
|
f("div", {
|
|
2234
|
-
style:
|
|
2233
|
+
style: x(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2235
2234
|
innerHTML: e.applyDataLabel(
|
|
2236
2235
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2237
|
-
|
|
2238
|
-
|
|
2236
|
+
n.value,
|
|
2237
|
+
r.name,
|
|
2239
2238
|
{
|
|
2240
|
-
datapoint:
|
|
2239
|
+
datapoint: n,
|
|
2241
2240
|
seriesIndex: h,
|
|
2242
|
-
serieName:
|
|
2241
|
+
serieName: r.name
|
|
2243
2242
|
}
|
|
2244
2243
|
)
|
|
2245
|
-
}, null, 12,
|
|
2246
|
-
], 12,
|
|
2244
|
+
}, null, 12, Pl)
|
|
2245
|
+
], 12, Tl)) : d("", !0)
|
|
2247
2246
|
], 64))
|
|
2248
2247
|
], 64))), 128))
|
|
2249
2248
|
], 64))), 128))
|
|
2250
2249
|
])),
|
|
2251
|
-
(
|
|
2250
|
+
(a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i(u, {
|
|
2252
2251
|
key: `xLabel_line_${c}`
|
|
2253
2252
|
}, [
|
|
2254
|
-
(
|
|
2253
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
2255
2254
|
key: `xLabel_line_${c}_${h}`
|
|
2256
2255
|
}, [
|
|
2257
|
-
|
|
2256
|
+
n && h === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), i("text", {
|
|
2258
2257
|
key: 0,
|
|
2259
|
-
x:
|
|
2260
|
-
y:
|
|
2258
|
+
x: n.x - l.fontSizes.plotLabels,
|
|
2259
|
+
y: n.y,
|
|
2261
2260
|
"font-size": l.fontSizes.plotLabels,
|
|
2262
2261
|
"text-anchor": "end",
|
|
2263
|
-
fill:
|
|
2262
|
+
fill: r.color,
|
|
2264
2263
|
innerHTML: e.createTSpans({
|
|
2265
|
-
content:
|
|
2264
|
+
content: r.name,
|
|
2266
2265
|
fontSize: l.fontSizes.plotLabels,
|
|
2267
|
-
fill:
|
|
2268
|
-
x:
|
|
2269
|
-
y:
|
|
2266
|
+
fill: r.color,
|
|
2267
|
+
x: n.x - l.fontSizes.plotLabels,
|
|
2268
|
+
y: n.y,
|
|
2270
2269
|
maxWords: 2
|
|
2271
2270
|
}),
|
|
2272
|
-
style:
|
|
2273
|
-
}, null, 12,
|
|
2274
|
-
|
|
2271
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2272
|
+
}, null, 12, Rl)) : d("", !0),
|
|
2273
|
+
n && h === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), i("text", {
|
|
2275
2274
|
key: 1,
|
|
2276
|
-
x:
|
|
2277
|
-
y:
|
|
2275
|
+
x: n.x + l.fontSizes.plotLabels,
|
|
2276
|
+
y: n.y,
|
|
2278
2277
|
"font-size": l.fontSizes.plotLabels,
|
|
2279
2278
|
"text-anchor": "start",
|
|
2280
|
-
fill:
|
|
2279
|
+
fill: r.color,
|
|
2281
2280
|
innerHTML: e.createTSpans({
|
|
2282
|
-
content:
|
|
2281
|
+
content: r.name,
|
|
2283
2282
|
fontSize: l.fontSizes.plotLabels,
|
|
2284
|
-
fill:
|
|
2285
|
-
x:
|
|
2286
|
-
y:
|
|
2283
|
+
fill: r.color,
|
|
2284
|
+
x: n.x + l.fontSizes.plotLabels,
|
|
2285
|
+
y: n.y,
|
|
2287
2286
|
maxWords: 2
|
|
2288
2287
|
}),
|
|
2289
|
-
style:
|
|
2290
|
-
}, null, 12,
|
|
2288
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2289
|
+
}, null, 12, Hl)) : d("", !0)
|
|
2291
2290
|
], 64))), 128))
|
|
2292
2291
|
], 64))), 128)),
|
|
2293
|
-
(
|
|
2292
|
+
(a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i(u, {
|
|
2294
2293
|
key: `xLabel_plot_${c}`
|
|
2295
2294
|
}, [
|
|
2296
|
-
(
|
|
2295
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
2297
2296
|
key: `xLabel_plot_${c}_${h}`
|
|
2298
2297
|
}, [
|
|
2299
|
-
|
|
2298
|
+
n && h === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), i("text", {
|
|
2300
2299
|
key: 0,
|
|
2301
|
-
x:
|
|
2302
|
-
y:
|
|
2300
|
+
x: n.x - l.fontSizes.plotLabels,
|
|
2301
|
+
y: n.y,
|
|
2303
2302
|
"font-size": l.fontSizes.plotLabels,
|
|
2304
2303
|
"text-anchor": "end",
|
|
2305
|
-
fill:
|
|
2304
|
+
fill: r.color,
|
|
2306
2305
|
innerHTML: e.createTSpans({
|
|
2307
|
-
content:
|
|
2306
|
+
content: r.name,
|
|
2308
2307
|
fontSize: l.fontSizes.plotLabels,
|
|
2309
|
-
fill:
|
|
2310
|
-
x:
|
|
2311
|
-
y:
|
|
2308
|
+
fill: r.color,
|
|
2309
|
+
x: n.x - l.fontSizes.plotLabels,
|
|
2310
|
+
y: n.y,
|
|
2312
2311
|
maxWords: 2
|
|
2313
2312
|
}),
|
|
2314
|
-
style:
|
|
2315
|
-
}, null, 12,
|
|
2316
|
-
|
|
2313
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2314
|
+
}, null, 12, Dl)) : d("", !0),
|
|
2315
|
+
n && h === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), i("text", {
|
|
2317
2316
|
key: 1,
|
|
2318
|
-
x:
|
|
2319
|
-
y:
|
|
2317
|
+
x: n.x + l.fontSizes.plotLabels,
|
|
2318
|
+
y: n.y,
|
|
2320
2319
|
"font-size": l.fontSizes.plotLabels,
|
|
2321
2320
|
"text-anchor": "start",
|
|
2322
|
-
fill:
|
|
2321
|
+
fill: r.color,
|
|
2323
2322
|
innerHTML: e.createTSpans({
|
|
2324
|
-
content:
|
|
2323
|
+
content: r.name,
|
|
2325
2324
|
fontSize: l.fontSizes.plotLabels,
|
|
2326
|
-
fill:
|
|
2327
|
-
x:
|
|
2328
|
-
y:
|
|
2325
|
+
fill: r.color,
|
|
2326
|
+
x: n.x + l.fontSizes.plotLabels,
|
|
2327
|
+
y: n.y,
|
|
2329
2328
|
maxWords: 2
|
|
2330
2329
|
}),
|
|
2331
|
-
style:
|
|
2332
|
-
}, null, 12,
|
|
2330
|
+
style: x(`opacity:${l.selectedScale ? l.selectedScale === r.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2331
|
+
}, null, 12, Wl)) : d("", !0)
|
|
2333
2332
|
], 64))), 128))
|
|
2334
2333
|
], 64))), 128)),
|
|
2335
|
-
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (
|
|
2334
|
+
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), i(u, { key: 11 }, [
|
|
2336
2335
|
f("defs", null, [
|
|
2337
|
-
(
|
|
2336
|
+
(a(!0), i(u, null, I(e.allScales, (r, c) => (a(), i("linearGradient", {
|
|
2338
2337
|
id: `individual_scale_gradient_${l.uniqueId}_${c}`,
|
|
2339
2338
|
x1: "0%",
|
|
2340
2339
|
x2: "100%",
|
|
@@ -2345,45 +2344,45 @@ function za(t, n, o, g, l, e) {
|
|
|
2345
2344
|
offset: "0%",
|
|
2346
2345
|
"stop-color": e.FINAL_CONFIG.chart.backgroundColor,
|
|
2347
2346
|
"stop-opacity": "0"
|
|
2348
|
-
}, null, 8,
|
|
2347
|
+
}, null, 8, Bl),
|
|
2349
2348
|
f("stop", {
|
|
2350
2349
|
offset: "100%",
|
|
2351
|
-
"stop-color":
|
|
2350
|
+
"stop-color": r.color,
|
|
2352
2351
|
"stop-opacity": "0.2"
|
|
2353
|
-
}, null, 8,
|
|
2354
|
-
], 8,
|
|
2352
|
+
}, null, 8, Yl)
|
|
2353
|
+
], 8, El))), 256))
|
|
2355
2354
|
]),
|
|
2356
|
-
(
|
|
2357
|
-
x:
|
|
2355
|
+
(a(!0), i(u, null, I(e.allScales, (r, c) => (a(), i("rect", {
|
|
2356
|
+
x: r.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2358
2357
|
y: e.drawingArea.top,
|
|
2359
2358
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2360
2359
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2361
|
-
fill: l.selectedScale ===
|
|
2362
|
-
onMouseenter: (
|
|
2363
|
-
onMouseleave:
|
|
2364
|
-
}, null, 40,
|
|
2360
|
+
fill: l.selectedScale === r.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${c})` : "transparent",
|
|
2361
|
+
onMouseenter: (n) => l.selectedScale = r.groupId,
|
|
2362
|
+
onMouseleave: s[0] || (s[0] = (n) => l.selectedScale = null)
|
|
2363
|
+
}, null, 40, ql))), 256))
|
|
2365
2364
|
], 64)) : d("", !0),
|
|
2366
2365
|
f("g", null, [
|
|
2367
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (
|
|
2366
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (a(), i("text", {
|
|
2368
2367
|
key: 0,
|
|
2369
2368
|
"font-size": l.fontSizes.yAxis,
|
|
2370
2369
|
fill: e.FINAL_CONFIG.chart.grid.labels.color,
|
|
2371
2370
|
transform: `translate(${l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2372
2371
|
"text-anchor": "middle",
|
|
2373
2372
|
style: { transition: "none" }
|
|
2374
|
-
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9,
|
|
2375
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (
|
|
2373
|
+
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Xl)) : d("", !0),
|
|
2374
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), i("text", {
|
|
2376
2375
|
key: 1,
|
|
2377
2376
|
"text-anchor": "middle",
|
|
2378
2377
|
x: l.width / 2,
|
|
2379
2378
|
y: e.drawingArea.bottom + l.fontSizes.yAxis + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2380
2379
|
"font-size": l.fontSizes.yAxis,
|
|
2381
2380
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2382
|
-
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9,
|
|
2381
|
+
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Ul)) : d("", !0)
|
|
2383
2382
|
]),
|
|
2384
|
-
|
|
2385
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (
|
|
2386
|
-
t.$slots["time-label"] ? (
|
|
2383
|
+
s[9] || (s[9] = $('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),
|
|
2384
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g", Zl, [
|
|
2385
|
+
t.$slots["time-label"] ? (a(!0), i(u, { key: 0 }, I(e.timeLabels, (r, c) => S(t.$slots, "time-label", ee({
|
|
2387
2386
|
key: `time_label_${c}`,
|
|
2388
2387
|
ref_for: !0
|
|
2389
2388
|
}, {
|
|
@@ -2392,14 +2391,14 @@ function za(t, n, o, g, l, e) {
|
|
|
2392
2391
|
fontSize: l.fontSizes.xAxis,
|
|
2393
2392
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2394
2393
|
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2395
|
-
absoluteIndex:
|
|
2396
|
-
content:
|
|
2394
|
+
absoluteIndex: r.absoluteIndex,
|
|
2395
|
+
content: r.text,
|
|
2397
2396
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2398
|
-
show:
|
|
2399
|
-
}), void 0, !0)), 128)) : (
|
|
2397
|
+
show: r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !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
|
|
2398
|
+
}), void 0, !0)), 128)) : (a(!0), i(u, { key: 1 }, I(e.timeLabels, (r, c) => (a(), i("g", {
|
|
2400
2399
|
key: `time_label_${c}`
|
|
2401
2400
|
}, [
|
|
2402
|
-
|
|
2401
|
+
r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !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 ? (a(), i("text", {
|
|
2403
2402
|
key: 0,
|
|
2404
2403
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2405
2404
|
"font-size": l.fontSizes.xAxis,
|
|
@@ -2408,25 +2407,25 @@ function za(t, n, o, g, l, e) {
|
|
|
2408
2407
|
style: {
|
|
2409
2408
|
cursor: "pointer"
|
|
2410
2409
|
},
|
|
2411
|
-
onClick: () => e.selectTimeLabel(
|
|
2412
|
-
}, T(
|
|
2410
|
+
onClick: () => e.selectTimeLabel(r, c)
|
|
2411
|
+
}, T(r.text || ""), 9, Jl)) : d("", !0)
|
|
2413
2412
|
]))), 128))
|
|
2414
2413
|
])) : d("", !0),
|
|
2415
2414
|
f("g", null, [
|
|
2416
|
-
(
|
|
2415
|
+
(a(!0), i(u, null, I(e.maxSeries, (r, c) => (a(), i("rect", {
|
|
2417
2416
|
key: `tooltip_trap_${c}`,
|
|
2418
2417
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
|
|
2419
2418
|
y: e.drawingArea.top,
|
|
2420
2419
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2421
2420
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2422
2421
|
fill: "transparent",
|
|
2423
|
-
onMouseenter: (
|
|
2424
|
-
onMouseleave:
|
|
2425
|
-
onClick: (
|
|
2426
|
-
}, null, 40,
|
|
2422
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
|
|
2423
|
+
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2424
|
+
onClick: (n) => e.selectX(c)
|
|
2425
|
+
}, null, 40, Kl))), 128))
|
|
2427
2426
|
]),
|
|
2428
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (
|
|
2429
|
-
(
|
|
2427
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), i("g", Ql, [
|
|
2428
|
+
(a(), i("foreignObject", {
|
|
2430
2429
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2431
2430
|
y: e.drawingArea.bottom,
|
|
2432
2431
|
width: "200",
|
|
@@ -2435,247 +2434,247 @@ function za(t, n, o, g, l, e) {
|
|
|
2435
2434
|
}, [
|
|
2436
2435
|
f("div", {
|
|
2437
2436
|
class: "vue-ui-xy-time-tag",
|
|
2438
|
-
style:
|
|
2437
|
+
style: x(`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`)
|
|
2439
2438
|
}, T(e.timeLabels[(l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)].text || (l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)), 5)
|
|
2440
|
-
], 8,
|
|
2439
|
+
], 8, jl)),
|
|
2441
2440
|
f("circle", {
|
|
2442
2441
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2443
2442
|
cy: e.drawingArea.bottom,
|
|
2444
2443
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2445
2444
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2446
|
-
}, null, 8,
|
|
2445
|
+
}, null, 8, $l)
|
|
2447
2446
|
])) : d("", !0)
|
|
2448
2447
|
])) : d("", !0),
|
|
2449
2448
|
S(t.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2450
|
-
], 14,
|
|
2451
|
-
t.$slots.watermark ? (
|
|
2452
|
-
S(t.$slots, "watermark",
|
|
2449
|
+
], 14, je)) : d("", !0),
|
|
2450
|
+
t.$slots.watermark ? (a(), i("div", er, [
|
|
2451
|
+
S(t.$slots, "watermark", Y(q({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
|
|
2453
2452
|
])) : d("", !0),
|
|
2454
|
-
(
|
|
2453
|
+
(a(!0), i(u, null, I(e.lineSet, (r, c) => (a(), i(u, {
|
|
2455
2454
|
key: `tag_line_${c}`
|
|
2456
2455
|
}, [
|
|
2457
|
-
(
|
|
2456
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
2458
2457
|
key: `tag_line_${c}_${h}`
|
|
2459
2458
|
}, [
|
|
2460
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) &&
|
|
2459
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag && r.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
|
|
2461
2460
|
key: 0,
|
|
2462
2461
|
ref_for: !0,
|
|
2463
2462
|
ref: (y) => e.setTagRef(c, h, y, "right", "line"),
|
|
2464
2463
|
class: "vue-ui-xy-tag",
|
|
2465
2464
|
"data-tag": "right",
|
|
2466
|
-
style:
|
|
2465
|
+
style: x({
|
|
2467
2466
|
position: "fixed",
|
|
2468
2467
|
top: e.placeXYTag({
|
|
2469
2468
|
svgElement: l.svgRef,
|
|
2470
2469
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2471
|
-
y:
|
|
2470
|
+
y: n.y,
|
|
2472
2471
|
element: l.tagRefs[`${c}_${h}_right_line`],
|
|
2473
2472
|
position: "right"
|
|
2474
2473
|
}).top + "px",
|
|
2475
2474
|
left: e.placeXYTag({
|
|
2476
2475
|
svgElement: l.svgRef,
|
|
2477
2476
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2478
|
-
y:
|
|
2477
|
+
y: n.y,
|
|
2479
2478
|
element: l.tagRefs[`${c}_${h}_right_line`],
|
|
2480
2479
|
position: "right"
|
|
2481
2480
|
}).left + "px",
|
|
2482
2481
|
height: "fit-content",
|
|
2483
2482
|
width: "fit-content",
|
|
2484
|
-
background:
|
|
2485
|
-
color: e.adaptColorToBackground(
|
|
2483
|
+
background: r.color,
|
|
2484
|
+
color: e.adaptColorToBackground(r.color),
|
|
2486
2485
|
padding: "0 6px",
|
|
2487
2486
|
fontSize: e.FINAL_CONFIG.line.tag.fontSize + "px",
|
|
2488
2487
|
opacity: 1
|
|
2489
2488
|
})
|
|
2490
2489
|
}, [
|
|
2491
|
-
(
|
|
2490
|
+
(a(), i("svg", tr, [
|
|
2492
2491
|
f("path", {
|
|
2493
2492
|
d: "M 0,10 10,0 10,20 Z",
|
|
2494
|
-
fill:
|
|
2493
|
+
fill: r.color,
|
|
2495
2494
|
stroke: "none"
|
|
2496
|
-
}, null, 8,
|
|
2495
|
+
}, null, 8, lr)
|
|
2497
2496
|
])),
|
|
2498
2497
|
f("div", {
|
|
2499
2498
|
class: "vue-ui-xy-tag-content",
|
|
2500
2499
|
innerHTML: e.applyDataLabel(
|
|
2501
2500
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2502
|
-
|
|
2503
|
-
|
|
2501
|
+
n.value,
|
|
2502
|
+
r.name,
|
|
2504
2503
|
{
|
|
2505
|
-
datapoint:
|
|
2504
|
+
datapoint: n,
|
|
2506
2505
|
seriesIndex: h,
|
|
2507
|
-
serieName:
|
|
2506
|
+
serieName: r.name
|
|
2508
2507
|
}
|
|
2509
2508
|
)
|
|
2510
|
-
}, null, 8,
|
|
2509
|
+
}, null, 8, rr)
|
|
2511
2510
|
], 4)) : d("", !0),
|
|
2512
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) &&
|
|
2511
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag && r.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
|
|
2513
2512
|
key: 1,
|
|
2514
2513
|
ref_for: !0,
|
|
2515
2514
|
ref: (y) => e.setTagRef(c, h, y, "left", "line"),
|
|
2516
2515
|
class: "vue-ui-xy-tag",
|
|
2517
2516
|
"data-tag": "left",
|
|
2518
|
-
style:
|
|
2517
|
+
style: x({
|
|
2519
2518
|
position: "fixed",
|
|
2520
2519
|
top: e.placeXYTag({
|
|
2521
2520
|
svgElement: l.svgRef,
|
|
2522
2521
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2523
|
-
y:
|
|
2522
|
+
y: n.y,
|
|
2524
2523
|
element: l.tagRefs[`${c}_${h}_left_line`],
|
|
2525
2524
|
position: "left"
|
|
2526
2525
|
}).top + "px",
|
|
2527
2526
|
left: e.placeXYTag({
|
|
2528
2527
|
svgElement: l.svgRef,
|
|
2529
2528
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2530
|
-
y:
|
|
2529
|
+
y: n.y,
|
|
2531
2530
|
element: l.tagRefs[`${c}_${h}_left_line`],
|
|
2532
2531
|
position: "left"
|
|
2533
2532
|
}).left + "px",
|
|
2534
2533
|
height: "fit-content",
|
|
2535
2534
|
width: "fit-content",
|
|
2536
|
-
background:
|
|
2537
|
-
color: e.adaptColorToBackground(
|
|
2535
|
+
background: r.color,
|
|
2536
|
+
color: e.adaptColorToBackground(r.color),
|
|
2538
2537
|
padding: "0 6px",
|
|
2539
2538
|
fontSize: e.FINAL_CONFIG.line.tag.fontSize + "px",
|
|
2540
2539
|
opacity: 1
|
|
2541
2540
|
})
|
|
2542
2541
|
}, [
|
|
2543
|
-
(
|
|
2542
|
+
(a(), i("svg", ar, [
|
|
2544
2543
|
f("path", {
|
|
2545
2544
|
d: "M 0,0 10,10 0,20 Z",
|
|
2546
|
-
fill:
|
|
2545
|
+
fill: r.color,
|
|
2547
2546
|
stroke: "none"
|
|
2548
|
-
}, null, 8,
|
|
2547
|
+
}, null, 8, ir)
|
|
2549
2548
|
])),
|
|
2550
2549
|
f("div", {
|
|
2551
2550
|
class: "vue-ui-xy-tag-content",
|
|
2552
2551
|
innerHTML: e.applyDataLabel(
|
|
2553
2552
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2554
|
-
|
|
2555
|
-
|
|
2553
|
+
n.value,
|
|
2554
|
+
r.name,
|
|
2556
2555
|
{
|
|
2557
|
-
datapoint:
|
|
2556
|
+
datapoint: n,
|
|
2558
2557
|
seriesIndex: h,
|
|
2559
|
-
serieName:
|
|
2558
|
+
serieName: r.name
|
|
2560
2559
|
}
|
|
2561
2560
|
)
|
|
2562
|
-
}, null, 8,
|
|
2561
|
+
}, null, 8, sr)
|
|
2563
2562
|
], 4)) : d("", !0)
|
|
2564
2563
|
], 64))), 128))
|
|
2565
2564
|
], 64))), 128)),
|
|
2566
|
-
(
|
|
2565
|
+
(a(!0), i(u, null, I(e.plotSet, (r, c) => (a(), i(u, {
|
|
2567
2566
|
key: `tag_plot_${c}`
|
|
2568
2567
|
}, [
|
|
2569
|
-
(
|
|
2568
|
+
(a(!0), i(u, null, I(r.plots, (n, h) => (a(), i(u, {
|
|
2570
2569
|
key: `tag_plot_${c}_${h}`
|
|
2571
2570
|
}, [
|
|
2572
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) &&
|
|
2571
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag && r.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
|
|
2573
2572
|
key: 0,
|
|
2574
2573
|
ref_for: !0,
|
|
2575
2574
|
ref: (y) => e.setTagRef(c, h, y, "right", "plot"),
|
|
2576
2575
|
class: "vue-ui-xy-tag",
|
|
2577
2576
|
"data-tag": "right",
|
|
2578
|
-
style:
|
|
2577
|
+
style: x({
|
|
2579
2578
|
position: "fixed",
|
|
2580
2579
|
top: e.placeXYTag({
|
|
2581
2580
|
svgElement: l.svgRef,
|
|
2582
2581
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2583
|
-
y:
|
|
2582
|
+
y: n.y,
|
|
2584
2583
|
element: l.tagRefs[`${c}_${h}_right_plot`],
|
|
2585
2584
|
position: "right"
|
|
2586
2585
|
}).top + "px",
|
|
2587
2586
|
left: e.placeXYTag({
|
|
2588
2587
|
svgElement: l.svgRef,
|
|
2589
2588
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2590
|
-
y:
|
|
2589
|
+
y: n.y,
|
|
2591
2590
|
element: l.tagRefs[`${c}_${h}_right_plot`],
|
|
2592
2591
|
position: "right"
|
|
2593
2592
|
}).left + "px",
|
|
2594
2593
|
height: "fit-content",
|
|
2595
2594
|
width: "fit-content",
|
|
2596
|
-
background:
|
|
2597
|
-
color: e.adaptColorToBackground(
|
|
2595
|
+
background: r.color,
|
|
2596
|
+
color: e.adaptColorToBackground(r.color),
|
|
2598
2597
|
padding: "0 6px",
|
|
2599
2598
|
fontSize: e.FINAL_CONFIG.plot.tag.fontSize + "px",
|
|
2600
2599
|
opacity: 1
|
|
2601
2600
|
})
|
|
2602
2601
|
}, [
|
|
2603
|
-
(
|
|
2602
|
+
(a(), i("svg", nr, [
|
|
2604
2603
|
f("path", {
|
|
2605
2604
|
d: "M 0,10 10,0 10,20 Z",
|
|
2606
|
-
fill:
|
|
2605
|
+
fill: r.color,
|
|
2607
2606
|
stroke: "none"
|
|
2608
|
-
}, null, 8,
|
|
2607
|
+
}, null, 8, cr)
|
|
2609
2608
|
])),
|
|
2610
2609
|
f("div", {
|
|
2611
2610
|
class: "vue-ui-xy-tag-content",
|
|
2612
2611
|
innerHTML: e.applyDataLabel(
|
|
2613
2612
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2614
|
-
|
|
2615
|
-
|
|
2613
|
+
n.value,
|
|
2614
|
+
r.name,
|
|
2616
2615
|
{
|
|
2617
|
-
datapoint:
|
|
2616
|
+
datapoint: n,
|
|
2618
2617
|
seriesIndex: h,
|
|
2619
|
-
serieName:
|
|
2618
|
+
serieName: r.name
|
|
2620
2619
|
}
|
|
2621
2620
|
)
|
|
2622
|
-
}, null, 8,
|
|
2621
|
+
}, null, 8, or)
|
|
2623
2622
|
], 4)) : d("", !0),
|
|
2624
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) &&
|
|
2623
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && r.useTag && r.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
|
|
2625
2624
|
key: 1,
|
|
2626
2625
|
ref_for: !0,
|
|
2627
2626
|
ref: (y) => e.setTagRef(c, h, y, "left", "plot"),
|
|
2628
2627
|
class: "vue-ui-xy-tag",
|
|
2629
2628
|
"data-tag": "left",
|
|
2630
|
-
style:
|
|
2629
|
+
style: x({
|
|
2631
2630
|
position: "fixed",
|
|
2632
2631
|
top: e.placeXYTag({
|
|
2633
2632
|
svgElement: l.svgRef,
|
|
2634
2633
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2635
|
-
y:
|
|
2634
|
+
y: n.y,
|
|
2636
2635
|
element: l.tagRefs[`${c}_${h}_left_plot`],
|
|
2637
2636
|
position: "left"
|
|
2638
2637
|
}).top + "px",
|
|
2639
2638
|
left: e.placeXYTag({
|
|
2640
2639
|
svgElement: l.svgRef,
|
|
2641
2640
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2642
|
-
y:
|
|
2641
|
+
y: n.y,
|
|
2643
2642
|
element: l.tagRefs[`${c}_${h}_left_plot`],
|
|
2644
2643
|
position: "left"
|
|
2645
2644
|
}).left + "px",
|
|
2646
2645
|
height: "fit-content",
|
|
2647
2646
|
width: "fit-content",
|
|
2648
|
-
background:
|
|
2649
|
-
color: e.adaptColorToBackground(
|
|
2647
|
+
background: r.color,
|
|
2648
|
+
color: e.adaptColorToBackground(r.color),
|
|
2650
2649
|
padding: "0 6px",
|
|
2651
2650
|
fontSize: e.FINAL_CONFIG.plot.tag.fontSize + "px",
|
|
2652
2651
|
opacity: 1
|
|
2653
2652
|
})
|
|
2654
2653
|
}, [
|
|
2655
|
-
(
|
|
2654
|
+
(a(), i("svg", hr, [
|
|
2656
2655
|
f("path", {
|
|
2657
2656
|
d: "M 0,0 10,10 0,20 Z",
|
|
2658
|
-
fill:
|
|
2657
|
+
fill: r.color,
|
|
2659
2658
|
stroke: "none"
|
|
2660
|
-
}, null, 8,
|
|
2659
|
+
}, null, 8, ur)
|
|
2661
2660
|
])),
|
|
2662
2661
|
f("div", {
|
|
2663
2662
|
class: "vue-ui-xy-tag-content",
|
|
2664
2663
|
innerHTML: e.applyDataLabel(
|
|
2665
2664
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2666
|
-
|
|
2667
|
-
|
|
2665
|
+
n.value,
|
|
2666
|
+
r.name,
|
|
2668
2667
|
{
|
|
2669
|
-
datapoint:
|
|
2668
|
+
datapoint: n,
|
|
2670
2669
|
seriesIndex: h,
|
|
2671
|
-
serieName:
|
|
2670
|
+
serieName: r.name
|
|
2672
2671
|
}
|
|
2673
2672
|
)
|
|
2674
|
-
}, null, 8,
|
|
2673
|
+
}, null, 8, dr)
|
|
2675
2674
|
], 4)) : d("", !0)
|
|
2676
2675
|
], 64))), 128))
|
|
2677
2676
|
], 64))), 128)),
|
|
2678
|
-
e.isDataset ? d("", !0) : (
|
|
2677
|
+
e.isDataset ? d("", !0) : (a(), E(k, {
|
|
2679
2678
|
key: 6,
|
|
2680
2679
|
config: {
|
|
2681
2680
|
type: "line",
|
|
@@ -2693,7 +2692,7 @@ function za(t, n, o, g, l, e) {
|
|
|
2693
2692
|
}
|
|
2694
2693
|
}
|
|
2695
2694
|
}, null, 8, ["config"])),
|
|
2696
|
-
e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (
|
|
2695
|
+
e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (a(), E(w, {
|
|
2697
2696
|
ref: "chartSlicer",
|
|
2698
2697
|
key: `slicer_${l.slicerStep}`,
|
|
2699
2698
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2719,33 +2718,33 @@ function za(t, n, o, g, l, e) {
|
|
|
2719
2718
|
valueStart: l.slicer.start,
|
|
2720
2719
|
valueEnd: l.slicer.end,
|
|
2721
2720
|
start: l.slicer.start,
|
|
2722
|
-
"onUpdate:start":
|
|
2721
|
+
"onUpdate:start": s[2] || (s[2] = (r) => l.slicer.start = r),
|
|
2723
2722
|
end: l.slicer.end,
|
|
2724
|
-
"onUpdate:end":
|
|
2723
|
+
"onUpdate:end": s[3] || (s[3] = (r) => l.slicer.end = r),
|
|
2725
2724
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2726
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((
|
|
2725
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((r) => e.largestTriangleThreeBucketsArray({ data: r.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2727
2726
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2728
2727
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2729
2728
|
onReset: e.refreshSlicer,
|
|
2730
2729
|
onTrapMouse: e.selectMinimapIndex
|
|
2731
2730
|
}, {
|
|
2732
|
-
"reset-action": V(({ reset:
|
|
2733
|
-
S(t.$slots, "reset-action",
|
|
2731
|
+
"reset-action": V(({ reset: r }) => [
|
|
2732
|
+
S(t.$slots, "reset-action", Y(q({ reset: r })), void 0, !0)
|
|
2734
2733
|
]),
|
|
2735
2734
|
_: 3
|
|
2736
2735
|
}, 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"])) : d("", !0),
|
|
2737
|
-
e.FINAL_CONFIG.chart.legend.show ? (
|
|
2736
|
+
e.FINAL_CONFIG.chart.legend.show ? (a(), i("div", {
|
|
2738
2737
|
key: 8,
|
|
2739
2738
|
ref: "chartLegend",
|
|
2740
2739
|
class: "vue-ui-xy-legend",
|
|
2741
|
-
style:
|
|
2740
|
+
style: x(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2742
2741
|
}, [
|
|
2743
|
-
(
|
|
2742
|
+
(a(!0), i(u, null, I(e.absoluteDataset, (r, c) => (a(), i("div", {
|
|
2744
2743
|
key: `div_legend_item_${c}`,
|
|
2745
|
-
onClick: (
|
|
2746
|
-
class: B({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(
|
|
2744
|
+
onClick: (n) => e.segregate(r),
|
|
2745
|
+
class: B({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(r.id) })
|
|
2747
2746
|
}, [
|
|
2748
|
-
l.icons[
|
|
2747
|
+
l.icons[r.type] === "line" ? (a(), i("svg", fr, [
|
|
2749
2748
|
f("rect", {
|
|
2750
2749
|
x: "0",
|
|
2751
2750
|
y: "7.5",
|
|
@@ -2754,18 +2753,18 @@ function za(t, n, o, g, l, e) {
|
|
|
2754
2753
|
"stroke-width": 0.5,
|
|
2755
2754
|
height: "3",
|
|
2756
2755
|
width: "20",
|
|
2757
|
-
fill:
|
|
2758
|
-
}, null, 8,
|
|
2759
|
-
|
|
2756
|
+
fill: r.color
|
|
2757
|
+
}, null, 8, Ir),
|
|
2758
|
+
U(v, {
|
|
2760
2759
|
plot: { x: 10, y: 9 },
|
|
2761
2760
|
radius: 4,
|
|
2762
|
-
color:
|
|
2763
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2761
|
+
color: r.color,
|
|
2762
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
|
|
2764
2763
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2765
2764
|
strokeWidth: 0.5
|
|
2766
2765
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2767
|
-
])) : l.icons[
|
|
2768
|
-
l.icons[
|
|
2766
|
+
])) : l.icons[r.type] === "bar" ? (a(), i("svg", Nr, [
|
|
2767
|
+
l.icons[r.type] === "bar" && t.$slots.pattern ? (a(), i("rect", {
|
|
2769
2768
|
key: 0,
|
|
2770
2769
|
x: "0",
|
|
2771
2770
|
y: "0",
|
|
@@ -2773,9 +2772,9 @@ function za(t, n, o, g, l, e) {
|
|
|
2773
2772
|
height: "40",
|
|
2774
2773
|
width: "40",
|
|
2775
2774
|
stroke: "none",
|
|
2776
|
-
fill:
|
|
2777
|
-
}, null, 8,
|
|
2778
|
-
l.icons[
|
|
2775
|
+
fill: r.color
|
|
2776
|
+
}, null, 8, mr)) : d("", !0),
|
|
2777
|
+
l.icons[r.type] === "bar" ? (a(), i("rect", {
|
|
2779
2778
|
key: 1,
|
|
2780
2779
|
x: "0",
|
|
2781
2780
|
y: "0",
|
|
@@ -2783,27 +2782,27 @@ function za(t, n, o, g, l, e) {
|
|
|
2783
2782
|
height: "40",
|
|
2784
2783
|
width: "40",
|
|
2785
2784
|
stroke: "none",
|
|
2786
|
-
fill: t.$slots.pattern ? `url(#pattern_${l.uniqueId}_${
|
|
2787
|
-
}, null, 8,
|
|
2788
|
-
])) : (
|
|
2789
|
-
|
|
2785
|
+
fill: t.$slots.pattern ? `url(#pattern_${l.uniqueId}_${r.slotAbsoluteIndex})` : r.color
|
|
2786
|
+
}, null, 8, br)) : d("", !0)
|
|
2787
|
+
])) : (a(), i("svg", xr, [
|
|
2788
|
+
U(v, {
|
|
2790
2789
|
plot: { x: 6, y: 6 },
|
|
2791
2790
|
radius: 5,
|
|
2792
|
-
color:
|
|
2793
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2791
|
+
color: r.color,
|
|
2792
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle"
|
|
2794
2793
|
}, null, 8, ["color", "shape"])
|
|
2795
2794
|
])),
|
|
2796
2795
|
f("span", {
|
|
2797
|
-
style:
|
|
2798
|
-
}, T(
|
|
2799
|
-
], 10,
|
|
2800
|
-
], 4)) : (
|
|
2796
|
+
style: x(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2797
|
+
}, T(r.name), 5)
|
|
2798
|
+
], 10, gr))), 128))
|
|
2799
|
+
], 4)) : (a(), i("div", Fr, [
|
|
2801
2800
|
S(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2802
2801
|
], 512)),
|
|
2803
|
-
t.$slots.source ? (
|
|
2802
|
+
t.$slots.source ? (a(), i("div", _r, [
|
|
2804
2803
|
S(t.$slots, "source", {}, void 0, !0)
|
|
2805
2804
|
], 512)) : d("", !0),
|
|
2806
|
-
|
|
2805
|
+
U(O, {
|
|
2807
2806
|
show: l.mutableConfig.showTooltip && l.isTooltip,
|
|
2808
2807
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2809
2808
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
@@ -2820,14 +2819,14 @@ function za(t, n, o, g, l, e) {
|
|
|
2820
2819
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2821
2820
|
}, {
|
|
2822
2821
|
"tooltip-before": V(() => [
|
|
2823
|
-
S(t.$slots, "tooltip-before",
|
|
2822
|
+
S(t.$slots, "tooltip-before", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2824
2823
|
]),
|
|
2825
2824
|
"tooltip-after": V(() => [
|
|
2826
|
-
S(t.$slots, "tooltip-after",
|
|
2825
|
+
S(t.$slots, "tooltip-after", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2827
2826
|
]),
|
|
2828
2827
|
_: 3
|
|
2829
2828
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2830
|
-
e.isDataset ? (
|
|
2829
|
+
e.isDataset ? (a(), E(p, {
|
|
2831
2830
|
key: 11,
|
|
2832
2831
|
hideDetails: "",
|
|
2833
2832
|
config: {
|
|
@@ -2845,46 +2844,46 @@ function za(t, n, o, g, l, e) {
|
|
|
2845
2844
|
}, {
|
|
2846
2845
|
content: V(() => [
|
|
2847
2846
|
f("div", {
|
|
2848
|
-
style:
|
|
2847
|
+
style: x(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2849
2848
|
}, [
|
|
2850
|
-
f("div",
|
|
2851
|
-
|
|
2849
|
+
f("div", yr, [
|
|
2850
|
+
qe(f("input", {
|
|
2852
2851
|
type: "checkbox",
|
|
2853
|
-
"onUpdate:modelValue":
|
|
2852
|
+
"onUpdate:modelValue": s[4] || (s[4] = (r) => l.showSparklineTable = r)
|
|
2854
2853
|
}, null, 512), [
|
|
2855
|
-
[
|
|
2854
|
+
[Xe, l.showSparklineTable]
|
|
2856
2855
|
]),
|
|
2857
2856
|
f("div", {
|
|
2858
|
-
onClick:
|
|
2857
|
+
onClick: s[5] || (s[5] = (r) => l.showSparklineTable = !l.showSparklineTable),
|
|
2859
2858
|
style: { cursor: "pointer" }
|
|
2860
2859
|
}, [
|
|
2861
|
-
|
|
2860
|
+
U(F, {
|
|
2862
2861
|
name: "chartLine",
|
|
2863
2862
|
size: 20,
|
|
2864
2863
|
stroke: e.FINAL_CONFIG.chart.color
|
|
2865
2864
|
}, null, 8, ["stroke"])
|
|
2866
2865
|
])
|
|
2867
2866
|
]),
|
|
2868
|
-
l.showSparklineTable ? (
|
|
2867
|
+
l.showSparklineTable ? (a(), E(C, {
|
|
2869
2868
|
key: `sparkline_${l.segregateStep}`,
|
|
2870
2869
|
dataset: e.tableSparklineDataset,
|
|
2871
2870
|
config: e.tableSparklineConfig
|
|
2872
|
-
}, null, 8, ["dataset", "config"])) : (
|
|
2871
|
+
}, null, 8, ["dataset", "config"])) : (a(), E(G, {
|
|
2873
2872
|
key: `table_${l.tableStep}`,
|
|
2874
2873
|
colNames: e.dataTable.colNames,
|
|
2875
2874
|
head: e.dataTable.head,
|
|
2876
2875
|
body: e.dataTable.body,
|
|
2877
2876
|
config: e.dataTable.config,
|
|
2878
2877
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2879
|
-
onClose:
|
|
2878
|
+
onClose: s[6] || (s[6] = (r) => l.mutableConfig.showTable = !1)
|
|
2880
2879
|
}, {
|
|
2881
|
-
th: V(({ th:
|
|
2882
|
-
f("div", { innerHTML:
|
|
2880
|
+
th: V(({ th: r }) => [
|
|
2881
|
+
f("div", { innerHTML: r }, null, 8, Ar)
|
|
2883
2882
|
]),
|
|
2884
|
-
td: V(({ td:
|
|
2885
|
-
|
|
2883
|
+
td: V(({ td: r }) => [
|
|
2884
|
+
$(T(isNaN(Number(r)) ? r : e.dataLabel({
|
|
2886
2885
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2887
|
-
v:
|
|
2886
|
+
v: r,
|
|
2888
2887
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2889
2888
|
r: e.FINAL_CONFIG.table.rounding
|
|
2890
2889
|
})), 1)
|
|
@@ -2895,9 +2894,9 @@ function za(t, n, o, g, l, e) {
|
|
|
2895
2894
|
]),
|
|
2896
2895
|
_: 1
|
|
2897
2896
|
}, 8, ["config"])) : d("", !0)
|
|
2898
|
-
], 46,
|
|
2897
|
+
], 46, Ke);
|
|
2899
2898
|
}
|
|
2900
|
-
const
|
|
2899
|
+
const pr = /* @__PURE__ */ Ue(Je, [["render", Lr], ["__scopeId", "data-v-a2d596ca"]]);
|
|
2901
2900
|
export {
|
|
2902
|
-
|
|
2901
|
+
pr as default
|
|
2903
2902
|
};
|