@mozaic-ds/chart 0.1.0-beta.25 → 0.1.0-beta.27
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/mozaic-chart.js +805 -824
- package/dist/mozaic-chart.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/line/LineChart.vue +21 -21
- package/src/components/radar/RadarChart.vue +17 -31
- package/src/services/ChartsCommonLegend.ts +4 -4
- package/src/services/MixedBarLineFunctions.ts +1 -1
- package/src/services/PatternFunctions.ts +3 -3
package/dist/mozaic-chart.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
var La = Object.defineProperty;
|
|
2
2
|
var Ta = (i, t, e) => t in i ? La(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var k = (i, t, e) => (Ta(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { version as Oa, defineComponent as Ft, ref as G, shallowRef as go, onMounted as po, onBeforeUnmount as Ia, watch as xi, toRaw as Ji, h as mo, isProxy as bo, reactive as yo, computed as F, openBlock as lt, createElementBlock as
|
|
4
|
+
import { version as Oa, defineComponent as Ft, ref as G, shallowRef as go, onMounted as po, onBeforeUnmount as Ia, watch as xi, toRaw as Ji, h as mo, isProxy as bo, reactive as yo, computed as F, openBlock as lt, createElementBlock as ae, createElementVNode as st, createBlock as re, unref as $t, normalizeClass as le, normalizeStyle as Ut, createCommentVNode as ce, toDisplayString as Fa } from "vue";
|
|
5
5
|
/*!
|
|
6
6
|
* @kurkle/color v0.3.2
|
|
7
7
|
* https://github.com/kurkle/color#readme
|
|
8
8
|
* (c) 2023 Jukka Kurkela
|
|
9
9
|
* Released under the MIT License
|
|
10
10
|
*/
|
|
11
|
-
function
|
|
11
|
+
function Ue(i) {
|
|
12
12
|
return i + 0.5 | 0;
|
|
13
13
|
}
|
|
14
14
|
const At = (i, t, e) => Math.max(Math.min(i, e), t);
|
|
15
|
-
function
|
|
16
|
-
return At(
|
|
15
|
+
function Ae(i) {
|
|
16
|
+
return At(Ue(i * 2.55), 0, 255);
|
|
17
17
|
}
|
|
18
18
|
function Lt(i) {
|
|
19
|
-
return At(
|
|
19
|
+
return At(Ue(i * 255), 0, 255);
|
|
20
20
|
}
|
|
21
21
|
function vt(i) {
|
|
22
|
-
return At(
|
|
22
|
+
return At(Ue(i / 2.55) / 100, 0, 1);
|
|
23
23
|
}
|
|
24
24
|
function Wn(i) {
|
|
25
|
-
return At(
|
|
25
|
+
return At(Ue(i * 100), 0, 100);
|
|
26
26
|
}
|
|
27
27
|
const at = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, Qi = [..."0123456789ABCDEF"], Ra = (i) => Qi[i & 15], Ea = (i) => Qi[(i & 240) >> 4] + Qi[i & 15], Ke = (i) => (i & 240) >> 4 === (i & 15), Ba = (i) => Ke(i.r) && Ke(i.g) && Ke(i.b) && Ke(i.a);
|
|
28
28
|
function za(i) {
|
|
@@ -88,7 +88,7 @@ function Xa(i) {
|
|
|
88
88
|
let e = 255, n;
|
|
89
89
|
if (!t)
|
|
90
90
|
return;
|
|
91
|
-
t[5] !== n && (e = t[6] ?
|
|
91
|
+
t[5] !== n && (e = t[6] ? Ae(+t[5]) : Lt(+t[5]));
|
|
92
92
|
const s = _o(+t[2]), o = +t[3] / 100, a = +t[4] / 100;
|
|
93
93
|
return t[1] === "hwb" ? n = Ua(s, o, a) : t[1] === "hsv" ? n = Ya(s, o, a) : n = _n(s, o, a), {
|
|
94
94
|
r: n[0],
|
|
@@ -313,9 +313,9 @@ function Qa(i) {
|
|
|
313
313
|
if (t) {
|
|
314
314
|
if (t[7] !== n) {
|
|
315
315
|
const a = +t[7];
|
|
316
|
-
e = t[8] ?
|
|
316
|
+
e = t[8] ? Ae(a) : At(a * 255, 0, 255);
|
|
317
317
|
}
|
|
318
|
-
return n = +t[1], s = +t[3], o = +t[5], n = 255 & (t[2] ?
|
|
318
|
+
return n = +t[1], s = +t[3], o = +t[5], n = 255 & (t[2] ? Ae(n) : At(n, 0, 255)), s = 255 & (t[4] ? Ae(s) : At(s, 0, 255)), o = 255 & (t[6] ? Ae(o) : At(o, 0, 255)), {
|
|
319
319
|
r: n,
|
|
320
320
|
g: s,
|
|
321
321
|
b: o,
|
|
@@ -352,9 +352,9 @@ function Vn(i) {
|
|
|
352
352
|
function ir(i) {
|
|
353
353
|
return i.charAt(0) === "r" ? Qa(i) : Xa(i);
|
|
354
354
|
}
|
|
355
|
-
class
|
|
355
|
+
class We {
|
|
356
356
|
constructor(t) {
|
|
357
|
-
if (t instanceof
|
|
357
|
+
if (t instanceof We)
|
|
358
358
|
return t;
|
|
359
359
|
const e = typeof t;
|
|
360
360
|
let n;
|
|
@@ -392,7 +392,7 @@ class He {
|
|
|
392
392
|
return t && (this._rgb = er(this._rgb, t._rgb, e)), this;
|
|
393
393
|
}
|
|
394
394
|
clone() {
|
|
395
|
-
return new
|
|
395
|
+
return new We(this.rgb);
|
|
396
396
|
}
|
|
397
397
|
alpha(t) {
|
|
398
398
|
return this._rgb.a = Lt(t), this;
|
|
@@ -402,7 +402,7 @@ class He {
|
|
|
402
402
|
return e.a *= 1 - t, this;
|
|
403
403
|
}
|
|
404
404
|
greyscale() {
|
|
405
|
-
const t = this._rgb, e =
|
|
405
|
+
const t = this._rgb, e = Ue(t.r * 0.3 + t.g * 0.59 + t.b * 0.11);
|
|
406
406
|
return t.r = t.g = t.b = e, this;
|
|
407
407
|
}
|
|
408
408
|
opaquer(t) {
|
|
@@ -532,7 +532,7 @@ function bt(i, t, e) {
|
|
|
532
532
|
}
|
|
533
533
|
return i;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Ie(i, t) {
|
|
536
536
|
return bt(i, t, {
|
|
537
537
|
merger: ar
|
|
538
538
|
});
|
|
@@ -541,7 +541,7 @@ function ar(i, t, e) {
|
|
|
541
541
|
if (!wo(i))
|
|
542
542
|
return;
|
|
543
543
|
const n = t[i], s = e[i];
|
|
544
|
-
T(n) && T(s) ?
|
|
544
|
+
T(n) && T(s) ? Ie(n, s) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = vi(s));
|
|
545
545
|
}
|
|
546
546
|
const jn = {
|
|
547
547
|
// Chart.helpers.core resolveObjectKey should resolve empty key to root object
|
|
@@ -574,7 +574,7 @@ function Ot(i, t) {
|
|
|
574
574
|
function vn(i) {
|
|
575
575
|
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
576
576
|
}
|
|
577
|
-
const
|
|
577
|
+
const He = (i) => typeof i < "u", It = (i) => typeof i == "function", $n = (i, t) => {
|
|
578
578
|
if (i.size !== t.size)
|
|
579
579
|
return !1;
|
|
580
580
|
for (const e of i)
|
|
@@ -586,12 +586,12 @@ function cr(i) {
|
|
|
586
586
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
587
587
|
}
|
|
588
588
|
const j = Math.PI, W = 2 * j, hr = W + j, Si = Number.POSITIVE_INFINITY, dr = j / 180, Y = j / 2, Et = j / 4, Un = j * 2 / 3, tn = Math.log10, mt = Math.sign;
|
|
589
|
-
function
|
|
589
|
+
function Fe(i, t, e) {
|
|
590
590
|
return Math.abs(i - t) < e;
|
|
591
591
|
}
|
|
592
592
|
function Yn(i) {
|
|
593
593
|
const t = Math.round(i);
|
|
594
|
-
i =
|
|
594
|
+
i = Fe(i, t, i / 1e3) ? t : i;
|
|
595
595
|
const e = Math.pow(10, Math.floor(tn(i))), n = i / e;
|
|
596
596
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * e;
|
|
597
597
|
}
|
|
@@ -602,7 +602,7 @@ function ur(i) {
|
|
|
602
602
|
i % n === 0 && (t.push(n), t.push(i / n));
|
|
603
603
|
return e === (e | 0) && t.push(e), t.sort((s, o) => s - o).pop(), t;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Ne(i) {
|
|
606
606
|
return !isNaN(parseFloat(i)) && isFinite(i);
|
|
607
607
|
}
|
|
608
608
|
function fr(i, t) {
|
|
@@ -645,7 +645,7 @@ function pr(i, t) {
|
|
|
645
645
|
function ot(i) {
|
|
646
646
|
return (i % W + W) % W;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Ve(i, t, e, n) {
|
|
649
649
|
const s = ot(i), o = ot(t), a = ot(e), r = ot(o - s), l = ot(a - s), c = ot(s - o), h = ot(s - a);
|
|
650
650
|
return s === o || s === a || n && o === a || r > l && c < h;
|
|
651
651
|
}
|
|
@@ -781,7 +781,7 @@ function wr(i) {
|
|
|
781
781
|
const o = n.xmin !== t.min || n.xmax !== t.max || n.ymin !== e.min || n.ymax !== e.max;
|
|
782
782
|
return Object.assign(n, s), o;
|
|
783
783
|
}
|
|
784
|
-
const Qe = (i) => i === 0 || i === 1, qn = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * W / e)), Kn = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * W / e) + 1,
|
|
784
|
+
const Qe = (i) => i === 0 || i === 1, qn = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * W / e)), Kn = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * W / e) + 1, Re = {
|
|
785
785
|
linear: (i) => i,
|
|
786
786
|
easeInQuad: (i) => i * i,
|
|
787
787
|
easeOutQuad: (i) => -i * (i - 2),
|
|
@@ -819,11 +819,11 @@ const Qe = (i) => i === 0 || i === 1, qn = (i, t, e) => -(Math.pow(2, 10 * (i -=
|
|
|
819
819
|
let t = 1.70158;
|
|
820
820
|
return (i /= 0.5) < 1 ? 0.5 * (i * i * (((t *= 1.525) + 1) * i - t)) : 0.5 * ((i -= 2) * i * (((t *= 1.525) + 1) * i + t) + 2);
|
|
821
821
|
},
|
|
822
|
-
easeInBounce: (i) => 1 -
|
|
822
|
+
easeInBounce: (i) => 1 - Re.easeOutBounce(1 - i),
|
|
823
823
|
easeOutBounce(i) {
|
|
824
824
|
return i < 1 / 2.75 ? 7.5625 * i * i : i < 2 / 2.75 ? 7.5625 * (i -= 1.5 / 2.75) * i + 0.75 : i < 2.5 / 2.75 ? 7.5625 * (i -= 2.25 / 2.75) * i + 0.9375 : 7.5625 * (i -= 2.625 / 2.75) * i + 0.984375;
|
|
825
825
|
},
|
|
826
|
-
easeInOutBounce: (i) => i < 0.5 ?
|
|
826
|
+
easeInOutBounce: (i) => i < 0.5 ? Re.easeInBounce(i * 2) * 0.5 : Re.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
|
|
827
827
|
};
|
|
828
828
|
function Mn(i) {
|
|
829
829
|
if (i && typeof i == "object") {
|
|
@@ -833,10 +833,10 @@ function Mn(i) {
|
|
|
833
833
|
return !1;
|
|
834
834
|
}
|
|
835
835
|
function Zn(i) {
|
|
836
|
-
return Mn(i) ? i : new
|
|
836
|
+
return Mn(i) ? i : new We(i);
|
|
837
837
|
}
|
|
838
838
|
function Wi(i) {
|
|
839
|
-
return Mn(i) ? i : new
|
|
839
|
+
return Mn(i) ? i : new We(i).saturate(0.5).darken(0.1).hexString();
|
|
840
840
|
}
|
|
841
841
|
const kr = [
|
|
842
842
|
"x",
|
|
@@ -1037,7 +1037,7 @@ function Lr(i) {
|
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
const Yt = /* @__PURE__ */ Object.create(null), nn = /* @__PURE__ */ Object.create(null);
|
|
1040
|
-
function
|
|
1040
|
+
function Ee(i, t) {
|
|
1041
1041
|
if (!t)
|
|
1042
1042
|
return i;
|
|
1043
1043
|
const e = t.split(".");
|
|
@@ -1048,7 +1048,7 @@ function Be(i, t) {
|
|
|
1048
1048
|
return i;
|
|
1049
1049
|
}
|
|
1050
1050
|
function Hi(i, t, e) {
|
|
1051
|
-
return typeof t == "string" ? bt(
|
|
1051
|
+
return typeof t == "string" ? bt(Ee(i, t), e) : bt(Ee(i, ""), t);
|
|
1052
1052
|
}
|
|
1053
1053
|
class Tr {
|
|
1054
1054
|
constructor(t, e) {
|
|
@@ -1074,7 +1074,7 @@ class Tr {
|
|
|
1074
1074
|
return Hi(this, t, e);
|
|
1075
1075
|
}
|
|
1076
1076
|
get(t) {
|
|
1077
|
-
return
|
|
1077
|
+
return Ee(this, t);
|
|
1078
1078
|
}
|
|
1079
1079
|
describe(t, e) {
|
|
1080
1080
|
return Hi(nn, t, e);
|
|
@@ -1083,7 +1083,7 @@ class Tr {
|
|
|
1083
1083
|
return Hi(Yt, t, e);
|
|
1084
1084
|
}
|
|
1085
1085
|
route(t, e, n, s) {
|
|
1086
|
-
const o =
|
|
1086
|
+
const o = Ee(this, t), a = Ee(this, n), r = "_" + e;
|
|
1087
1087
|
Object.defineProperties(o, {
|
|
1088
1088
|
[r]: {
|
|
1089
1089
|
value: o[e],
|
|
@@ -1161,10 +1161,10 @@ function sn(i, t, e, n) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
function Lo(i, t, e, n, s) {
|
|
1163
1163
|
let o, a, r, l, c, h, d, u;
|
|
1164
|
-
const f = t.pointStyle,
|
|
1165
|
-
let
|
|
1164
|
+
const f = t.pointStyle, m = t.rotation, g = t.radius;
|
|
1165
|
+
let b = (m || 0) * dr;
|
|
1166
1166
|
if (f && typeof f == "object" && (o = f.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) {
|
|
1167
|
-
i.save(), i.translate(e, n), i.rotate(
|
|
1167
|
+
i.save(), i.translate(e, n), i.rotate(b), i.drawImage(f, -f.width / 2, -f.height / 2, f.width, f.height), i.restore();
|
|
1168
1168
|
return;
|
|
1169
1169
|
}
|
|
1170
1170
|
if (!(isNaN(g) || g <= 0)) {
|
|
@@ -1173,33 +1173,33 @@ function Lo(i, t, e, n, s) {
|
|
|
1173
1173
|
s ? i.ellipse(e, n, s / 2, g, 0, 0, W) : i.arc(e, n, g, 0, W), i.closePath();
|
|
1174
1174
|
break;
|
|
1175
1175
|
case "triangle":
|
|
1176
|
-
h = s ? s / 2 : g, i.moveTo(e + Math.sin(
|
|
1176
|
+
h = s ? s / 2 : g, i.moveTo(e + Math.sin(b) * h, n - Math.cos(b) * g), b += Un, i.lineTo(e + Math.sin(b) * h, n - Math.cos(b) * g), b += Un, i.lineTo(e + Math.sin(b) * h, n - Math.cos(b) * g), i.closePath();
|
|
1177
1177
|
break;
|
|
1178
1178
|
case "rectRounded":
|
|
1179
|
-
c = g * 0.516, l = g - c, a = Math.cos(
|
|
1179
|
+
c = g * 0.516, l = g - c, a = Math.cos(b + Et) * l, d = Math.cos(b + Et) * (s ? s / 2 - c : l), r = Math.sin(b + Et) * l, u = Math.sin(b + Et) * (s ? s / 2 - c : l), i.arc(e - d, n - r, c, b - j, b - Y), i.arc(e + u, n - a, c, b - Y, b), i.arc(e + d, n + r, c, b, b + Y), i.arc(e - u, n + a, c, b + Y, b + j), i.closePath();
|
|
1180
1180
|
break;
|
|
1181
1181
|
case "rect":
|
|
1182
|
-
if (!
|
|
1182
|
+
if (!m) {
|
|
1183
1183
|
l = Math.SQRT1_2 * g, h = s ? s / 2 : l, i.rect(e - h, n - l, 2 * h, 2 * l);
|
|
1184
1184
|
break;
|
|
1185
1185
|
}
|
|
1186
|
-
|
|
1186
|
+
b += Et;
|
|
1187
1187
|
case "rectRot":
|
|
1188
|
-
d = Math.cos(
|
|
1188
|
+
d = Math.cos(b) * (s ? s / 2 : g), a = Math.cos(b) * g, r = Math.sin(b) * g, u = Math.sin(b) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + u, n - a), i.lineTo(e + d, n + r), i.lineTo(e - u, n + a), i.closePath();
|
|
1189
1189
|
break;
|
|
1190
1190
|
case "crossRot":
|
|
1191
|
-
|
|
1191
|
+
b += Et;
|
|
1192
1192
|
case "cross":
|
|
1193
|
-
d = Math.cos(
|
|
1193
|
+
d = Math.cos(b) * (s ? s / 2 : g), a = Math.cos(b) * g, r = Math.sin(b) * g, u = Math.sin(b) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a);
|
|
1194
1194
|
break;
|
|
1195
1195
|
case "star":
|
|
1196
|
-
d = Math.cos(
|
|
1196
|
+
d = Math.cos(b) * (s ? s / 2 : g), a = Math.cos(b) * g, r = Math.sin(b) * g, u = Math.sin(b) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a), b += Et, d = Math.cos(b) * (s ? s / 2 : g), a = Math.cos(b) * g, r = Math.sin(b) * g, u = Math.sin(b) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a);
|
|
1197
1197
|
break;
|
|
1198
1198
|
case "line":
|
|
1199
|
-
a = s ? s / 2 : Math.cos(
|
|
1199
|
+
a = s ? s / 2 : Math.cos(b) * g, r = Math.sin(b) * g, i.moveTo(e - a, n - r), i.lineTo(e + a, n + r);
|
|
1200
1200
|
break;
|
|
1201
1201
|
case "dash":
|
|
1202
|
-
i.moveTo(e, n), i.lineTo(e + Math.cos(
|
|
1202
|
+
i.moveTo(e, n), i.lineTo(e + Math.cos(b) * (s ? s / 2 : g), n + Math.sin(b) * g);
|
|
1203
1203
|
break;
|
|
1204
1204
|
case !1:
|
|
1205
1205
|
i.closePath();
|
|
@@ -1254,7 +1254,7 @@ function Xt(i, t, e, n, s, o = {}) {
|
|
|
1254
1254
|
c = a[l], o.backdrop && zr(i, o.backdrop), r && (o.strokeColor && (i.strokeStyle = o.strokeColor), O(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, n, o.maxWidth)), i.fillText(c, e, n, o.maxWidth), Br(i, e, n, c, o), n += Number(s.lineHeight);
|
|
1255
1255
|
i.restore();
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function je(i, t) {
|
|
1258
1258
|
const { x: e, y: n, w: s, h: o, radius: a } = t;
|
|
1259
1259
|
i.arc(e + a.topLeft, n + a.topLeft, a.topLeft, 1.5 * j, j, !0), i.lineTo(e, n + o - a.bottomLeft), i.arc(e + a.bottomLeft, n + o - a.bottomLeft, a.bottomLeft, j, Y, !0), i.lineTo(e + s - a.bottomRight, n + o), i.arc(e + s - a.bottomRight, n + o - a.bottomRight, a.bottomRight, Y, 0, !0), i.lineTo(e + s, n + a.topRight), i.arc(e + s - a.topRight, n + a.topRight, a.topRight, 0, -Y, !0), i.lineTo(e + a.topLeft, n);
|
|
1260
1260
|
}
|
|
@@ -1598,7 +1598,7 @@ function il(i, t, e) {
|
|
|
1598
1598
|
let s, o, a, r, l, c = ne(i, 0);
|
|
1599
1599
|
for (let h = 0; h < n - 1; ++h)
|
|
1600
1600
|
if (l = c, c = ne(i, h + 1), !(!l || !c)) {
|
|
1601
|
-
if (
|
|
1601
|
+
if (Fe(t[h], 0, tl)) {
|
|
1602
1602
|
e[h] = e[h + 1] = 0;
|
|
1603
1603
|
continue;
|
|
1604
1604
|
}
|
|
@@ -1697,10 +1697,10 @@ function Wt(i, t) {
|
|
|
1697
1697
|
if ("native" in i)
|
|
1698
1698
|
return i;
|
|
1699
1699
|
const { canvas: e, currentDevicePixelRatio: n } = t, s = Ti(e), o = s.boxSizing === "border-box", a = jt(s, "padding"), r = jt(s, "border", "width"), { x: l, y: c, box: h } = hl(i, e), d = a.left + (h && r.left), u = a.top + (h && r.top);
|
|
1700
|
-
let { width: f, height:
|
|
1701
|
-
return o && (f -= a.width + r.width,
|
|
1700
|
+
let { width: f, height: m } = t;
|
|
1701
|
+
return o && (f -= a.width + r.width, m -= a.height + r.height), {
|
|
1702
1702
|
x: Math.round((l - d) / f * e.width / n),
|
|
1703
|
-
y: Math.round((c - u) /
|
|
1703
|
+
y: Math.round((c - u) / m * e.height / n)
|
|
1704
1704
|
};
|
|
1705
1705
|
}
|
|
1706
1706
|
function dl(i, t, e) {
|
|
@@ -1830,7 +1830,7 @@ function Wo(i, t) {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
function Ho(i) {
|
|
1832
1832
|
return i === "angle" ? {
|
|
1833
|
-
between:
|
|
1833
|
+
between: Ve,
|
|
1834
1834
|
compare: pr,
|
|
1835
1835
|
normalize: ot
|
|
1836
1836
|
} : {
|
|
@@ -1867,24 +1867,24 @@ function No(i, t, e) {
|
|
|
1867
1867
|
return [
|
|
1868
1868
|
i
|
|
1869
1869
|
];
|
|
1870
|
-
const { property: n, start: s, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = Ho(n), { start: h, end: d, loop: u, style: f } = yl(i, t, e),
|
|
1871
|
-
let g = !1,
|
|
1872
|
-
const
|
|
1873
|
-
for (let
|
|
1874
|
-
y = t[
|
|
1875
|
-
start:
|
|
1876
|
-
end:
|
|
1870
|
+
const { property: n, start: s, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = Ho(n), { start: h, end: d, loop: u, style: f } = yl(i, t, e), m = [];
|
|
1871
|
+
let g = !1, b = null, p, y, x;
|
|
1872
|
+
const _ = () => l(s, x, p) && r(s, x) !== 0, v = () => r(o, p) === 0 || l(o, x, p), w = () => g || _(), M = () => !g || v();
|
|
1873
|
+
for (let S = h, A = h; S <= d; ++S)
|
|
1874
|
+
y = t[S % a], !y.skip && (p = c(y[n]), p !== x && (g = l(p, s, o), b === null && w() && (b = r(p, s) === 0 ? S : A), b !== null && M() && (m.push(ss({
|
|
1875
|
+
start: b,
|
|
1876
|
+
end: S,
|
|
1877
1877
|
loop: u,
|
|
1878
1878
|
count: a,
|
|
1879
1879
|
style: f
|
|
1880
|
-
})),
|
|
1881
|
-
return
|
|
1882
|
-
start:
|
|
1880
|
+
})), b = null), A = S, x = p));
|
|
1881
|
+
return b !== null && m.push(ss({
|
|
1882
|
+
start: b,
|
|
1883
1883
|
end: d,
|
|
1884
1884
|
loop: u,
|
|
1885
1885
|
count: a,
|
|
1886
1886
|
style: f
|
|
1887
|
-
})),
|
|
1887
|
+
})), m;
|
|
1888
1888
|
}
|
|
1889
1889
|
function Vo(i, t) {
|
|
1890
1890
|
const e = [], n = i.segments;
|
|
@@ -1947,36 +1947,36 @@ function os(i, t, e, n) {
|
|
|
1947
1947
|
function Sl(i, t, e, n) {
|
|
1948
1948
|
const s = i._chart.getContext(), o = as(i.options), { _datasetIndex: a, options: { spanGaps: r } } = i, l = e.length, c = [];
|
|
1949
1949
|
let h = o, d = t[0].start, u = d;
|
|
1950
|
-
function f(
|
|
1950
|
+
function f(m, g, b, p) {
|
|
1951
1951
|
const y = r ? -1 : 1;
|
|
1952
|
-
if (
|
|
1953
|
-
for (
|
|
1954
|
-
|
|
1952
|
+
if (m !== g) {
|
|
1953
|
+
for (m += l; e[m % l].skip; )
|
|
1954
|
+
m -= y;
|
|
1955
1955
|
for (; e[g % l].skip; )
|
|
1956
1956
|
g += y;
|
|
1957
|
-
|
|
1958
|
-
start:
|
|
1957
|
+
m % l !== g % l && (c.push({
|
|
1958
|
+
start: m % l,
|
|
1959
1959
|
end: g % l,
|
|
1960
|
-
loop:
|
|
1961
|
-
style:
|
|
1962
|
-
}), h =
|
|
1960
|
+
loop: b,
|
|
1961
|
+
style: p
|
|
1962
|
+
}), h = p, d = g % l);
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
|
-
for (const
|
|
1966
|
-
d = r ? d :
|
|
1967
|
-
let g = e[d % l],
|
|
1968
|
-
for (u = d + 1; u <=
|
|
1969
|
-
const
|
|
1970
|
-
|
|
1965
|
+
for (const m of t) {
|
|
1966
|
+
d = r ? d : m.start;
|
|
1967
|
+
let g = e[d % l], b;
|
|
1968
|
+
for (u = d + 1; u <= m.end; u++) {
|
|
1969
|
+
const p = e[u % l];
|
|
1970
|
+
b = as(n.setContext(Rt(s, {
|
|
1971
1971
|
type: "segment",
|
|
1972
1972
|
p0: g,
|
|
1973
|
-
p1:
|
|
1973
|
+
p1: p,
|
|
1974
1974
|
p0DataIndex: (u - 1) % l,
|
|
1975
1975
|
p1DataIndex: u % l,
|
|
1976
1976
|
datasetIndex: a
|
|
1977
|
-
}))), wl(
|
|
1977
|
+
}))), wl(b, h) && f(d, u - 1, m.loop, h), g = p, h = b;
|
|
1978
1978
|
}
|
|
1979
|
-
d < u - 1 && f(d, u - 1,
|
|
1979
|
+
d < u - 1 && f(d, u - 1, m.loop, h);
|
|
1980
1980
|
}
|
|
1981
1981
|
return c;
|
|
1982
1982
|
}
|
|
@@ -2108,7 +2108,7 @@ class Cl {
|
|
|
2108
2108
|
o,
|
|
2109
2109
|
s
|
|
2110
2110
|
]);
|
|
2111
|
-
this._active = !0, this._fn = t.fn || Ml[t.type || typeof a], this._easing =
|
|
2111
|
+
this._active = !0, this._fn = t.fn || Ml[t.type || typeof a], this._easing = Re[t.easing] || Re.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = n, this._from = a, this._to = s, this._promises = void 0;
|
|
2112
2112
|
}
|
|
2113
2113
|
active() {
|
|
2114
2114
|
return this._active;
|
|
@@ -2341,10 +2341,10 @@ function us(i, t) {
|
|
|
2341
2341
|
const { chart: e, _cachedMeta: n } = i, s = e._stacks || (e._stacks = {}), { iScale: o, vScale: a, index: r } = n, l = o.axis, c = a.axis, h = Ol(o, a, n), d = t.length;
|
|
2342
2342
|
let u;
|
|
2343
2343
|
for (let f = 0; f < d; ++f) {
|
|
2344
|
-
const
|
|
2345
|
-
u =
|
|
2344
|
+
const m = t[f], { [l]: g, [c]: b } = m, p = m._stacks || (m._stacks = {});
|
|
2345
|
+
u = p[c] = Fl(s, h, g), u[r] = b, u._top = ds(u, a, !0, n.type), u._bottom = ds(u, a, !1, n.type);
|
|
2346
2346
|
const y = u._visualValues || (u._visualValues = {});
|
|
2347
|
-
y[r] =
|
|
2347
|
+
y[r] = b;
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
2350
|
function Ni(i, t) {
|
|
@@ -2373,7 +2373,7 @@ function El(i, t, e) {
|
|
|
2373
2373
|
type: "data"
|
|
2374
2374
|
});
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function Se(i, t) {
|
|
2377
2377
|
const e = i.controller.index, n = i.vScale && i.vScale.axis;
|
|
2378
2378
|
if (n) {
|
|
2379
2379
|
t = t || i._parsed;
|
|
@@ -2398,10 +2398,10 @@ class Mt {
|
|
|
2398
2398
|
this.configure(), this.linkScales(), t._stacked = hs(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options");
|
|
2399
2399
|
}
|
|
2400
2400
|
updateIndex(t) {
|
|
2401
|
-
this.index !== t &&
|
|
2401
|
+
this.index !== t && Se(this._cachedMeta), this.index = t;
|
|
2402
2402
|
}
|
|
2403
2403
|
linkScales() {
|
|
2404
|
-
const t = this.chart, e = this._cachedMeta, n = this.getDataset(), s = (d, u, f,
|
|
2404
|
+
const t = this.chart, e = this._cachedMeta, n = this.getDataset(), s = (d, u, f, m) => d === "x" ? u : d === "r" ? m : f, o = e.xAxisID = L(n.xAxisID, Ni(t, "x")), a = e.yAxisID = L(n.yAxisID, Ni(t, "y")), r = e.rAxisID = L(n.rAxisID, Ni(t, "r")), l = e.indexAxis, c = e.iAxisID = s(l, o, a, r), h = e.vAxisID = s(l, a, o, r);
|
|
2405
2405
|
e.xScale = this.getScaleForId(o), e.yScale = this.getScaleForId(a), e.rScale = this.getScaleForId(r), e.iScale = this.getScaleForId(c), e.vScale = this.getScaleForId(h);
|
|
2406
2406
|
}
|
|
2407
2407
|
getDataset() {
|
|
@@ -2422,7 +2422,7 @@ class Mt {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
_destroy() {
|
|
2424
2424
|
const t = this._cachedMeta;
|
|
2425
|
-
this._data && Gn(this._data, this), t._stacked &&
|
|
2425
|
+
this._data && Gn(this._data, this), t._stacked && Se(t);
|
|
2426
2426
|
}
|
|
2427
2427
|
_dataCheck() {
|
|
2428
2428
|
const t = this.getDataset(), e = t.data || (t.data = []), n = this._data;
|
|
@@ -2432,7 +2432,7 @@ class Mt {
|
|
|
2432
2432
|
if (n) {
|
|
2433
2433
|
Gn(n, this);
|
|
2434
2434
|
const s = this._cachedMeta;
|
|
2435
|
-
|
|
2435
|
+
Se(s), s._parsed = [];
|
|
2436
2436
|
}
|
|
2437
2437
|
e && Object.isExtensible(e) && xr(e, this), this._syncList = [], this._data = e;
|
|
2438
2438
|
}
|
|
@@ -2446,7 +2446,7 @@ class Mt {
|
|
|
2446
2446
|
let s = !1;
|
|
2447
2447
|
this._dataCheck();
|
|
2448
2448
|
const o = e._stacked;
|
|
2449
|
-
e._stacked = hs(e.vScale, e), e.stack !== n.stack && (s = !0,
|
|
2449
|
+
e._stacked = hs(e.vScale, e), e.stack !== n.stack && (s = !0, Se(e), e.stack = n.stack), this._resyncElements(t), (s || o !== e._stacked) && us(this, e._parsed);
|
|
2450
2450
|
}
|
|
2451
2451
|
configure() {
|
|
2452
2452
|
const t = this.chart.config, e = t.datasetScopeKeys(this._type), n = t.getOptionScopes(this.getDataset(), e, !0);
|
|
@@ -2468,11 +2468,11 @@ class Mt {
|
|
|
2468
2468
|
}
|
|
2469
2469
|
parsePrimitiveData(t, e, n, s) {
|
|
2470
2470
|
const { iScale: o, vScale: a } = t, r = o.axis, l = a.axis, c = o.getLabels(), h = o === a, d = new Array(s);
|
|
2471
|
-
let u, f,
|
|
2471
|
+
let u, f, m;
|
|
2472
2472
|
for (u = 0, f = s; u < f; ++u)
|
|
2473
|
-
|
|
2474
|
-
[r]: h || o.parse(c[
|
|
2475
|
-
[l]: a.parse(e[
|
|
2473
|
+
m = u + n, d[u] = {
|
|
2474
|
+
[r]: h || o.parse(c[m], m),
|
|
2475
|
+
[l]: a.parse(e[m], m)
|
|
2476
2476
|
};
|
|
2477
2477
|
return d;
|
|
2478
2478
|
}
|
|
@@ -2523,16 +2523,16 @@ class Mt {
|
|
|
2523
2523
|
max: Number.NEGATIVE_INFINITY
|
|
2524
2524
|
}, { min: h, max: d } = Il(r);
|
|
2525
2525
|
let u, f;
|
|
2526
|
-
function
|
|
2526
|
+
function m() {
|
|
2527
2527
|
f = s[u];
|
|
2528
2528
|
const g = f[r.axis];
|
|
2529
2529
|
return !q(f[t.axis]) || h > g || d < g;
|
|
2530
2530
|
}
|
|
2531
|
-
for (u = 0; u < a && !(!
|
|
2531
|
+
for (u = 0; u < a && !(!m() && (this.updateRangeFromParsed(c, t, f, l), o)); ++u)
|
|
2532
2532
|
;
|
|
2533
2533
|
if (o) {
|
|
2534
2534
|
for (u = a - 1; u >= 0; --u)
|
|
2535
|
-
if (!
|
|
2535
|
+
if (!m()) {
|
|
2536
2536
|
this.updateRangeFromParsed(c, t, f, l);
|
|
2537
2537
|
break;
|
|
2538
2538
|
}
|
|
@@ -2593,7 +2593,7 @@ class Mt {
|
|
|
2593
2593
|
return this._resolveElementOptions(this.dataElementType.id, e, t);
|
|
2594
2594
|
}
|
|
2595
2595
|
_resolveElementOptions(t, e = "default", n) {
|
|
2596
|
-
const s = e === "active", o = this._cachedDataOpts, a = t + "-" + e, r = o[a], l = this.enableOptionSharing &&
|
|
2596
|
+
const s = e === "active", o = this._cachedDataOpts, a = t + "-" + e, r = o[a], l = this.enableOptionSharing && He(n);
|
|
2597
2597
|
if (r)
|
|
2598
2598
|
return fs(r, l);
|
|
2599
2599
|
const c = this.chart.config, h = c.datasetElementScopeKeys(this._type, t), d = s ? [
|
|
@@ -2604,7 +2604,7 @@ class Mt {
|
|
|
2604
2604
|
] : [
|
|
2605
2605
|
t,
|
|
2606
2606
|
""
|
|
2607
|
-
], u = c.getOptionScopes(this.getDataset(), h), f = Object.keys($.elements[t]),
|
|
2607
|
+
], u = c.getOptionScopes(this.getDataset(), h), f = Object.keys($.elements[t]), m = () => this.getContext(n, s, e), g = c.resolveNamedOptions(u, f, m, d);
|
|
2608
2608
|
return g.$shared && (g.$shared = l, o[a] = Object.freeze(fs(g, l))), g;
|
|
2609
2609
|
}
|
|
2610
2610
|
_resolveAnimations(t, e, n) {
|
|
@@ -2685,7 +2685,7 @@ class Mt {
|
|
|
2685
2685
|
const n = this._cachedMeta;
|
|
2686
2686
|
if (this._parsing) {
|
|
2687
2687
|
const s = n._parsed.splice(t, e);
|
|
2688
|
-
n._stacked &&
|
|
2688
|
+
n._stacked && Se(n, s);
|
|
2689
2689
|
}
|
|
2690
2690
|
n.data.splice(t, e);
|
|
2691
2691
|
}
|
|
@@ -2759,7 +2759,7 @@ function Wl(i) {
|
|
|
2759
2759
|
const t = i.iScale, e = zl(t, i.type);
|
|
2760
2760
|
let n = t._length, s, o, a, r;
|
|
2761
2761
|
const l = () => {
|
|
2762
|
-
a === 32767 || a === -32768 || (
|
|
2762
|
+
a === 32767 || a === -32768 || (He(r) && (n = Math.min(n, Math.abs(a - r) || n)), r = a);
|
|
2763
2763
|
};
|
|
2764
2764
|
for (s = 0, o = e.length; s < o; ++s)
|
|
2765
2765
|
a = t.getPixelForValue(e[s]), l();
|
|
@@ -2866,9 +2866,9 @@ class fi extends Mt {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
parseObjectData(t, e, n, s) {
|
|
2868
2868
|
const { iScale: o, vScale: a } = t, { xAxisKey: r = "x", yAxisKey: l = "y" } = this._parsing, c = o.axis === "x" ? r : l, h = a.axis === "x" ? r : l, d = [];
|
|
2869
|
-
let u, f,
|
|
2869
|
+
let u, f, m, g;
|
|
2870
2870
|
for (u = n, f = n + s; u < f; ++u)
|
|
2871
|
-
g = e[u],
|
|
2871
|
+
g = e[u], m = {}, m[o.axis] = o.parse(Ot(g, c), u), d.push(Uo(Ot(g, h), m, a, u));
|
|
2872
2872
|
return d;
|
|
2873
2873
|
}
|
|
2874
2874
|
updateRangeFromParsed(t, e, n, s) {
|
|
@@ -2898,21 +2898,21 @@ class fi extends Mt {
|
|
|
2898
2898
|
updateElements(t, e, n, s) {
|
|
2899
2899
|
const o = s === "reset", { index: a, _cachedMeta: { vScale: r } } = this, l = r.getBasePixel(), c = r.isHorizontal(), h = this._getRuler(), { sharedOptions: d, includeOptions: u } = this._getSharedOptions(e, s);
|
|
2900
2900
|
for (let f = e; f < e + n; f++) {
|
|
2901
|
-
const
|
|
2901
|
+
const m = this.getParsed(f), g = o || O(m[r.axis]) ? {
|
|
2902
2902
|
base: l,
|
|
2903
2903
|
head: l
|
|
2904
|
-
} : this._calculateBarValuePixels(f),
|
|
2904
|
+
} : this._calculateBarValuePixels(f), b = this._calculateBarIndexPixels(f, h), p = (m._stacks || {})[r.axis], y = {
|
|
2905
2905
|
horizontal: c,
|
|
2906
2906
|
base: g.base,
|
|
2907
|
-
enableBorderRadius: !
|
|
2908
|
-
x: c ? g.head :
|
|
2909
|
-
y: c ?
|
|
2910
|
-
height: c ?
|
|
2911
|
-
width: c ? Math.abs(g.size) :
|
|
2907
|
+
enableBorderRadius: !p || ji(m._custom) || a === p._top || a === p._bottom,
|
|
2908
|
+
x: c ? g.head : b.center,
|
|
2909
|
+
y: c ? b.center : g.head,
|
|
2910
|
+
height: c ? b.size : Math.abs(g.size),
|
|
2911
|
+
width: c ? Math.abs(g.size) : b.size
|
|
2912
2912
|
};
|
|
2913
2913
|
u && (y.options = d || this.resolveDataElementOptions(f, t[f].active ? "active" : s));
|
|
2914
2914
|
const x = y.options || t[f].options;
|
|
2915
|
-
Ul(y, x,
|
|
2915
|
+
Ul(y, x, p, a), Xl(y, x, h.ratio), this.updateElement(t[f], f, y, s);
|
|
2916
2916
|
}
|
|
2917
2917
|
}
|
|
2918
2918
|
_getStacks(t, e) {
|
|
@@ -2952,24 +2952,24 @@ class fi extends Mt {
|
|
|
2952
2952
|
}
|
|
2953
2953
|
_calculateBarValuePixels(t) {
|
|
2954
2954
|
const { _cachedMeta: { vScale: e, _stacked: n, index: s }, options: { base: o, minBarLength: a } } = this, r = o || 0, l = this.getParsed(t), c = l._custom, h = ji(c);
|
|
2955
|
-
let d = l[e.axis], u = 0, f = n ? this.applyStack(e, l, n) : d,
|
|
2955
|
+
let d = l[e.axis], u = 0, f = n ? this.applyStack(e, l, n) : d, m, g;
|
|
2956
2956
|
f !== d && (u = f - d, f = d), h && (d = c.barStart, f = c.barEnd - c.barStart, d !== 0 && mt(d) !== mt(c.barEnd) && (u = 0), u += d);
|
|
2957
|
-
const
|
|
2958
|
-
let
|
|
2959
|
-
if (this.chart.getDataVisibility(t) ?
|
|
2960
|
-
g = jl(g, e, r) * a, d === r && (
|
|
2961
|
-
const y = e.getPixelForDecimal(0), x = e.getPixelForDecimal(1),
|
|
2962
|
-
|
|
2963
|
-
}
|
|
2964
|
-
if (
|
|
2957
|
+
const b = !O(o) && !h ? o : u;
|
|
2958
|
+
let p = e.getPixelForValue(b);
|
|
2959
|
+
if (this.chart.getDataVisibility(t) ? m = e.getPixelForValue(u + f) : m = p, g = m - p, Math.abs(g) < a) {
|
|
2960
|
+
g = jl(g, e, r) * a, d === r && (p -= g / 2);
|
|
2961
|
+
const y = e.getPixelForDecimal(0), x = e.getPixelForDecimal(1), _ = Math.min(y, x), v = Math.max(y, x);
|
|
2962
|
+
p = Math.max(Math.min(p, v), _), m = p + g, n && !h && (l._stacks[e.axis]._visualValues[s] = e.getValueForPixel(m) - e.getValueForPixel(p));
|
|
2963
|
+
}
|
|
2964
|
+
if (p === e.getPixelForValue(r)) {
|
|
2965
2965
|
const y = mt(g) * e.getLineWidthForValue(r) / 2;
|
|
2966
|
-
|
|
2966
|
+
p += y, g -= y;
|
|
2967
2967
|
}
|
|
2968
2968
|
return {
|
|
2969
2969
|
size: g,
|
|
2970
|
-
base:
|
|
2971
|
-
head:
|
|
2972
|
-
center:
|
|
2970
|
+
base: p,
|
|
2971
|
+
head: m,
|
|
2972
|
+
center: m + g / 2
|
|
2973
2973
|
};
|
|
2974
2974
|
}
|
|
2975
2975
|
_calculateBarIndexPixels(t, e) {
|
|
@@ -3074,8 +3074,8 @@ class gi extends Mt {
|
|
|
3074
3074
|
updateElements(t, e, n, s) {
|
|
3075
3075
|
const o = s === "reset", { iScale: a, vScale: r } = this._cachedMeta, { sharedOptions: l, includeOptions: c } = this._getSharedOptions(e, s), h = a.axis, d = r.axis;
|
|
3076
3076
|
for (let u = e; u < e + n; u++) {
|
|
3077
|
-
const f = t[u],
|
|
3078
|
-
g.skip = isNaN(
|
|
3077
|
+
const f = t[u], m = !o && this.getParsed(u), g = {}, b = g[h] = o ? a.getPixelForDecimal(0.5) : a.getPixelForValue(m[h]), p = g[d] = o ? r.getBasePixel() : r.getPixelForValue(m[d]);
|
|
3078
|
+
g.skip = isNaN(b) || isNaN(p), c && (g.options = l || this.resolveDataElementOptions(u, f.active ? "active" : s), o && (g.options.radius = 0)), this.updateElement(f, u, g, s);
|
|
3079
3079
|
}
|
|
3080
3080
|
}
|
|
3081
3081
|
resolveDataElementOptions(t, e) {
|
|
@@ -3115,8 +3115,8 @@ k(gi, "id", "bubble"), k(gi, "defaults", {
|
|
|
3115
3115
|
function Gl(i, t, e) {
|
|
3116
3116
|
let n = 1, s = 1, o = 0, a = 0;
|
|
3117
3117
|
if (t < W) {
|
|
3118
|
-
const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (x,
|
|
3119
|
-
n = (g -
|
|
3118
|
+
const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (x, _, v) => Ve(x, r, l, !0) ? 1 : Math.max(_, _ * e, v, v * e), m = (x, _, v) => Ve(x, r, l, !0) ? -1 : Math.min(_, _ * e, v, v * e), g = f(0, c, d), b = f(Y, h, u), p = m(j, c, d), y = m(j + Y, h, u);
|
|
3119
|
+
n = (g - p) / 2, s = (b - y) / 2, o = -(g + p) / 2, a = -(b + y) / 2;
|
|
3120
3120
|
}
|
|
3121
3121
|
return {
|
|
3122
3122
|
ratioX: n,
|
|
@@ -3125,7 +3125,7 @@ function Gl(i, t, e) {
|
|
|
3125
3125
|
offsetY: a
|
|
3126
3126
|
};
|
|
3127
3127
|
}
|
|
3128
|
-
class
|
|
3128
|
+
class De extends Mt {
|
|
3129
3129
|
constructor(t, e) {
|
|
3130
3130
|
super(t, e), this.enableOptionSharing = !0, this.innerRadius = void 0, this.outerRadius = void 0, this.offsetX = void 0, this.offsetY = void 0;
|
|
3131
3131
|
}
|
|
@@ -3165,29 +3165,29 @@ class Le extends Mt {
|
|
|
3165
3165
|
};
|
|
3166
3166
|
}
|
|
3167
3167
|
update(t) {
|
|
3168
|
-
const e = this.chart, { chartArea: n } = e, s = this._cachedMeta, o = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(n.width, n.height) - a) / 2, 0), l = Math.min(sr(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX:
|
|
3169
|
-
this.offsetX =
|
|
3168
|
+
const e = this.chart, { chartArea: n } = e, s = this._cachedMeta, o = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(n.width, n.height) - a) / 2, 0), l = Math.min(sr(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX: m, offsetY: g } = Gl(d, h, l), b = (n.width - a) / u, p = (n.height - a) / f, y = Math.max(Math.min(b, p) / 2, 0), x = So(this.options.radius, y), _ = Math.max(x * l, 0), v = (x - _) / this._getVisibleDatasetWeightTotal();
|
|
3169
|
+
this.offsetX = m * x, this.offsetY = g * x, s.total = this.calculateTotal(), this.outerRadius = x - v * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - v * c, 0), this.updateElements(o, 0, o.length, t);
|
|
3170
3170
|
}
|
|
3171
3171
|
_circumference(t, e) {
|
|
3172
3172
|
const n = this.options, s = this._cachedMeta, o = this._getCircumference();
|
|
3173
3173
|
return e && n.animation.animateRotate || !this.chart.getDataVisibility(t) || s._parsed[t] === null || s.data[t].hidden ? 0 : this.calculateCircumference(s._parsed[t] * o / W);
|
|
3174
3174
|
}
|
|
3175
3175
|
updateElements(t, e, n, s) {
|
|
3176
|
-
const o = s === "reset", a = this.chart, r = a.chartArea, c = a.options.animation, h = (r.left + r.right) / 2, d = (r.top + r.bottom) / 2, u = o && c.animateScale, f = u ? 0 : this.innerRadius,
|
|
3177
|
-
let
|
|
3176
|
+
const o = s === "reset", a = this.chart, r = a.chartArea, c = a.options.animation, h = (r.left + r.right) / 2, d = (r.top + r.bottom) / 2, u = o && c.animateScale, f = u ? 0 : this.innerRadius, m = u ? 0 : this.outerRadius, { sharedOptions: g, includeOptions: b } = this._getSharedOptions(e, s);
|
|
3177
|
+
let p = this._getRotation(), y;
|
|
3178
3178
|
for (y = 0; y < e; ++y)
|
|
3179
|
-
|
|
3179
|
+
p += this._circumference(y, o);
|
|
3180
3180
|
for (y = e; y < e + n; ++y) {
|
|
3181
|
-
const x = this._circumference(y, o),
|
|
3181
|
+
const x = this._circumference(y, o), _ = t[y], v = {
|
|
3182
3182
|
x: h + this.offsetX,
|
|
3183
3183
|
y: d + this.offsetY,
|
|
3184
|
-
startAngle:
|
|
3185
|
-
endAngle:
|
|
3184
|
+
startAngle: p,
|
|
3185
|
+
endAngle: p + x,
|
|
3186
3186
|
circumference: x,
|
|
3187
|
-
outerRadius:
|
|
3187
|
+
outerRadius: m,
|
|
3188
3188
|
innerRadius: f
|
|
3189
3189
|
};
|
|
3190
|
-
|
|
3190
|
+
b && (v.options = g || this.resolveDataElementOptions(y, _.active ? "active" : s)), p += x, this.updateElement(_, y, v, s);
|
|
3191
3191
|
}
|
|
3192
3192
|
}
|
|
3193
3193
|
calculateTotal() {
|
|
@@ -3248,7 +3248,7 @@ class Le extends Mt {
|
|
|
3248
3248
|
return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
|
|
3249
3249
|
}
|
|
3250
3250
|
}
|
|
3251
|
-
k(
|
|
3251
|
+
k(De, "id", "doughnut"), k(De, "defaults", {
|
|
3252
3252
|
datasetElementType: !1,
|
|
3253
3253
|
dataElementType: "arc",
|
|
3254
3254
|
animation: {
|
|
@@ -3278,10 +3278,10 @@ k(Le, "id", "doughnut"), k(Le, "defaults", {
|
|
|
3278
3278
|
radius: "100%",
|
|
3279
3279
|
spacing: 0,
|
|
3280
3280
|
indexAxis: "r"
|
|
3281
|
-
}), k(
|
|
3281
|
+
}), k(De, "descriptors", {
|
|
3282
3282
|
_scriptable: (t) => t !== "spacing",
|
|
3283
3283
|
_indexable: (t) => t !== "spacing" && !t.startsWith("borderDash") && !t.startsWith("hoverBorderDash")
|
|
3284
|
-
}), k(
|
|
3284
|
+
}), k(De, "overrides", {
|
|
3285
3285
|
aspectRatio: 1,
|
|
3286
3286
|
plugins: {
|
|
3287
3287
|
legend: {
|
|
@@ -3328,16 +3328,16 @@ class pi extends Mt {
|
|
|
3328
3328
|
}, t), this.updateElements(s, r, l, t);
|
|
3329
3329
|
}
|
|
3330
3330
|
updateElements(t, e, n, s) {
|
|
3331
|
-
const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, s), u = a.axis, f = r.axis, { spanGaps:
|
|
3332
|
-
let
|
|
3333
|
-
for (let
|
|
3334
|
-
const
|
|
3335
|
-
if (
|
|
3331
|
+
const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, s), u = a.axis, f = r.axis, { spanGaps: m, segment: g } = this.options, b = Ne(m) ? m : Number.POSITIVE_INFINITY, p = this.chart._animationsDisabled || o || s === "none", y = e + n, x = t.length;
|
|
3332
|
+
let _ = e > 0 && this.getParsed(e - 1);
|
|
3333
|
+
for (let v = 0; v < x; ++v) {
|
|
3334
|
+
const w = t[v], M = p ? w : {};
|
|
3335
|
+
if (v < e || v >= y) {
|
|
3336
3336
|
M.skip = !0;
|
|
3337
3337
|
continue;
|
|
3338
3338
|
}
|
|
3339
|
-
const
|
|
3340
|
-
M.skip = isNaN(C) || isNaN(P) || A, M.stop =
|
|
3339
|
+
const S = this.getParsed(v), A = O(S[f]), C = M[u] = a.getPixelForValue(S[u], v), P = M[f] = o || A ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, S, l) : S[f], v);
|
|
3340
|
+
M.skip = isNaN(C) || isNaN(P) || A, M.stop = v > 0 && Math.abs(S[u] - _[u]) > b, g && (M.parsed = S, M.raw = c.data[v]), d && (M.options = h || this.resolveDataElementOptions(v, w.active ? "active" : s)), p || this.updateElement(w, v, M, s), _ = S;
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
3343
|
getMaxOverflow() {
|
|
@@ -3496,13 +3496,13 @@ function Kl(i, t, e, n) {
|
|
|
3496
3496
|
hi: o.length - 1
|
|
3497
3497
|
};
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function Ye(i, t, e, n, s) {
|
|
3500
3500
|
const o = i.getSortedVisibleDatasetMetas(), a = e[t];
|
|
3501
3501
|
for (let r = 0, l = o.length; r < l; ++r) {
|
|
3502
3502
|
const { index: c, data: h } = o[r], { lo: d, hi: u } = Kl(o[r], t, a, s);
|
|
3503
3503
|
for (let f = d; f <= u; ++f) {
|
|
3504
|
-
const
|
|
3505
|
-
|
|
3504
|
+
const m = h[f];
|
|
3505
|
+
m.skip || n(m, c, f);
|
|
3506
3506
|
}
|
|
3507
3507
|
}
|
|
3508
3508
|
}
|
|
@@ -3515,7 +3515,7 @@ function Zl(i) {
|
|
|
3515
3515
|
}
|
|
3516
3516
|
function $i(i, t, e, n, s) {
|
|
3517
3517
|
const o = [];
|
|
3518
|
-
return !s && !i.isPointInArea(t) ||
|
|
3518
|
+
return !s && !i.isPointInArea(t) || Ye(i, e, t, function(r, l, c) {
|
|
3519
3519
|
!s && !wt(r, i.chartArea, 0) || r.inRange(t.x, t.y, n) && o.push({
|
|
3520
3520
|
element: r,
|
|
3521
3521
|
datasetIndex: l,
|
|
@@ -3533,13 +3533,13 @@ function Jl(i, t, e, n) {
|
|
|
3533
3533
|
x: t.x,
|
|
3534
3534
|
y: t.y
|
|
3535
3535
|
});
|
|
3536
|
-
|
|
3536
|
+
Ve(d, c, h) && s.push({
|
|
3537
3537
|
element: a,
|
|
3538
3538
|
datasetIndex: r,
|
|
3539
3539
|
index: l
|
|
3540
3540
|
});
|
|
3541
3541
|
}
|
|
3542
|
-
return
|
|
3542
|
+
return Ye(i, e, t, o), s;
|
|
3543
3543
|
}
|
|
3544
3544
|
function Ql(i, t, e, n, s, o) {
|
|
3545
3545
|
let a = [];
|
|
@@ -3549,23 +3549,23 @@ function Ql(i, t, e, n, s, o) {
|
|
|
3549
3549
|
const f = h.inRange(t.x, t.y, s);
|
|
3550
3550
|
if (n && !f)
|
|
3551
3551
|
return;
|
|
3552
|
-
const
|
|
3553
|
-
if (!(!!o || i.isPointInArea(
|
|
3552
|
+
const m = h.getCenterPoint(s);
|
|
3553
|
+
if (!(!!o || i.isPointInArea(m)) && !f)
|
|
3554
3554
|
return;
|
|
3555
|
-
const
|
|
3556
|
-
|
|
3555
|
+
const b = r(t, m);
|
|
3556
|
+
b < l ? (a = [
|
|
3557
3557
|
{
|
|
3558
3558
|
element: h,
|
|
3559
3559
|
datasetIndex: d,
|
|
3560
3560
|
index: u
|
|
3561
3561
|
}
|
|
3562
|
-
], l =
|
|
3562
|
+
], l = b) : b === l && a.push({
|
|
3563
3563
|
element: h,
|
|
3564
3564
|
datasetIndex: d,
|
|
3565
3565
|
index: u
|
|
3566
3566
|
});
|
|
3567
3567
|
}
|
|
3568
|
-
return
|
|
3568
|
+
return Ye(i, e, t, c), a;
|
|
3569
3569
|
}
|
|
3570
3570
|
function Ui(i, t, e, n, s, o) {
|
|
3571
3571
|
return !o && !i.isPointInArea(t) ? [] : e === "r" && !n ? Jl(i, t, e, s) : Ql(i, t, e, n, s, o);
|
|
@@ -3573,7 +3573,7 @@ function Ui(i, t, e, n, s, o) {
|
|
|
3573
3573
|
function bs(i, t, e, n, s) {
|
|
3574
3574
|
const o = [], a = e === "x" ? "inXRange" : "inYRange";
|
|
3575
3575
|
let r = !1;
|
|
3576
|
-
return
|
|
3576
|
+
return Ye(i, e, t, (l, c, h) => {
|
|
3577
3577
|
l[a](t[e], s) && (o.push({
|
|
3578
3578
|
element: l,
|
|
3579
3579
|
datasetIndex: c,
|
|
@@ -3582,7 +3582,7 @@ function bs(i, t, e, n, s) {
|
|
|
3582
3582
|
}), n && !r ? [] : o;
|
|
3583
3583
|
}
|
|
3584
3584
|
var tc = {
|
|
3585
|
-
evaluateInteractionItems:
|
|
3585
|
+
evaluateInteractionItems: Ye,
|
|
3586
3586
|
modes: {
|
|
3587
3587
|
index(i, t, e, n) {
|
|
3588
3588
|
const s = Wt(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? $i(i, s, o, n, a) : Ui(i, s, o, !1, n, a), l = [];
|
|
@@ -3634,13 +3634,13 @@ const Yo = [
|
|
|
3634
3634
|
"right",
|
|
3635
3635
|
"bottom"
|
|
3636
3636
|
];
|
|
3637
|
-
function
|
|
3637
|
+
function we(i, t) {
|
|
3638
3638
|
return i.filter((e) => e.pos === t);
|
|
3639
3639
|
}
|
|
3640
3640
|
function ys(i, t) {
|
|
3641
3641
|
return i.filter((e) => Yo.indexOf(e.pos) === -1 && e.box.axis === t);
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3643
|
+
function ke(i, t) {
|
|
3644
3644
|
return i.sort((e, n) => {
|
|
3645
3645
|
const s = t ? n : e, o = t ? e : n;
|
|
3646
3646
|
return s.weight === o.weight ? s.index - o.index : s.weight - o.weight;
|
|
@@ -3688,12 +3688,12 @@ function nc(i, t) {
|
|
|
3688
3688
|
return e;
|
|
3689
3689
|
}
|
|
3690
3690
|
function sc(i) {
|
|
3691
|
-
const t = ec(i), e =
|
|
3691
|
+
const t = ec(i), e = ke(t.filter((c) => c.box.fullSize), !0), n = ke(we(t, "left"), !0), s = ke(we(t, "right")), o = ke(we(t, "top"), !0), a = ke(we(t, "bottom")), r = ys(t, "x"), l = ys(t, "y");
|
|
3692
3692
|
return {
|
|
3693
3693
|
fullSize: e,
|
|
3694
3694
|
leftAndTop: n.concat(o),
|
|
3695
3695
|
rightAndBottom: s.concat(l).concat(a).concat(r),
|
|
3696
|
-
chartArea:
|
|
3696
|
+
chartArea: we(t, "chartArea"),
|
|
3697
3697
|
vertical: n.concat(s).concat(l),
|
|
3698
3698
|
horizontal: o.concat(a).concat(r)
|
|
3699
3699
|
};
|
|
@@ -3753,7 +3753,7 @@ function rc(i, t) {
|
|
|
3753
3753
|
"bottom"
|
|
3754
3754
|
]);
|
|
3755
3755
|
}
|
|
3756
|
-
function
|
|
3756
|
+
function Le(i, t, e, n) {
|
|
3757
3757
|
const s = [];
|
|
3758
3758
|
let o, a, r, l, c, h;
|
|
3759
3759
|
for (o = 0, a = i.length, c = 0; o < a; ++o) {
|
|
@@ -3761,7 +3761,7 @@ function Te(i, t, e, n) {
|
|
|
3761
3761
|
const { same: d, other: u } = oc(t, e, r, n);
|
|
3762
3762
|
c |= d && s.length, h = h || u, l.fullSize || s.push(r);
|
|
3763
3763
|
}
|
|
3764
|
-
return c &&
|
|
3764
|
+
return c && Le(s, t, e, n) || h;
|
|
3765
3765
|
}
|
|
3766
3766
|
function ii(i, t, e, n, s) {
|
|
3767
3767
|
i.top = e, i.left = t, i.right = t + n, i.bottom = e + s, i.width = n, i.height = s;
|
|
@@ -3777,10 +3777,10 @@ function _s(i, t, e, n) {
|
|
|
3777
3777
|
}, h = r.stackWeight / c.weight || 1;
|
|
3778
3778
|
if (r.horizontal) {
|
|
3779
3779
|
const d = t.w * h, u = c.size || l.height;
|
|
3780
|
-
|
|
3780
|
+
He(c.start) && (a = c.start), l.fullSize ? ii(l, s.left, a, e.outerWidth - s.right - s.left, u) : ii(l, t.left + c.placed, a, d, u), c.start = a, c.placed += d, a = l.bottom;
|
|
3781
3781
|
} else {
|
|
3782
3782
|
const d = t.h * h, u = c.size || l.width;
|
|
3783
|
-
|
|
3783
|
+
He(c.start) && (o = c.start), l.fullSize ? ii(l, o, s.top, u, e.outerHeight - s.bottom - s.top) : ii(l, o, t.top + c.placed, u, d), c.start = o, c.placed += d, o = l.right;
|
|
3784
3784
|
}
|
|
3785
3785
|
}
|
|
3786
3786
|
t.x = o, t.y = a;
|
|
@@ -3812,7 +3812,7 @@ var rt = {
|
|
|
3812
3812
|
R(i.boxes, (g) => {
|
|
3813
3813
|
typeof g.beforeLayout == "function" && g.beforeLayout();
|
|
3814
3814
|
});
|
|
3815
|
-
const h = l.reduce((g,
|
|
3815
|
+
const h = l.reduce((g, b) => b.box.options && b.box.options.display === !1 ? g : g + 1, 0) || 1, d = Object.freeze({
|
|
3816
3816
|
outerWidth: t,
|
|
3817
3817
|
outerHeight: e,
|
|
3818
3818
|
padding: s,
|
|
@@ -3828,8 +3828,8 @@ var rt = {
|
|
|
3828
3828
|
h: a,
|
|
3829
3829
|
x: s.left,
|
|
3830
3830
|
y: s.top
|
|
3831
|
-
}, s),
|
|
3832
|
-
|
|
3831
|
+
}, s), m = nc(l.concat(c), d);
|
|
3832
|
+
Le(r.fullSize, f, d, m), Le(l, f, d, m), Le(c, f, d, m) && Le(l, f, d, m), ac(f), _s(r.leftAndTop, f, d, m), f.x += f.w, f.y += f.h, _s(r.rightAndBottom, f, d, m), i.chartArea = {
|
|
3833
3833
|
left: f.left,
|
|
3834
3834
|
top: f.top,
|
|
3835
3835
|
right: f.left + f.w,
|
|
@@ -3837,8 +3837,8 @@ var rt = {
|
|
|
3837
3837
|
height: f.h,
|
|
3838
3838
|
width: f.w
|
|
3839
3839
|
}, R(r.chartArea, (g) => {
|
|
3840
|
-
const
|
|
3841
|
-
Object.assign(
|
|
3840
|
+
const b = g.box;
|
|
3841
|
+
Object.assign(b, i.chartArea), b.update(f.w, f.h, {
|
|
3842
3842
|
left: 0,
|
|
3843
3843
|
top: 0,
|
|
3844
3844
|
right: 0,
|
|
@@ -3964,19 +3964,19 @@ function pc(i, t, e) {
|
|
|
3964
3964
|
subtree: !0
|
|
3965
3965
|
}), s;
|
|
3966
3966
|
}
|
|
3967
|
-
const
|
|
3967
|
+
const $e = /* @__PURE__ */ new Map();
|
|
3968
3968
|
let Ss = 0;
|
|
3969
3969
|
function Ko() {
|
|
3970
3970
|
const i = window.devicePixelRatio;
|
|
3971
|
-
i !== Ss && (Ss = i,
|
|
3971
|
+
i !== Ss && (Ss = i, $e.forEach((t, e) => {
|
|
3972
3972
|
e.currentDevicePixelRatio !== i && t();
|
|
3973
3973
|
}));
|
|
3974
3974
|
}
|
|
3975
3975
|
function mc(i, t) {
|
|
3976
|
-
|
|
3976
|
+
$e.size || window.addEventListener("resize", Ko), $e.set(i, t);
|
|
3977
3977
|
}
|
|
3978
3978
|
function bc(i) {
|
|
3979
|
-
|
|
3979
|
+
$e.delete(i), $e.size || window.removeEventListener("resize", Ko);
|
|
3980
3980
|
}
|
|
3981
3981
|
function yc(i, t, e) {
|
|
3982
3982
|
const n = i.canvas, s = n && On(n);
|
|
@@ -4074,7 +4074,7 @@ class ht {
|
|
|
4074
4074
|
};
|
|
4075
4075
|
}
|
|
4076
4076
|
hasValue() {
|
|
4077
|
-
return
|
|
4077
|
+
return Ne(this.x) && Ne(this.y);
|
|
4078
4078
|
}
|
|
4079
4079
|
getProps(t, e) {
|
|
4080
4080
|
const n = this.$animations;
|
|
@@ -4172,7 +4172,7 @@ function Lc(i, t) {
|
|
|
4172
4172
|
}
|
|
4173
4173
|
});
|
|
4174
4174
|
}
|
|
4175
|
-
function
|
|
4175
|
+
function Me(i) {
|
|
4176
4176
|
return i.drawTicks ? i.tickLength : 0;
|
|
4177
4177
|
}
|
|
4178
4178
|
function Cs(i, t) {
|
|
@@ -4200,31 +4200,31 @@ function Ic(i, t, e) {
|
|
|
4200
4200
|
}
|
|
4201
4201
|
function Fc(i, t, e, n) {
|
|
4202
4202
|
const { top: s, left: o, bottom: a, right: r, chart: l } = i, { chartArea: c, scales: h } = l;
|
|
4203
|
-
let d = 0, u, f,
|
|
4204
|
-
const g = a - s,
|
|
4203
|
+
let d = 0, u, f, m;
|
|
4204
|
+
const g = a - s, b = r - o;
|
|
4205
4205
|
if (i.isHorizontal()) {
|
|
4206
4206
|
if (f = J(n, o, r), T(e)) {
|
|
4207
|
-
const
|
|
4208
|
-
|
|
4207
|
+
const p = Object.keys(e)[0], y = e[p];
|
|
4208
|
+
m = h[p].getPixelForValue(y) + g - t;
|
|
4209
4209
|
} else
|
|
4210
|
-
e === "center" ?
|
|
4210
|
+
e === "center" ? m = (c.bottom + c.top) / 2 + g - t : m = ws(i, e, t);
|
|
4211
4211
|
u = r - o;
|
|
4212
4212
|
} else {
|
|
4213
4213
|
if (T(e)) {
|
|
4214
|
-
const
|
|
4215
|
-
f = h[
|
|
4214
|
+
const p = Object.keys(e)[0], y = e[p];
|
|
4215
|
+
f = h[p].getPixelForValue(y) - b + t;
|
|
4216
4216
|
} else
|
|
4217
|
-
e === "center" ? f = (c.left + c.right) / 2 -
|
|
4218
|
-
|
|
4217
|
+
e === "center" ? f = (c.left + c.right) / 2 - b + t : f = ws(i, e, t);
|
|
4218
|
+
m = J(n, a, s), d = e === "left" ? -Y : Y;
|
|
4219
4219
|
}
|
|
4220
4220
|
return {
|
|
4221
4221
|
titleX: f,
|
|
4222
|
-
titleY:
|
|
4222
|
+
titleY: m,
|
|
4223
4223
|
maxWidth: u,
|
|
4224
4224
|
rotation: d
|
|
4225
4225
|
};
|
|
4226
4226
|
}
|
|
4227
|
-
class
|
|
4227
|
+
class he extends ht {
|
|
4228
4228
|
constructor(t) {
|
|
4229
4229
|
super(), this.id = t.id, this.type = t.type, this.options = void 0, this.ctx = t.ctx, this.chart = t.chart, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this._margins = {
|
|
4230
4230
|
left: 0,
|
|
@@ -4377,7 +4377,7 @@ class de extends ht {
|
|
|
4377
4377
|
return;
|
|
4378
4378
|
}
|
|
4379
4379
|
const h = this._getLabelSizes(), d = h.widest.width, u = h.highest.height, f = Q(this.chart.width - d, 0, this.maxWidth);
|
|
4380
|
-
r = t.offset ? this.maxWidth / n : f / (n - 1), d + 6 > r && (r = f / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight -
|
|
4380
|
+
r = t.offset ? this.maxWidth / n : f / (n - 1), d + 6 > r && (r = f / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight - Me(t.grid) - e.padding - Cs(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), a = Sn(Math.min(Math.asin(Q((h.highest.height + 6) / r, -1, 1)), Math.asin(Q(l / c, -1, 1)) - Math.asin(Q(u / c, -1, 1)))), a = Math.max(s, Math.min(o, a))), this.labelRotation = a;
|
|
4381
4381
|
}
|
|
4382
4382
|
afterCalculateLabelRotation() {
|
|
4383
4383
|
E(this.options.afterCalculateLabelRotation, [
|
|
@@ -4398,16 +4398,16 @@ class de extends ht {
|
|
|
4398
4398
|
}, { chart: e, options: { ticks: n, title: s, grid: o } } = this, a = this._isVisible(), r = this.isHorizontal();
|
|
4399
4399
|
if (a) {
|
|
4400
4400
|
const l = Cs(s, e.options.font);
|
|
4401
|
-
if (r ? (t.width = this.maxWidth, t.height =
|
|
4402
|
-
const { first: c, last: h, widest: d, highest: u } = this._getLabelSizes(), f = n.padding * 2,
|
|
4401
|
+
if (r ? (t.width = this.maxWidth, t.height = Me(o) + l) : (t.height = this.maxHeight, t.width = Me(o) + l), n.display && this.ticks.length) {
|
|
4402
|
+
const { first: c, last: h, widest: d, highest: u } = this._getLabelSizes(), f = n.padding * 2, m = gt(this.labelRotation), g = Math.cos(m), b = Math.sin(m);
|
|
4403
4403
|
if (r) {
|
|
4404
|
-
const
|
|
4405
|
-
t.height = Math.min(this.maxHeight, t.height +
|
|
4404
|
+
const p = n.mirror ? 0 : b * d.width + g * u.height;
|
|
4405
|
+
t.height = Math.min(this.maxHeight, t.height + p + f);
|
|
4406
4406
|
} else {
|
|
4407
|
-
const
|
|
4408
|
-
t.width = Math.min(this.maxWidth, t.width +
|
|
4407
|
+
const p = n.mirror ? 0 : g * d.width + b * u.height;
|
|
4408
|
+
t.width = Math.min(this.maxWidth, t.width + p + f);
|
|
4409
4409
|
}
|
|
4410
|
-
this._calculatePadding(c, h,
|
|
4410
|
+
this._calculatePadding(c, h, b, g);
|
|
4411
4411
|
}
|
|
4412
4412
|
}
|
|
4413
4413
|
this._handleMargins(), r ? (this.width = this._length = e.width - this._margins.left - this._margins.right, this.height = t.height) : (this.width = t.width, this.height = this._length = e.height - this._margins.top - this._margins.bottom);
|
|
@@ -4456,28 +4456,28 @@ class de extends ht {
|
|
|
4456
4456
|
}
|
|
4457
4457
|
_computeLabelSizes(t, e, n) {
|
|
4458
4458
|
const { ctx: s, _longestTextCache: o } = this, a = [], r = [], l = Math.floor(e / ks(e, n));
|
|
4459
|
-
let c = 0, h = 0, d, u, f,
|
|
4459
|
+
let c = 0, h = 0, d, u, f, m, g, b, p, y, x, _, v;
|
|
4460
4460
|
for (d = 0; d < e; d += l) {
|
|
4461
|
-
if (
|
|
4461
|
+
if (m = t[d].label, g = this._resolveTickFontOptions(d), s.font = b = g.string, p = o[b] = o[b] || {
|
|
4462
4462
|
data: {},
|
|
4463
4463
|
gc: []
|
|
4464
|
-
}, y = g.lineHeight, x =
|
|
4465
|
-
x = wi(s,
|
|
4466
|
-
else if (z(
|
|
4467
|
-
for (u = 0, f =
|
|
4468
|
-
|
|
4469
|
-
a.push(x), r.push(
|
|
4464
|
+
}, y = g.lineHeight, x = _ = 0, !O(m) && !z(m))
|
|
4465
|
+
x = wi(s, p.data, p.gc, x, m), _ = y;
|
|
4466
|
+
else if (z(m))
|
|
4467
|
+
for (u = 0, f = m.length; u < f; ++u)
|
|
4468
|
+
v = m[u], !O(v) && !z(v) && (x = wi(s, p.data, p.gc, x, v), _ += y);
|
|
4469
|
+
a.push(x), r.push(_), c = Math.max(x, c), h = Math.max(_, h);
|
|
4470
4470
|
}
|
|
4471
4471
|
Lc(o, e);
|
|
4472
|
-
const
|
|
4472
|
+
const w = a.indexOf(c), M = r.indexOf(h), S = (A) => ({
|
|
4473
4473
|
width: a[A] || 0,
|
|
4474
4474
|
height: r[A] || 0
|
|
4475
4475
|
});
|
|
4476
4476
|
return {
|
|
4477
|
-
first:
|
|
4478
|
-
last:
|
|
4479
|
-
widest: w
|
|
4480
|
-
highest:
|
|
4477
|
+
first: S(0),
|
|
4478
|
+
last: S(e - 1),
|
|
4479
|
+
widest: S(w),
|
|
4480
|
+
highest: S(M),
|
|
4481
4481
|
widths: a,
|
|
4482
4482
|
heights: r
|
|
4483
4483
|
};
|
|
@@ -4527,42 +4527,42 @@ class de extends ht {
|
|
|
4527
4527
|
return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
|
|
4528
4528
|
}
|
|
4529
4529
|
_computeGridLineItems(t) {
|
|
4530
|
-
const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u =
|
|
4530
|
+
const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u = Me(o), f = [], m = r.setContext(this.getContext()), g = m.display ? m.width : 0, b = g / 2, p = function(B) {
|
|
4531
4531
|
return Bt(n, B, g);
|
|
4532
4532
|
};
|
|
4533
|
-
let y, x,
|
|
4533
|
+
let y, x, _, v, w, M, S, A, C, P, D, H;
|
|
4534
4534
|
if (a === "top")
|
|
4535
|
-
y =
|
|
4535
|
+
y = p(this.bottom), M = this.bottom - u, A = y - b, P = p(t.top) + b, H = t.bottom;
|
|
4536
4536
|
else if (a === "bottom")
|
|
4537
|
-
y =
|
|
4537
|
+
y = p(this.top), P = t.top, H = p(t.bottom) - b, M = y + b, A = this.top + u;
|
|
4538
4538
|
else if (a === "left")
|
|
4539
|
-
y =
|
|
4539
|
+
y = p(this.right), w = this.right - u, S = y - b, C = p(t.left) + b, D = t.right;
|
|
4540
4540
|
else if (a === "right")
|
|
4541
|
-
y =
|
|
4541
|
+
y = p(this.left), C = t.left, D = p(t.right) - b, w = y + b, S = this.left + u;
|
|
4542
4542
|
else if (e === "x") {
|
|
4543
4543
|
if (a === "center")
|
|
4544
|
-
y =
|
|
4544
|
+
y = p((t.top + t.bottom) / 2 + 0.5);
|
|
4545
4545
|
else if (T(a)) {
|
|
4546
4546
|
const B = Object.keys(a)[0], N = a[B];
|
|
4547
|
-
y =
|
|
4547
|
+
y = p(this.chart.scales[B].getPixelForValue(N));
|
|
4548
4548
|
}
|
|
4549
|
-
P = t.top, H = t.bottom, M = y +
|
|
4549
|
+
P = t.top, H = t.bottom, M = y + b, A = M + u;
|
|
4550
4550
|
} else if (e === "y") {
|
|
4551
4551
|
if (a === "center")
|
|
4552
|
-
y =
|
|
4552
|
+
y = p((t.left + t.right) / 2);
|
|
4553
4553
|
else if (T(a)) {
|
|
4554
4554
|
const B = Object.keys(a)[0], N = a[B];
|
|
4555
|
-
y =
|
|
4555
|
+
y = p(this.chart.scales[B].getPixelForValue(N));
|
|
4556
4556
|
}
|
|
4557
|
-
|
|
4557
|
+
w = y - b, S = w - u, C = t.left, D = t.right;
|
|
4558
4558
|
}
|
|
4559
4559
|
const U = L(s.ticks.maxTicksLimit, d), I = Math.max(1, Math.ceil(d / U));
|
|
4560
4560
|
for (x = 0; x < d; x += I) {
|
|
4561
|
-
const B = this.getContext(x), N = o.setContext(B), ct = r.setContext(B), Z = N.lineWidth, Gt = N.color, qe = ct.dash || [], qt = ct.dashOffset,
|
|
4562
|
-
|
|
4563
|
-
tx1:
|
|
4561
|
+
const B = this.getContext(x), N = o.setContext(B), ct = r.setContext(B), Z = N.lineWidth, Gt = N.color, qe = ct.dash || [], qt = ct.dashOffset, ye = N.tickWidth, xe = N.tickColor, _e = N.tickBorderDash || [], ve = N.tickBorderDashOffset;
|
|
4562
|
+
_ = Dc(this, x, l), _ !== void 0 && (v = Bt(n, _, Z), c ? w = S = C = D = v : M = A = P = H = v, f.push({
|
|
4563
|
+
tx1: w,
|
|
4564
4564
|
ty1: M,
|
|
4565
|
-
tx2:
|
|
4565
|
+
tx2: S,
|
|
4566
4566
|
ty2: A,
|
|
4567
4567
|
x1: C,
|
|
4568
4568
|
y1: P,
|
|
@@ -4572,83 +4572,83 @@ class de extends ht {
|
|
|
4572
4572
|
color: Gt,
|
|
4573
4573
|
borderDash: qe,
|
|
4574
4574
|
borderDashOffset: qt,
|
|
4575
|
-
tickWidth:
|
|
4576
|
-
tickColor:
|
|
4577
|
-
tickBorderDash:
|
|
4578
|
-
tickBorderDashOffset:
|
|
4575
|
+
tickWidth: ye,
|
|
4576
|
+
tickColor: xe,
|
|
4577
|
+
tickBorderDash: _e,
|
|
4578
|
+
tickBorderDashOffset: ve
|
|
4579
4579
|
}));
|
|
4580
4580
|
}
|
|
4581
4581
|
return this._ticksLength = d, this._borderValue = y, f;
|
|
4582
4582
|
}
|
|
4583
4583
|
_computeLabelItems(t) {
|
|
4584
|
-
const e = this.axis, n = this.options, { position: s, ticks: o } = n, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u =
|
|
4585
|
-
let
|
|
4584
|
+
const e = this.axis, n = this.options, { position: s, ticks: o } = n, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u = Me(n.grid), f = u + h, m = d ? -h : f, g = -gt(this.labelRotation), b = [];
|
|
4585
|
+
let p, y, x, _, v, w, M, S, A, C, P, D, H = "middle";
|
|
4586
4586
|
if (s === "top")
|
|
4587
|
-
|
|
4587
|
+
w = this.bottom - m, M = this._getXAxisLabelAlignment();
|
|
4588
4588
|
else if (s === "bottom")
|
|
4589
|
-
|
|
4589
|
+
w = this.top + m, M = this._getXAxisLabelAlignment();
|
|
4590
4590
|
else if (s === "left") {
|
|
4591
4591
|
const I = this._getYAxisLabelAlignment(u);
|
|
4592
|
-
M = I.textAlign,
|
|
4592
|
+
M = I.textAlign, v = I.x;
|
|
4593
4593
|
} else if (s === "right") {
|
|
4594
4594
|
const I = this._getYAxisLabelAlignment(u);
|
|
4595
|
-
M = I.textAlign,
|
|
4595
|
+
M = I.textAlign, v = I.x;
|
|
4596
4596
|
} else if (e === "x") {
|
|
4597
4597
|
if (s === "center")
|
|
4598
|
-
|
|
4598
|
+
w = (t.top + t.bottom) / 2 + f;
|
|
4599
4599
|
else if (T(s)) {
|
|
4600
4600
|
const I = Object.keys(s)[0], B = s[I];
|
|
4601
|
-
|
|
4601
|
+
w = this.chart.scales[I].getPixelForValue(B) + f;
|
|
4602
4602
|
}
|
|
4603
4603
|
M = this._getXAxisLabelAlignment();
|
|
4604
4604
|
} else if (e === "y") {
|
|
4605
4605
|
if (s === "center")
|
|
4606
|
-
|
|
4606
|
+
v = (t.left + t.right) / 2 - f;
|
|
4607
4607
|
else if (T(s)) {
|
|
4608
4608
|
const I = Object.keys(s)[0], B = s[I];
|
|
4609
|
-
|
|
4609
|
+
v = this.chart.scales[I].getPixelForValue(B);
|
|
4610
4610
|
}
|
|
4611
4611
|
M = this._getYAxisLabelAlignment(u).textAlign;
|
|
4612
4612
|
}
|
|
4613
4613
|
e === "y" && (l === "start" ? H = "top" : l === "end" && (H = "bottom"));
|
|
4614
4614
|
const U = this._getLabelSizes();
|
|
4615
|
-
for (
|
|
4616
|
-
x = r[
|
|
4617
|
-
const I = o.setContext(this.getContext(
|
|
4618
|
-
|
|
4615
|
+
for (p = 0, y = r.length; p < y; ++p) {
|
|
4616
|
+
x = r[p], _ = x.label;
|
|
4617
|
+
const I = o.setContext(this.getContext(p));
|
|
4618
|
+
S = this.getPixelForTick(p) + o.labelOffset, A = this._resolveTickFontOptions(p), C = A.lineHeight, P = z(_) ? _.length : 1;
|
|
4619
4619
|
const B = P / 2, N = I.color, ct = I.textStrokeColor, Z = I.textStrokeWidth;
|
|
4620
4620
|
let Gt = M;
|
|
4621
|
-
a ? (
|
|
4621
|
+
a ? (v = S, M === "inner" && (p === y - 1 ? Gt = this.options.reverse ? "left" : "right" : p === 0 ? Gt = this.options.reverse ? "right" : "left" : Gt = "center"), s === "top" ? c === "near" || g !== 0 ? D = -P * C + C / 2 : c === "center" ? D = -U.highest.height / 2 - B * C + C : D = -U.highest.height + C / 2 : c === "near" || g !== 0 ? D = C / 2 : c === "center" ? D = U.highest.height / 2 - B * C : D = U.highest.height - P * C, d && (D *= -1), g !== 0 && !I.showLabelBackdrop && (v += C / 2 * Math.sin(g))) : (w = S, D = (1 - P) * C / 2);
|
|
4622
4622
|
let qe;
|
|
4623
4623
|
if (I.showLabelBackdrop) {
|
|
4624
|
-
const qt = K(I.backdropPadding),
|
|
4625
|
-
let
|
|
4624
|
+
const qt = K(I.backdropPadding), ye = U.heights[p], xe = U.widths[p];
|
|
4625
|
+
let _e = D - qt.top, ve = 0 - qt.left;
|
|
4626
4626
|
switch (H) {
|
|
4627
4627
|
case "middle":
|
|
4628
|
-
|
|
4628
|
+
_e -= ye / 2;
|
|
4629
4629
|
break;
|
|
4630
4630
|
case "bottom":
|
|
4631
|
-
|
|
4631
|
+
_e -= ye;
|
|
4632
4632
|
break;
|
|
4633
4633
|
}
|
|
4634
4634
|
switch (M) {
|
|
4635
4635
|
case "center":
|
|
4636
|
-
|
|
4636
|
+
ve -= xe / 2;
|
|
4637
4637
|
break;
|
|
4638
4638
|
case "right":
|
|
4639
|
-
|
|
4639
|
+
ve -= xe;
|
|
4640
4640
|
break;
|
|
4641
4641
|
}
|
|
4642
4642
|
qe = {
|
|
4643
|
-
left:
|
|
4644
|
-
top:
|
|
4645
|
-
width:
|
|
4646
|
-
height:
|
|
4643
|
+
left: ve,
|
|
4644
|
+
top: _e,
|
|
4645
|
+
width: xe + qt.width,
|
|
4646
|
+
height: ye + qt.height,
|
|
4647
4647
|
color: I.backdropColor
|
|
4648
4648
|
};
|
|
4649
4649
|
}
|
|
4650
|
-
|
|
4651
|
-
label:
|
|
4650
|
+
b.push({
|
|
4651
|
+
label: _,
|
|
4652
4652
|
font: A,
|
|
4653
4653
|
textOffset: D,
|
|
4654
4654
|
options: {
|
|
@@ -4659,14 +4659,14 @@ class de extends ht {
|
|
|
4659
4659
|
textAlign: Gt,
|
|
4660
4660
|
textBaseline: H,
|
|
4661
4661
|
translation: [
|
|
4662
|
-
|
|
4663
|
-
|
|
4662
|
+
v,
|
|
4663
|
+
w
|
|
4664
4664
|
],
|
|
4665
4665
|
backdrop: qe
|
|
4666
4666
|
}
|
|
4667
4667
|
});
|
|
4668
4668
|
}
|
|
4669
|
-
return
|
|
4669
|
+
return b;
|
|
4670
4670
|
}
|
|
4671
4671
|
_getXAxisLabelAlignment() {
|
|
4672
4672
|
const { position: t, ticks: e } = this.options;
|
|
@@ -4787,7 +4787,7 @@ class de extends ht {
|
|
|
4787
4787
|
}
|
|
4788
4788
|
_layers() {
|
|
4789
4789
|
const t = this.options, e = t.ticks && t.ticks.z || 0, n = L(t.grid && t.grid.z, -1), s = L(t.border && t.border.z, 0);
|
|
4790
|
-
return !this._isVisible() || this.draw !==
|
|
4790
|
+
return !this._isVisible() || this.draw !== he.prototype.draw ? [
|
|
4791
4791
|
{
|
|
4792
4792
|
z: e,
|
|
4793
4793
|
draw: (o) => {
|
|
@@ -4878,7 +4878,7 @@ function Bc(i) {
|
|
|
4878
4878
|
}
|
|
4879
4879
|
class zc {
|
|
4880
4880
|
constructor() {
|
|
4881
|
-
this.controllers = new si(Mt, "datasets", !0), this.elements = new si(ht, "elements"), this.plugins = new si(Object, "plugins"), this.scales = new si(
|
|
4881
|
+
this.controllers = new si(Mt, "datasets", !0), this.elements = new si(ht, "elements"), this.plugins = new si(Object, "plugins"), this.scales = new si(he, "scales"), this._typedRegistries = [
|
|
4882
4882
|
this.controllers,
|
|
4883
4883
|
this.scales,
|
|
4884
4884
|
this.elements
|
|
@@ -5094,7 +5094,7 @@ function Gc(i, t) {
|
|
|
5094
5094
|
if (r._proxy)
|
|
5095
5095
|
return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
|
|
5096
5096
|
const l = an(a, r, Xc(a, i), $.scales[r.type]), c = Uc(l, s), h = e.scales || {};
|
|
5097
|
-
o[a] =
|
|
5097
|
+
o[a] = Ie(/* @__PURE__ */ Object.create(null), [
|
|
5098
5098
|
{
|
|
5099
5099
|
axis: l
|
|
5100
5100
|
},
|
|
@@ -5106,7 +5106,7 @@ function Gc(i, t) {
|
|
|
5106
5106
|
const r = a.type || i.type, l = a.indexAxis || on(r, t), h = (Yt[r] || {}).scales || {};
|
|
5107
5107
|
Object.keys(h).forEach((d) => {
|
|
5108
5108
|
const u = $c(d, l), f = a[u + "AxisID"] || u;
|
|
5109
|
-
o[f] = o[f] || /* @__PURE__ */ Object.create(null),
|
|
5109
|
+
o[f] = o[f] || /* @__PURE__ */ Object.create(null), Ie(o[f], [
|
|
5110
5110
|
{
|
|
5111
5111
|
axis: u
|
|
5112
5112
|
},
|
|
@@ -5116,7 +5116,7 @@ function Gc(i, t) {
|
|
|
5116
5116
|
});
|
|
5117
5117
|
}), Object.keys(o).forEach((a) => {
|
|
5118
5118
|
const r = o[a];
|
|
5119
|
-
|
|
5119
|
+
Ie(r, [
|
|
5120
5120
|
$.scales[r.type],
|
|
5121
5121
|
$.scale
|
|
5122
5122
|
]);
|
|
@@ -5137,7 +5137,7 @@ function oi(i, t) {
|
|
|
5137
5137
|
let e = Ds.get(i);
|
|
5138
5138
|
return e || (e = t(), Ds.set(i, e), Qo.add(e)), e;
|
|
5139
5139
|
}
|
|
5140
|
-
const
|
|
5140
|
+
const Ce = (i, t, e) => {
|
|
5141
5141
|
const n = Ot(t, e);
|
|
5142
5142
|
n !== void 0 && i.add(n);
|
|
5143
5143
|
};
|
|
@@ -5226,7 +5226,7 @@ class Kc {
|
|
|
5226
5226
|
return r;
|
|
5227
5227
|
const l = /* @__PURE__ */ new Set();
|
|
5228
5228
|
e.forEach((h) => {
|
|
5229
|
-
t && (l.add(t), h.forEach((d) =>
|
|
5229
|
+
t && (l.add(t), h.forEach((d) => Ce(l, t, d))), h.forEach((d) => Ce(l, s, d)), h.forEach((d) => Ce(l, Yt[o] || {}, d)), h.forEach((d) => Ce(l, $, d)), h.forEach((d) => Ce(l, nn, d));
|
|
5230
5230
|
});
|
|
5231
5231
|
const c = Array.from(l);
|
|
5232
5232
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Qo.has(e) && a.set(e, c), c;
|
|
@@ -5696,7 +5696,7 @@ let Ct = (Pt = class {
|
|
|
5696
5696
|
}
|
|
5697
5697
|
_updateVisibility(t, e, n) {
|
|
5698
5698
|
const s = n ? "show" : "hide", o = this.getDatasetMeta(t), a = o.controller._resolveAnimations(void 0, s);
|
|
5699
|
-
|
|
5699
|
+
He(e) ? (o.data[e].hidden = !n, this.update()) : (this.setDatasetVisibility(t, n), a.update(o, {
|
|
5700
5700
|
visible: n
|
|
5701
5701
|
}), this.update((r) => r.datasetIndex === t ? s : void 0));
|
|
5702
5702
|
}
|
|
@@ -5865,32 +5865,32 @@ function Zt(i, t, e, n) {
|
|
|
5865
5865
|
function Ci(i, t, e, n, s, o) {
|
|
5866
5866
|
const { x: a, y: r, startAngle: l, pixelMargin: c, innerRadius: h } = t, d = Math.max(t.outerRadius + n + e - c, 0), u = h > 0 ? h + n + e + c : 0;
|
|
5867
5867
|
let f = 0;
|
|
5868
|
-
const
|
|
5868
|
+
const m = s - l;
|
|
5869
5869
|
if (n) {
|
|
5870
|
-
const I = h > 0 ? h - n : 0, B = d > 0 ? d - n : 0, N = (I + B) / 2, ct = N !== 0 ?
|
|
5871
|
-
f = (
|
|
5870
|
+
const I = h > 0 ? h - n : 0, B = d > 0 ? d - n : 0, N = (I + B) / 2, ct = N !== 0 ? m * N / (N + n) : m;
|
|
5871
|
+
f = (m - ct) / 2;
|
|
5872
5872
|
}
|
|
5873
|
-
const g = Math.max(1e-3,
|
|
5873
|
+
const g = Math.max(1e-3, m * d - e / j) / d, b = (m - g) / 2, p = l + b + f, y = s - b - f, { outerStart: x, outerEnd: _, innerStart: v, innerEnd: w } = rh(t, u, d, y - p), M = d - x, S = d - _, A = p + x / M, C = y - _ / S, P = u + v, D = u + w, H = p + v / P, U = y - w / D;
|
|
5874
5874
|
if (i.beginPath(), o) {
|
|
5875
5875
|
const I = (A + C) / 2;
|
|
5876
|
-
if (i.arc(a, r, d, A, I), i.arc(a, r, d, I, C),
|
|
5877
|
-
const Z = Zt(
|
|
5878
|
-
i.arc(Z.x, Z.y,
|
|
5876
|
+
if (i.arc(a, r, d, A, I), i.arc(a, r, d, I, C), _ > 0) {
|
|
5877
|
+
const Z = Zt(S, C, a, r);
|
|
5878
|
+
i.arc(Z.x, Z.y, _, C, y + Y);
|
|
5879
5879
|
}
|
|
5880
5880
|
const B = Zt(D, y, a, r);
|
|
5881
|
-
if (i.lineTo(B.x, B.y),
|
|
5881
|
+
if (i.lineTo(B.x, B.y), w > 0) {
|
|
5882
5882
|
const Z = Zt(D, U, a, r);
|
|
5883
|
-
i.arc(Z.x, Z.y,
|
|
5883
|
+
i.arc(Z.x, Z.y, w, y + Y, U + Math.PI);
|
|
5884
5884
|
}
|
|
5885
|
-
const N = (y -
|
|
5886
|
-
if (i.arc(a, r, u, y -
|
|
5885
|
+
const N = (y - w / u + (p + v / u)) / 2;
|
|
5886
|
+
if (i.arc(a, r, u, y - w / u, N, !0), i.arc(a, r, u, N, p + v / u, !0), v > 0) {
|
|
5887
5887
|
const Z = Zt(P, H, a, r);
|
|
5888
|
-
i.arc(Z.x, Z.y,
|
|
5888
|
+
i.arc(Z.x, Z.y, v, H + Math.PI, p - Y);
|
|
5889
5889
|
}
|
|
5890
|
-
const ct = Zt(M,
|
|
5890
|
+
const ct = Zt(M, p, a, r);
|
|
5891
5891
|
if (i.lineTo(ct.x, ct.y), x > 0) {
|
|
5892
5892
|
const Z = Zt(M, A, a, r);
|
|
5893
|
-
i.arc(Z.x, Z.y, x,
|
|
5893
|
+
i.arc(Z.x, Z.y, x, p - Y, A);
|
|
5894
5894
|
}
|
|
5895
5895
|
} else {
|
|
5896
5896
|
i.moveTo(a, r);
|
|
@@ -5917,14 +5917,14 @@ function ch(i, t, e, n, s) {
|
|
|
5917
5917
|
if (!c)
|
|
5918
5918
|
return;
|
|
5919
5919
|
i.setLineDash(d || []), i.lineDashOffset = u, f ? (i.lineWidth = c * 2, i.lineJoin = h || "round") : (i.lineWidth = c, i.lineJoin = h || "bevel");
|
|
5920
|
-
let
|
|
5920
|
+
let m = t.endAngle;
|
|
5921
5921
|
if (o) {
|
|
5922
|
-
Ci(i, t, e, n,
|
|
5922
|
+
Ci(i, t, e, n, m, s);
|
|
5923
5923
|
for (let g = 0; g < o; ++g)
|
|
5924
5924
|
i.stroke();
|
|
5925
|
-
isNaN(r) || (
|
|
5925
|
+
isNaN(r) || (m = a + (r % W || W));
|
|
5926
5926
|
}
|
|
5927
|
-
f && oh(i, t,
|
|
5927
|
+
f && oh(i, t, m), o || (Ci(i, t, e, n, m, s), i.stroke());
|
|
5928
5928
|
}
|
|
5929
5929
|
class Qt extends ht {
|
|
5930
5930
|
constructor(e) {
|
|
@@ -5951,8 +5951,8 @@ class Qt extends ht {
|
|
|
5951
5951
|
"innerRadius",
|
|
5952
5952
|
"outerRadius",
|
|
5953
5953
|
"circumference"
|
|
5954
|
-
], s), f = (this.options.spacing + this.options.borderWidth) / 2, g = L(u, c - l) >= W ||
|
|
5955
|
-
return g &&
|
|
5954
|
+
], s), f = (this.options.spacing + this.options.borderWidth) / 2, g = L(u, c - l) >= W || Ve(a, l, c), b = St(r, h + f, d + f);
|
|
5955
|
+
return g && b;
|
|
5956
5956
|
}
|
|
5957
5957
|
getCenterPoint(e) {
|
|
5958
5958
|
const { x: n, y: s, startAngle: o, endAngle: a, innerRadius: r, outerRadius: l } = this.getProps([
|
|
@@ -6020,22 +6020,22 @@ function ia(i, t, e = {}) {
|
|
|
6020
6020
|
}
|
|
6021
6021
|
function uh(i, t, e, n) {
|
|
6022
6022
|
const { points: s, options: o } = t, { count: a, start: r, loop: l, ilen: c } = ia(s, e, n), h = dh(o);
|
|
6023
|
-
let { move: d = !0, reverse: u } = n || {}, f,
|
|
6023
|
+
let { move: d = !0, reverse: u } = n || {}, f, m, g;
|
|
6024
6024
|
for (f = 0; f <= c; ++f)
|
|
6025
|
-
|
|
6026
|
-
return l && (
|
|
6025
|
+
m = s[(r + (u ? c - f : f)) % a], !m.skip && (d ? (i.moveTo(m.x, m.y), d = !1) : h(i, g, m, u, o.stepped), g = m);
|
|
6026
|
+
return l && (m = s[(r + (u ? c : 0)) % a], h(i, g, m, u, o.stepped)), !!l;
|
|
6027
6027
|
}
|
|
6028
6028
|
function fh(i, t, e, n) {
|
|
6029
6029
|
const s = t.points, { count: o, start: a, ilen: r } = ia(s, e, n), { move: l = !0, reverse: c } = n || {};
|
|
6030
|
-
let h = 0, d = 0, u, f,
|
|
6031
|
-
const y = (
|
|
6032
|
-
g !==
|
|
6030
|
+
let h = 0, d = 0, u, f, m, g, b, p;
|
|
6031
|
+
const y = (_) => (a + (c ? r - _ : _)) % o, x = () => {
|
|
6032
|
+
g !== b && (i.lineTo(h, b), i.lineTo(h, g), i.lineTo(h, p));
|
|
6033
6033
|
};
|
|
6034
6034
|
for (l && (f = s[y(0)], i.moveTo(f.x, f.y)), u = 0; u <= r; ++u) {
|
|
6035
6035
|
if (f = s[y(u)], f.skip)
|
|
6036
6036
|
continue;
|
|
6037
|
-
const
|
|
6038
|
-
|
|
6037
|
+
const _ = f.x, v = f.y, w = _ | 0;
|
|
6038
|
+
w === m ? (v < g ? g = v : v > b && (b = v), h = (d * h + _) / ++d) : (x(), i.lineTo(_, v), m = w, d = 0, g = b = v), p = v;
|
|
6039
6039
|
}
|
|
6040
6040
|
x();
|
|
6041
6041
|
}
|
|
@@ -6101,13 +6101,13 @@ class pt extends ht {
|
|
|
6101
6101
|
const r = [], l = gh(n);
|
|
6102
6102
|
let c, h;
|
|
6103
6103
|
for (c = 0, h = a.length; c < h; ++c) {
|
|
6104
|
-
const { start: d, end: u } = a[c], f = o[d],
|
|
6105
|
-
if (f ===
|
|
6104
|
+
const { start: d, end: u } = a[c], f = o[d], m = o[u];
|
|
6105
|
+
if (f === m) {
|
|
6106
6106
|
r.push(f);
|
|
6107
6107
|
continue;
|
|
6108
6108
|
}
|
|
6109
|
-
const g = Math.abs((s - f[e]) / (
|
|
6110
|
-
|
|
6109
|
+
const g = Math.abs((s - f[e]) / (m[e] - f[e])), b = l(f, m, g, n.stepped);
|
|
6110
|
+
b[e] = t[e], r.push(b);
|
|
6111
6111
|
}
|
|
6112
6112
|
return r.length === 1 ? r[0] : r;
|
|
6113
6113
|
}
|
|
@@ -6308,7 +6308,7 @@ class ee extends ht {
|
|
|
6308
6308
|
super(), this.options = void 0, this.horizontal = void 0, this.base = void 0, this.width = void 0, this.height = void 0, this.inflateAmount = void 0, t && Object.assign(this, t);
|
|
6309
6309
|
}
|
|
6310
6310
|
draw(t) {
|
|
6311
|
-
const { inflateAmount: e, options: { borderColor: n, backgroundColor: s } } = this, { inner: o, outer: a } = vh(this), r = Sh(a.radius) ?
|
|
6311
|
+
const { inflateAmount: e, options: { borderColor: n, backgroundColor: s } } = this, { inner: o, outer: a } = vh(this), r = Sh(a.radius) ? je : wh;
|
|
6312
6312
|
t.save(), (a.w !== o.w || a.h !== o.h) && (t.beginPath(), r(t, Gi(a, e, o)), t.clip(), r(t, Gi(o, -e, a)), t.fillStyle = n, t.fill("evenodd")), t.beginPath(), r(t, Gi(o, e)), t.fillStyle = s, t.fill(), t.restore();
|
|
6313
6313
|
}
|
|
6314
6314
|
inRange(t, e, n) {
|
|
@@ -6363,8 +6363,8 @@ function kh(i, t, e) {
|
|
|
6363
6363
|
}
|
|
6364
6364
|
const d = Vo(t, h);
|
|
6365
6365
|
for (const u of d) {
|
|
6366
|
-
const f = ln(e, o[u.start], o[u.end], u.loop),
|
|
6367
|
-
for (const g of
|
|
6366
|
+
const f = ln(e, o[u.start], o[u.end], u.loop), m = No(r, s, f);
|
|
6367
|
+
for (const g of m)
|
|
6368
6368
|
a.push({
|
|
6369
6369
|
source: g,
|
|
6370
6370
|
target: u,
|
|
@@ -6648,15 +6648,15 @@ function Hs(i, t) {
|
|
|
6648
6648
|
for (const { source: l, target: c, start: h, end: d } of r) {
|
|
6649
6649
|
const { style: { backgroundColor: u = o } = {} } = l, f = n !== !0;
|
|
6650
6650
|
i.save(), i.fillStyle = u, Vh(i, a, f && ln(s, h, d)), i.beginPath();
|
|
6651
|
-
const
|
|
6651
|
+
const m = !!e.pathSegment(i, l);
|
|
6652
6652
|
let g;
|
|
6653
6653
|
if (f) {
|
|
6654
|
-
|
|
6655
|
-
const
|
|
6656
|
-
move:
|
|
6654
|
+
m ? i.closePath() : Ns(i, n, d, s);
|
|
6655
|
+
const b = !!n.pathSegment(i, c, {
|
|
6656
|
+
move: m,
|
|
6657
6657
|
reverse: !0
|
|
6658
6658
|
});
|
|
6659
|
-
g =
|
|
6659
|
+
g = m && b, g || Ns(i, n, h, s);
|
|
6660
6660
|
}
|
|
6661
6661
|
i.closePath(), i.fill(g ? "evenodd" : "nonzero"), i.restore();
|
|
6662
6662
|
}
|
|
@@ -6754,27 +6754,27 @@ class js extends ht {
|
|
|
6754
6754
|
let d = t;
|
|
6755
6755
|
o.textAlign = "left", o.textBaseline = "middle";
|
|
6756
6756
|
let u = -1, f = -h;
|
|
6757
|
-
return this.legendItems.forEach((
|
|
6758
|
-
const
|
|
6759
|
-
(g === 0 || c[c.length - 1] +
|
|
6757
|
+
return this.legendItems.forEach((m, g) => {
|
|
6758
|
+
const b = n + e / 2 + o.measureText(m.text).width;
|
|
6759
|
+
(g === 0 || c[c.length - 1] + b + 2 * r > a) && (d += h, c[c.length - (g > 0 ? 0 : 1)] = 0, f += h, u++), l[g] = {
|
|
6760
6760
|
left: 0,
|
|
6761
6761
|
top: f,
|
|
6762
6762
|
row: u,
|
|
6763
|
-
width:
|
|
6763
|
+
width: b,
|
|
6764
6764
|
height: s
|
|
6765
|
-
}, c[c.length - 1] +=
|
|
6765
|
+
}, c[c.length - 1] += b + r;
|
|
6766
6766
|
}), d;
|
|
6767
6767
|
}
|
|
6768
6768
|
_fitCols(t, e, n, s) {
|
|
6769
6769
|
const { ctx: o, maxHeight: a, options: { labels: { padding: r } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], h = a - t;
|
|
6770
|
-
let d = r, u = 0, f = 0,
|
|
6771
|
-
return this.legendItems.forEach((
|
|
6772
|
-
const { itemWidth: y, itemHeight: x } = Uh(n, e, o,
|
|
6773
|
-
|
|
6770
|
+
let d = r, u = 0, f = 0, m = 0, g = 0;
|
|
6771
|
+
return this.legendItems.forEach((b, p) => {
|
|
6772
|
+
const { itemWidth: y, itemHeight: x } = Uh(n, e, o, b, s);
|
|
6773
|
+
p > 0 && f + x + 2 * r > h && (d += u + r, c.push({
|
|
6774
6774
|
width: u,
|
|
6775
6775
|
height: f
|
|
6776
|
-
}),
|
|
6777
|
-
left:
|
|
6776
|
+
}), m += u + r, g++, u = f = 0), l[p] = {
|
|
6777
|
+
left: m,
|
|
6778
6778
|
top: f,
|
|
6779
6779
|
col: g,
|
|
6780
6780
|
width: y,
|
|
@@ -6812,59 +6812,59 @@ class js extends ht {
|
|
|
6812
6812
|
const { options: t, columnSizes: e, lineWidths: n, ctx: s } = this, { align: o, labels: a } = t, r = $.color, l = te(t.rtl, this.left, this.width), c = X(a.font), { padding: h } = a, d = c.size, u = d / 2;
|
|
6813
6813
|
let f;
|
|
6814
6814
|
this.drawTitle(), s.textAlign = l.textAlign("left"), s.textBaseline = "middle", s.lineWidth = 0.5, s.font = c.string;
|
|
6815
|
-
const { boxWidth:
|
|
6816
|
-
if (isNaN(
|
|
6815
|
+
const { boxWidth: m, boxHeight: g, itemHeight: b } = Vs(a, d), p = function(w, M, S) {
|
|
6816
|
+
if (isNaN(m) || m <= 0 || isNaN(g) || g < 0)
|
|
6817
6817
|
return;
|
|
6818
6818
|
s.save();
|
|
6819
|
-
const A = L(
|
|
6820
|
-
if (s.fillStyle = L(
|
|
6819
|
+
const A = L(S.lineWidth, 1);
|
|
6820
|
+
if (s.fillStyle = L(S.fillStyle, r), s.lineCap = L(S.lineCap, "butt"), s.lineDashOffset = L(S.lineDashOffset, 0), s.lineJoin = L(S.lineJoin, "miter"), s.lineWidth = A, s.strokeStyle = L(S.strokeStyle, r), s.setLineDash(L(S.lineDash, [])), a.usePointStyle) {
|
|
6821
6821
|
const C = {
|
|
6822
6822
|
radius: g * Math.SQRT2 / 2,
|
|
6823
|
-
pointStyle:
|
|
6824
|
-
rotation:
|
|
6823
|
+
pointStyle: S.pointStyle,
|
|
6824
|
+
rotation: S.rotation,
|
|
6825
6825
|
borderWidth: A
|
|
6826
|
-
}, P = l.xPlus(
|
|
6827
|
-
Lo(s, C, P, D, a.pointStyleWidth &&
|
|
6826
|
+
}, P = l.xPlus(w, m / 2), D = M + u;
|
|
6827
|
+
Lo(s, C, P, D, a.pointStyleWidth && m);
|
|
6828
6828
|
} else {
|
|
6829
|
-
const C = M + Math.max((d - g) / 2, 0), P = l.leftForLtr(
|
|
6830
|
-
s.beginPath(), Object.values(D).some((H) => H !== 0) ?
|
|
6829
|
+
const C = M + Math.max((d - g) / 2, 0), P = l.leftForLtr(w, m), D = Vt(S.borderRadius);
|
|
6830
|
+
s.beginPath(), Object.values(D).some((H) => H !== 0) ? je(s, {
|
|
6831
6831
|
x: P,
|
|
6832
6832
|
y: C,
|
|
6833
|
-
w:
|
|
6833
|
+
w: m,
|
|
6834
6834
|
h: g,
|
|
6835
6835
|
radius: D
|
|
6836
|
-
}) : s.rect(P, C,
|
|
6836
|
+
}) : s.rect(P, C, m, g), s.fill(), A !== 0 && s.stroke();
|
|
6837
6837
|
}
|
|
6838
6838
|
s.restore();
|
|
6839
|
-
}, y = function(
|
|
6840
|
-
Xt(s,
|
|
6841
|
-
strikethrough:
|
|
6842
|
-
textAlign: l.textAlign(
|
|
6839
|
+
}, y = function(w, M, S) {
|
|
6840
|
+
Xt(s, S.text, w, M + b / 2, c, {
|
|
6841
|
+
strikethrough: S.hidden,
|
|
6842
|
+
textAlign: l.textAlign(S.textAlign)
|
|
6843
6843
|
});
|
|
6844
|
-
}, x = this.isHorizontal(),
|
|
6844
|
+
}, x = this.isHorizontal(), _ = this._computeTitleHeight();
|
|
6845
6845
|
x ? f = {
|
|
6846
6846
|
x: J(o, this.left + h, this.right - n[0]),
|
|
6847
|
-
y: this.top + h +
|
|
6847
|
+
y: this.top + h + _,
|
|
6848
6848
|
line: 0
|
|
6849
6849
|
} : f = {
|
|
6850
6850
|
x: this.left + h,
|
|
6851
|
-
y: J(o, this.top +
|
|
6851
|
+
y: J(o, this.top + _ + h, this.bottom - e[0].height),
|
|
6852
6852
|
line: 0
|
|
6853
6853
|
}, zo(this.ctx, t.textDirection);
|
|
6854
|
-
const
|
|
6855
|
-
this.legendItems.forEach((
|
|
6856
|
-
s.strokeStyle =
|
|
6857
|
-
const
|
|
6854
|
+
const v = b + h;
|
|
6855
|
+
this.legendItems.forEach((w, M) => {
|
|
6856
|
+
s.strokeStyle = w.fontColor, s.fillStyle = w.fontColor;
|
|
6857
|
+
const S = s.measureText(w.text).width, A = l.textAlign(w.textAlign || (w.textAlign = a.textAlign)), C = m + u + S;
|
|
6858
6858
|
let P = f.x, D = f.y;
|
|
6859
|
-
l.setWidth(this.width), x ? M > 0 && P + C + h > this.right && (D = f.y +=
|
|
6859
|
+
l.setWidth(this.width), x ? M > 0 && P + C + h > this.right && (D = f.y += v, f.line++, P = f.x = J(o, this.left + h, this.right - n[f.line])) : M > 0 && D + v > this.bottom && (P = f.x = P + e[f.line].width + h, f.line++, D = f.y = J(o, this.top + _ + h, this.bottom - e[f.line].height));
|
|
6860
6860
|
const H = l.x(P);
|
|
6861
|
-
if (
|
|
6861
|
+
if (p(H, D, w), P = vr(A, P + m + u, x ? P + C : this.right, t.rtl), y(l.x(P), D, w), x)
|
|
6862
6862
|
f.x += C + h;
|
|
6863
|
-
else if (typeof
|
|
6863
|
+
else if (typeof w.text != "string") {
|
|
6864
6864
|
const U = c.lineHeight;
|
|
6865
|
-
f.y += aa(
|
|
6865
|
+
f.y += aa(w, U) + h;
|
|
6866
6866
|
} else
|
|
6867
|
-
f.y +=
|
|
6867
|
+
f.y += v;
|
|
6868
6868
|
}), Wo(this.ctx, t.textDirection);
|
|
6869
6869
|
}
|
|
6870
6870
|
drawTitle() {
|
|
@@ -6876,8 +6876,8 @@ class js extends ht {
|
|
|
6876
6876
|
if (this.isHorizontal())
|
|
6877
6877
|
u = Math.max(...this.lineWidths), h = this.top + c, d = J(t.align, d, this.right - u);
|
|
6878
6878
|
else {
|
|
6879
|
-
const
|
|
6880
|
-
h = c + J(t.align, this.top, this.bottom -
|
|
6879
|
+
const m = this.columnSizes.reduce((g, b) => Math.max(g, b.height), 0);
|
|
6880
|
+
h = c + J(t.align, this.top, this.bottom - m - t.labels.padding - this._computeTitleHeight());
|
|
6881
6881
|
}
|
|
6882
6882
|
const f = J(r, d, d + u);
|
|
6883
6883
|
a.textAlign = o.textAlign(kn(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = n.string, Xt(a, e.text, f, h, n);
|
|
@@ -6941,7 +6941,7 @@ function aa(i, t) {
|
|
|
6941
6941
|
function Gh(i, t) {
|
|
6942
6942
|
return !!((i === "mousemove" || i === "mouseout") && (t.onHover || t.onLeave) || t.onClick && (i === "click" || i === "mouseup"));
|
|
6943
6943
|
}
|
|
6944
|
-
var
|
|
6944
|
+
var de = {
|
|
6945
6945
|
id: "legend",
|
|
6946
6946
|
_element: js,
|
|
6947
6947
|
start(i, t, e) {
|
|
@@ -7081,7 +7081,7 @@ function qh(i, t) {
|
|
|
7081
7081
|
});
|
|
7082
7082
|
rt.configure(i, e, t), rt.addBox(i, e), i.titleBlock = e;
|
|
7083
7083
|
}
|
|
7084
|
-
var
|
|
7084
|
+
var ue = {
|
|
7085
7085
|
id: "title",
|
|
7086
7086
|
_element: ra,
|
|
7087
7087
|
start(i, t, e) {
|
|
@@ -7115,7 +7115,7 @@ var fe = {
|
|
|
7115
7115
|
_indexable: !1
|
|
7116
7116
|
}
|
|
7117
7117
|
};
|
|
7118
|
-
const
|
|
7118
|
+
const Te = {
|
|
7119
7119
|
average(i) {
|
|
7120
7120
|
if (!i.length)
|
|
7121
7121
|
return !1;
|
|
@@ -7176,21 +7176,21 @@ function Kh(i, t) {
|
|
|
7176
7176
|
};
|
|
7177
7177
|
}
|
|
7178
7178
|
function $s(i, t) {
|
|
7179
|
-
const e = i.chart.ctx, { body: n, footer: s, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = X(t.bodyFont), c = X(t.titleFont), h = X(t.footerFont), d = o.length, u = s.length, f = n.length,
|
|
7180
|
-
let g =
|
|
7181
|
-
if (
|
|
7182
|
-
const
|
|
7183
|
-
g += f *
|
|
7179
|
+
const e = i.chart.ctx, { body: n, footer: s, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = X(t.bodyFont), c = X(t.titleFont), h = X(t.footerFont), d = o.length, u = s.length, f = n.length, m = K(t.padding);
|
|
7180
|
+
let g = m.height, b = 0, p = n.reduce((_, v) => _ + v.before.length + v.lines.length + v.after.length, 0);
|
|
7181
|
+
if (p += i.beforeBody.length + i.afterBody.length, d && (g += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), p) {
|
|
7182
|
+
const _ = t.displayColors ? Math.max(r, l.lineHeight) : l.lineHeight;
|
|
7183
|
+
g += f * _ + (p - f) * l.lineHeight + (p - 1) * t.bodySpacing;
|
|
7184
7184
|
}
|
|
7185
7185
|
u && (g += t.footerMarginTop + u * h.lineHeight + (u - 1) * t.footerSpacing);
|
|
7186
7186
|
let y = 0;
|
|
7187
|
-
const x = function(
|
|
7188
|
-
|
|
7187
|
+
const x = function(_) {
|
|
7188
|
+
b = Math.max(b, e.measureText(_).width + y);
|
|
7189
7189
|
};
|
|
7190
|
-
return e.save(), e.font = c.string, R(i.title, x), e.font = l.string, R(i.beforeBody.concat(i.afterBody), x), y = t.displayColors ? a + 2 + t.boxPadding : 0, R(n, (
|
|
7191
|
-
R(
|
|
7192
|
-
}), y = 0, e.font = h.string, R(i.footer, x), e.restore(),
|
|
7193
|
-
width:
|
|
7190
|
+
return e.save(), e.font = c.string, R(i.title, x), e.font = l.string, R(i.beforeBody.concat(i.afterBody), x), y = t.displayColors ? a + 2 + t.boxPadding : 0, R(n, (_) => {
|
|
7191
|
+
R(_.before, x), R(_.lines, x), R(_.after, x);
|
|
7192
|
+
}), y = 0, e.font = h.string, R(i.footer, x), e.restore(), b += m.width, {
|
|
7193
|
+
width: b,
|
|
7194
7194
|
height: g
|
|
7195
7195
|
};
|
|
7196
7196
|
}
|
|
@@ -7225,10 +7225,10 @@ function ed(i, t, e) {
|
|
|
7225
7225
|
}
|
|
7226
7226
|
function Ys(i, t, e, n) {
|
|
7227
7227
|
const { caretSize: s, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = s + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = Vt(a);
|
|
7228
|
-
let
|
|
7228
|
+
let m = td(t, r);
|
|
7229
7229
|
const g = ed(t, l, c);
|
|
7230
|
-
return l === "center" ? r === "left" ?
|
|
7231
|
-
x: Q(
|
|
7230
|
+
return l === "center" ? r === "left" ? m += c : r === "right" && (m -= c) : r === "left" ? m -= Math.max(h, u) + s : r === "right" && (m += Math.max(d, f) + s), {
|
|
7231
|
+
x: Q(m, 0, n.width - t.width),
|
|
7232
7232
|
y: Q(g, 0, n.height - t.height)
|
|
7233
7233
|
};
|
|
7234
7234
|
}
|
|
@@ -7368,7 +7368,7 @@ class cn extends ht {
|
|
|
7368
7368
|
opacity: 0
|
|
7369
7369
|
});
|
|
7370
7370
|
else {
|
|
7371
|
-
const r =
|
|
7371
|
+
const r = Te[n.position].call(this, s, this._eventPosition);
|
|
7372
7372
|
a = this._createItems(n), this.title = this.getTitle(a, n), this.beforeBody = this.getBeforeBody(a, n), this.body = this.getBody(a, n), this.afterBody = this.getAfterBody(a, n), this.footer = this.getFooter(a, n);
|
|
7373
7373
|
const l = this._size = $s(this, n), c = Object.assign({}, r, l), h = Us(this.chart, n, c), d = Ys(n, c, h, this.chart);
|
|
7374
7374
|
this.xAlign = h.xAlign, this.yAlign = h.yAlign, o = {
|
|
@@ -7392,15 +7392,15 @@ class cn extends ht {
|
|
|
7392
7392
|
e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
|
|
7393
7393
|
}
|
|
7394
7394
|
getCaretPosition(t, e, n) {
|
|
7395
|
-
const { xAlign: s, yAlign: o } = this, { caretSize: a, cornerRadius: r } = n, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = Vt(r), { x: u, y: f } = t, { width:
|
|
7396
|
-
let
|
|
7397
|
-
return o === "center" ? (
|
|
7398
|
-
x1:
|
|
7399
|
-
x2:
|
|
7395
|
+
const { xAlign: s, yAlign: o } = this, { caretSize: a, cornerRadius: r } = n, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = Vt(r), { x: u, y: f } = t, { width: m, height: g } = e;
|
|
7396
|
+
let b, p, y, x, _, v;
|
|
7397
|
+
return o === "center" ? (_ = f + g / 2, s === "left" ? (b = u, p = b - a, x = _ + a, v = _ - a) : (b = u + m, p = b + a, x = _ - a, v = _ + a), y = b) : (s === "left" ? p = u + Math.max(l, h) + a : s === "right" ? p = u + m - Math.max(c, d) - a : p = this.caretX, o === "top" ? (x = f, _ = x - a, b = p - a, y = p + a) : (x = f + g, _ = x + a, b = p + a, y = p - a), v = x), {
|
|
7398
|
+
x1: b,
|
|
7399
|
+
x2: p,
|
|
7400
7400
|
x3: y,
|
|
7401
7401
|
y1: x,
|
|
7402
|
-
y2:
|
|
7403
|
-
y3:
|
|
7402
|
+
y2: _,
|
|
7403
|
+
y3: v
|
|
7404
7404
|
};
|
|
7405
7405
|
}
|
|
7406
7406
|
drawTitle(t, e, n) {
|
|
@@ -7413,45 +7413,45 @@ class cn extends ht {
|
|
|
7413
7413
|
}
|
|
7414
7414
|
}
|
|
7415
7415
|
_drawColorBox(t, e, n, s, o) {
|
|
7416
|
-
const a = this.labelColors[n], r = this.labelPointStyles[n], { boxHeight: l, boxWidth: c } = o, h = X(o.bodyFont), d = ri(this, "left", o), u = s.x(d), f = l < h.lineHeight ? (h.lineHeight - l) / 2 : 0,
|
|
7416
|
+
const a = this.labelColors[n], r = this.labelPointStyles[n], { boxHeight: l, boxWidth: c } = o, h = X(o.bodyFont), d = ri(this, "left", o), u = s.x(d), f = l < h.lineHeight ? (h.lineHeight - l) / 2 : 0, m = e.y + f;
|
|
7417
7417
|
if (o.usePointStyle) {
|
|
7418
7418
|
const g = {
|
|
7419
7419
|
radius: Math.min(c, l) / 2,
|
|
7420
7420
|
pointStyle: r.pointStyle,
|
|
7421
7421
|
rotation: r.rotation,
|
|
7422
7422
|
borderWidth: 1
|
|
7423
|
-
},
|
|
7424
|
-
t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, sn(t, g,
|
|
7423
|
+
}, b = s.leftForLtr(u, c) + c / 2, p = m + l / 2;
|
|
7424
|
+
t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, sn(t, g, b, p), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, sn(t, g, b, p);
|
|
7425
7425
|
} else {
|
|
7426
7426
|
t.lineWidth = T(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
|
|
7427
|
-
const g = s.leftForLtr(u, c),
|
|
7428
|
-
Object.values(
|
|
7427
|
+
const g = s.leftForLtr(u, c), b = s.leftForLtr(s.xPlus(u, 1), c - 2), p = Vt(a.borderRadius);
|
|
7428
|
+
Object.values(p).some((y) => y !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, je(t, {
|
|
7429
7429
|
x: g,
|
|
7430
|
-
y:
|
|
7430
|
+
y: m,
|
|
7431
7431
|
w: c,
|
|
7432
7432
|
h: l,
|
|
7433
|
-
radius:
|
|
7434
|
-
}), t.fill(), t.stroke(), t.fillStyle = a.backgroundColor, t.beginPath(),
|
|
7435
|
-
x:
|
|
7436
|
-
y:
|
|
7433
|
+
radius: p
|
|
7434
|
+
}), t.fill(), t.stroke(), t.fillStyle = a.backgroundColor, t.beginPath(), je(t, {
|
|
7435
|
+
x: b,
|
|
7436
|
+
y: m + 1,
|
|
7437
7437
|
w: c - 2,
|
|
7438
7438
|
h: l - 2,
|
|
7439
|
-
radius:
|
|
7440
|
-
}), t.fill()) : (t.fillStyle = o.multiKeyBackground, t.fillRect(g,
|
|
7439
|
+
radius: p
|
|
7440
|
+
}), t.fill()) : (t.fillStyle = o.multiKeyBackground, t.fillRect(g, m, c, l), t.strokeRect(g, m, c, l), t.fillStyle = a.backgroundColor, t.fillRect(b, m + 1, c - 2, l - 2));
|
|
7441
7441
|
}
|
|
7442
7442
|
t.fillStyle = this.labelTextColors[n];
|
|
7443
7443
|
}
|
|
7444
7444
|
drawBody(t, e, n) {
|
|
7445
7445
|
const { body: s } = this, { bodySpacing: o, bodyAlign: a, displayColors: r, boxHeight: l, boxWidth: c, boxPadding: h } = n, d = X(n.bodyFont);
|
|
7446
7446
|
let u = d.lineHeight, f = 0;
|
|
7447
|
-
const
|
|
7448
|
-
e.fillText(
|
|
7449
|
-
},
|
|
7450
|
-
let
|
|
7451
|
-
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = ri(this,
|
|
7452
|
-
for (
|
|
7453
|
-
g(x[
|
|
7454
|
-
R(
|
|
7447
|
+
const m = te(n.rtl, this.x, this.width), g = function(S) {
|
|
7448
|
+
e.fillText(S, m.x(t.x + f), t.y + u / 2), t.y += u + o;
|
|
7449
|
+
}, b = m.textAlign(a);
|
|
7450
|
+
let p, y, x, _, v, w, M;
|
|
7451
|
+
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = ri(this, b, n), e.fillStyle = n.bodyColor, R(this.beforeBody, g), f = r && b !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0, _ = 0, w = s.length; _ < w; ++_) {
|
|
7452
|
+
for (p = s[_], y = this.labelTextColors[_], e.fillStyle = y, R(p.before, g), x = p.lines, r && x.length && (this._drawColorBox(e, t, _, m, n), u = Math.max(d.lineHeight, l)), v = 0, M = x.length; v < M; ++v)
|
|
7453
|
+
g(x[v]), u = d.lineHeight;
|
|
7454
|
+
R(p.after, g);
|
|
7455
7455
|
}
|
|
7456
7456
|
f = 0, u = d.lineHeight, R(this.afterBody, g), t.y -= o;
|
|
7457
7457
|
}
|
|
@@ -7465,13 +7465,13 @@ class cn extends ht {
|
|
|
7465
7465
|
}
|
|
7466
7466
|
}
|
|
7467
7467
|
drawBackground(t, e, n, s) {
|
|
7468
|
-
const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: h } = n, { topLeft: d, topRight: u, bottomLeft: f, bottomRight:
|
|
7469
|
-
e.fillStyle = s.backgroundColor, e.strokeStyle = s.borderColor, e.lineWidth = s.borderWidth, e.beginPath(), e.moveTo(r + d, l), a === "top" && this.drawCaret(t, e, n, s), e.lineTo(r + c - u, l), e.quadraticCurveTo(r + c, l, r + c, l + u), a === "center" && o === "right" && this.drawCaret(t, e, n, s), e.lineTo(r + c, l + h -
|
|
7468
|
+
const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: h } = n, { topLeft: d, topRight: u, bottomLeft: f, bottomRight: m } = Vt(s.cornerRadius);
|
|
7469
|
+
e.fillStyle = s.backgroundColor, e.strokeStyle = s.borderColor, e.lineWidth = s.borderWidth, e.beginPath(), e.moveTo(r + d, l), a === "top" && this.drawCaret(t, e, n, s), e.lineTo(r + c - u, l), e.quadraticCurveTo(r + c, l, r + c, l + u), a === "center" && o === "right" && this.drawCaret(t, e, n, s), e.lineTo(r + c, l + h - m), e.quadraticCurveTo(r + c, l + h, r + c - m, l + h), a === "bottom" && this.drawCaret(t, e, n, s), e.lineTo(r + f, l + h), e.quadraticCurveTo(r, l + h, r, l + h - f), a === "center" && o === "left" && this.drawCaret(t, e, n, s), e.lineTo(r, l + d), e.quadraticCurveTo(r, l, r + d, l), e.closePath(), e.fill(), s.borderWidth > 0 && e.stroke();
|
|
7470
7470
|
}
|
|
7471
7471
|
_updateAnimationTarget(t) {
|
|
7472
7472
|
const e = this.chart, n = this.$animations, s = n && n.x, o = n && n.y;
|
|
7473
7473
|
if (s || o) {
|
|
7474
|
-
const a =
|
|
7474
|
+
const a = Te[t.position].call(this, this._active, this._eventPosition);
|
|
7475
7475
|
if (!a)
|
|
7476
7476
|
return;
|
|
7477
7477
|
const r = this._size = $s(this, t), l = Object.assign({}, a, this._size), c = Us(e, t, l), h = Ys(t, l, c, e);
|
|
@@ -7534,15 +7534,15 @@ class cn extends ht {
|
|
|
7534
7534
|
return o.reverse && a.reverse(), a;
|
|
7535
7535
|
}
|
|
7536
7536
|
_positionChanged(t, e) {
|
|
7537
|
-
const { caretX: n, caretY: s, options: o } = this, a =
|
|
7537
|
+
const { caretX: n, caretY: s, options: o } = this, a = Te[o.position].call(this, t, e);
|
|
7538
7538
|
return a !== !1 && (n !== a.x || s !== a.y);
|
|
7539
7539
|
}
|
|
7540
7540
|
}
|
|
7541
|
-
k(cn, "positioners",
|
|
7542
|
-
var
|
|
7541
|
+
k(cn, "positioners", Te);
|
|
7542
|
+
var fe = {
|
|
7543
7543
|
id: "tooltip",
|
|
7544
7544
|
_element: cn,
|
|
7545
|
-
positioners:
|
|
7545
|
+
positioners: Te,
|
|
7546
7546
|
afterInit(i, t, e) {
|
|
7547
7547
|
e && (i.tooltip = new cn({
|
|
7548
7548
|
chart: i,
|
|
@@ -7671,7 +7671,7 @@ function qs(i) {
|
|
|
7671
7671
|
const t = this.getLabels();
|
|
7672
7672
|
return i >= 0 && i < t.length ? t[i] : i;
|
|
7673
7673
|
}
|
|
7674
|
-
class se extends
|
|
7674
|
+
class se extends he {
|
|
7675
7675
|
constructor(t) {
|
|
7676
7676
|
super(t), this._startValue = void 0, this._valueRange = 0, this._addedLabels = [];
|
|
7677
7677
|
}
|
|
@@ -7732,42 +7732,42 @@ k(se, "id", "category"), k(se, "defaults", {
|
|
|
7732
7732
|
}
|
|
7733
7733
|
});
|
|
7734
7734
|
function ad(i, t) {
|
|
7735
|
-
const e = [], { bounds: s, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1,
|
|
7736
|
-
let
|
|
7737
|
-
if (
|
|
7735
|
+
const e = [], { bounds: s, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, m = h - 1, { min: g, max: b } = t, p = !O(a), y = !O(r), x = !O(c), _ = (b - g) / (d + 1);
|
|
7736
|
+
let v = Yn((b - g) / m / f) * f, w, M, S, A;
|
|
7737
|
+
if (v < 1e-14 && !p && !y)
|
|
7738
7738
|
return [
|
|
7739
7739
|
{
|
|
7740
7740
|
value: g
|
|
7741
7741
|
},
|
|
7742
7742
|
{
|
|
7743
|
-
value:
|
|
7743
|
+
value: b
|
|
7744
7744
|
}
|
|
7745
7745
|
];
|
|
7746
|
-
A = Math.ceil(
|
|
7747
|
-
const C = Math.max(Xn(
|
|
7748
|
-
|
|
7746
|
+
A = Math.ceil(b / v) - Math.floor(g / v), A > m && (v = Yn(A * v / m / f) * f), O(l) || (w = Math.pow(10, l), v = Math.ceil(v * w) / w), s === "ticks" ? (M = Math.floor(g / v) * v, S = Math.ceil(b / v) * v) : (M = g, S = b), p && y && o && fr((r - a) / o, v / 1e3) ? (A = Math.round(Math.min((r - a) / v, h)), v = (r - a) / A, M = a, S = r) : x ? (M = p ? a : M, S = y ? r : S, A = c - 1, v = (S - M) / A) : (A = (S - M) / v, Fe(A, Math.round(A), v / 1e3) ? A = Math.round(A) : A = Math.ceil(A));
|
|
7747
|
+
const C = Math.max(Xn(v), Xn(M));
|
|
7748
|
+
w = Math.pow(10, O(l) ? C : l), M = Math.round(M * w) / w, S = Math.round(S * w) / w;
|
|
7749
7749
|
let P = 0;
|
|
7750
|
-
for (
|
|
7750
|
+
for (p && (u && M !== a ? (e.push({
|
|
7751
7751
|
value: a
|
|
7752
|
-
}), M < a && P++,
|
|
7753
|
-
const D = Math.round((M + P *
|
|
7752
|
+
}), M < a && P++, Fe(Math.round((M + P * v) * w) / w, a, Ks(a, _, i)) && P++) : M < a && P++); P < A; ++P) {
|
|
7753
|
+
const D = Math.round((M + P * v) * w) / w;
|
|
7754
7754
|
if (y && D > r)
|
|
7755
7755
|
break;
|
|
7756
7756
|
e.push({
|
|
7757
7757
|
value: D
|
|
7758
7758
|
});
|
|
7759
7759
|
}
|
|
7760
|
-
return y && u &&
|
|
7760
|
+
return y && u && S !== r ? e.length && Fe(e[e.length - 1].value, r, Ks(r, _, i)) ? e[e.length - 1].value = r : e.push({
|
|
7761
7761
|
value: r
|
|
7762
|
-
}) : (!y ||
|
|
7763
|
-
value:
|
|
7762
|
+
}) : (!y || S === r) && e.push({
|
|
7763
|
+
value: S
|
|
7764
7764
|
}), e;
|
|
7765
7765
|
}
|
|
7766
7766
|
function Ks(i, t, { horizontal: e, minRotation: n }) {
|
|
7767
7767
|
const s = gt(n), o = (e ? Math.sin(s) : Math.cos(s)) || 1e-3, a = 0.75 * t * ("" + i).length;
|
|
7768
7768
|
return Math.min(t / o, a);
|
|
7769
7769
|
}
|
|
7770
|
-
class hn extends
|
|
7770
|
+
class hn extends he {
|
|
7771
7771
|
constructor(t) {
|
|
7772
7772
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
|
|
7773
7773
|
}
|
|
@@ -7889,8 +7889,8 @@ function ld(i) {
|
|
|
7889
7889
|
s[l] = c.padding;
|
|
7890
7890
|
const h = i.getPointPosition(l, i.drawingArea + s[l], r), d = X(c.font), u = rd(i.ctx, d, i._pointLabels[l]);
|
|
7891
7891
|
n[l] = u;
|
|
7892
|
-
const f = ot(i.getIndexAngle(l) + r),
|
|
7893
|
-
cd(e, t, f, g,
|
|
7892
|
+
const f = ot(i.getIndexAngle(l) + r), m = Math.round(Sn(f)), g = Zs(m, h.x, u.w, 0, 180), b = Zs(m, h.y, u.h, 90, 270);
|
|
7893
|
+
cd(e, t, f, g, b);
|
|
7894
7894
|
}
|
|
7895
7895
|
i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = ud(i, n, s);
|
|
7896
7896
|
}
|
|
@@ -7958,7 +7958,7 @@ function md(i, t, e) {
|
|
|
7958
7958
|
const l = Vt(t.borderRadius), c = K(t.backdropPadding);
|
|
7959
7959
|
i.fillStyle = r;
|
|
7960
7960
|
const h = n - c.left, d = s - c.top, u = o - n + c.width, f = a - s + c.height;
|
|
7961
|
-
Object.values(l).some((
|
|
7961
|
+
Object.values(l).some((m) => m !== 0) ? (i.beginPath(), je(i, {
|
|
7962
7962
|
x: h,
|
|
7963
7963
|
y: d,
|
|
7964
7964
|
w: u,
|
|
@@ -8005,7 +8005,7 @@ function xd(i, t, e) {
|
|
|
8005
8005
|
type: "pointLabel"
|
|
8006
8006
|
});
|
|
8007
8007
|
}
|
|
8008
|
-
class
|
|
8008
|
+
class Oe extends hn {
|
|
8009
8009
|
constructor(t) {
|
|
8010
8010
|
super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
|
|
8011
8011
|
}
|
|
@@ -8095,8 +8095,8 @@ class Ie extends hn {
|
|
|
8095
8095
|
if (e.pointLabels.display && bd(this, a), s.display && this.ticks.forEach((h, d) => {
|
|
8096
8096
|
if (d !== 0) {
|
|
8097
8097
|
l = this.getDistanceFromCenterForValue(h.value);
|
|
8098
|
-
const u = this.getContext(d), f = s.setContext(u),
|
|
8099
|
-
yd(this, f, l, a,
|
|
8098
|
+
const u = this.getContext(d), f = s.setContext(u), m = o.setContext(u);
|
|
8099
|
+
yd(this, f, l, a, m);
|
|
8100
8100
|
}
|
|
8101
8101
|
}), n.display) {
|
|
8102
8102
|
for (t.save(), r = a - 1; r >= 0; r--) {
|
|
@@ -8133,7 +8133,7 @@ class Ie extends hn {
|
|
|
8133
8133
|
drawTitle() {
|
|
8134
8134
|
}
|
|
8135
8135
|
}
|
|
8136
|
-
k(
|
|
8136
|
+
k(Oe, "id", "radialLinear"), k(Oe, "defaults", {
|
|
8137
8137
|
display: !0,
|
|
8138
8138
|
animate: !0,
|
|
8139
8139
|
position: "chartArea",
|
|
@@ -8164,11 +8164,11 @@ k(Ie, "id", "radialLinear"), k(Ie, "defaults", {
|
|
|
8164
8164
|
padding: 5,
|
|
8165
8165
|
centerPointLabels: !1
|
|
8166
8166
|
}
|
|
8167
|
-
}), k(
|
|
8167
|
+
}), k(Oe, "defaultRoutes", {
|
|
8168
8168
|
"angleLines.color": "borderColor",
|
|
8169
8169
|
"pointLabels.color": "color",
|
|
8170
8170
|
"ticks.color": "color"
|
|
8171
|
-
}), k(
|
|
8171
|
+
}), k(Oe, "descriptors", {
|
|
8172
8172
|
angleLines: {
|
|
8173
8173
|
_fallback: "grid"
|
|
8174
8174
|
}
|
|
@@ -8227,7 +8227,7 @@ function Qs(i, t) {
|
|
|
8227
8227
|
return null;
|
|
8228
8228
|
const e = i._adapter, { parser: n, round: s, isoWeekday: o } = i._parseOpts;
|
|
8229
8229
|
let a = t;
|
|
8230
|
-
return typeof n == "function" && (a = n(a)), q(a) || (a = typeof n == "string" ? e.parse(a, n) : e.parse(a)), a === null ? null : (s && (a = s === "week" && (
|
|
8230
|
+
return typeof n == "function" && (a = n(a)), q(a) || (a = typeof n == "string" ? e.parse(a, n) : e.parse(a)), a === null ? null : (s && (a = s === "week" && (Ne(o) || o === !0) ? e.startOf(a, "isoWeek", o) : e.startOf(a, s)), +a);
|
|
8231
8231
|
}
|
|
8232
8232
|
function to(i, t, e, n) {
|
|
8233
8233
|
const s = nt.length;
|
|
@@ -8276,7 +8276,7 @@ function io(i, t, e) {
|
|
|
8276
8276
|
});
|
|
8277
8277
|
return o === 0 || !e ? n : Sd(i, n, s, e);
|
|
8278
8278
|
}
|
|
8279
|
-
class Pi extends
|
|
8279
|
+
class Pi extends he {
|
|
8280
8280
|
constructor(t) {
|
|
8281
8281
|
super(t), this._cache = {
|
|
8282
8282
|
data: [],
|
|
@@ -8286,7 +8286,7 @@ class Pi extends de {
|
|
|
8286
8286
|
}
|
|
8287
8287
|
init(t, e = {}) {
|
|
8288
8288
|
const n = t.time || (t.time = {}), s = this._adapter = new ql._date(t.adapters.date);
|
|
8289
|
-
s.init(e),
|
|
8289
|
+
s.init(e), Ie(n.displayFormats, s.formats()), this._parseOpts = {
|
|
8290
8290
|
parser: n.parser,
|
|
8291
8291
|
round: n.round,
|
|
8292
8292
|
isoWeekday: n.isoWeekday
|
|
@@ -8338,14 +8338,14 @@ class Pi extends de {
|
|
|
8338
8338
|
};
|
|
8339
8339
|
}
|
|
8340
8340
|
_generate() {
|
|
8341
|
-
const t = this._adapter, e = this.min, n = this.max, s = this.options, o = s.time, a = o.unit || to(o.minUnit, e, n, this._getLabelCapacity(e)), r = L(s.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, c =
|
|
8341
|
+
const t = this._adapter, e = this.min, n = this.max, s = this.options, o = s.time, a = o.unit || to(o.minUnit, e, n, this._getLabelCapacity(e)), r = L(s.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, c = Ne(l) || l === !0, h = {};
|
|
8342
8342
|
let d = e, u, f;
|
|
8343
8343
|
if (c && (d = +t.startOf(d, "isoWeek", l)), d = +t.startOf(d, c ? "day" : a), t.diff(n, e, a) > 1e5 * r)
|
|
8344
8344
|
throw new Error(e + " and " + n + " are too far apart with stepSize of " + r + " " + a);
|
|
8345
|
-
const
|
|
8345
|
+
const m = s.ticks.source === "data" && this.getDataTimestamps();
|
|
8346
8346
|
for (u = d, f = 0; u < n; u = +t.add(u, r, a), f++)
|
|
8347
|
-
eo(h, u,
|
|
8348
|
-
return (u === n || s.bounds === "ticks" || f === 1) && eo(h, u,
|
|
8347
|
+
eo(h, u, m);
|
|
8348
|
+
return (u === n || s.bounds === "ticks" || f === 1) && eo(h, u, m), Object.keys(h).sort(Js).map((g) => +g);
|
|
8349
8349
|
}
|
|
8350
8350
|
getLabelForValue(t) {
|
|
8351
8351
|
const e = this._adapter, n = this.options.time;
|
|
@@ -8568,10 +8568,10 @@ const Ad = Ft({
|
|
|
8568
8568
|
const o = () => {
|
|
8569
8569
|
if (!n.value)
|
|
8570
8570
|
return;
|
|
8571
|
-
const { type: l, data: c, options: h, plugins: d, datasetIdKey: u } = i, f = Pd(c, u),
|
|
8571
|
+
const { type: l, data: c, options: h, plugins: d, datasetIdKey: u } = i, f = Pd(c, u), m = Md(f, c);
|
|
8572
8572
|
s.value = new Ct(n.value, {
|
|
8573
8573
|
type: l,
|
|
8574
|
-
data:
|
|
8574
|
+
data: m,
|
|
8575
8575
|
options: {
|
|
8576
8576
|
...h
|
|
8577
8577
|
},
|
|
@@ -8588,19 +8588,19 @@ const Ad = Ft({
|
|
|
8588
8588
|
() => i.data
|
|
8589
8589
|
], (l, c) => {
|
|
8590
8590
|
let [h, d] = l, [u, f] = c;
|
|
8591
|
-
const
|
|
8592
|
-
if (!
|
|
8591
|
+
const m = Ji(s.value);
|
|
8592
|
+
if (!m)
|
|
8593
8593
|
return;
|
|
8594
8594
|
let g = !1;
|
|
8595
8595
|
if (h) {
|
|
8596
|
-
const
|
|
8597
|
-
|
|
8596
|
+
const b = Jt(h), p = Jt(u);
|
|
8597
|
+
b && b !== p && (Cd(m, b), g = !0);
|
|
8598
8598
|
}
|
|
8599
8599
|
if (d) {
|
|
8600
|
-
const
|
|
8601
|
-
|
|
8600
|
+
const b = Jt(d.labels), p = Jt(f.labels), y = Jt(d.datasets), x = Jt(f.datasets);
|
|
8601
|
+
b !== p && (da(m.config.data, b), g = !0), y && y !== x && (ua(m.config.data, y, i.datasetIdKey), g = !0);
|
|
8602
8602
|
}
|
|
8603
|
-
g && r(
|
|
8603
|
+
g && r(m);
|
|
8604
8604
|
}, {
|
|
8605
8605
|
deep: !0
|
|
8606
8606
|
}), () => mo("canvas", {
|
|
@@ -8608,7 +8608,7 @@ const Ad = Ft({
|
|
|
8608
8608
|
});
|
|
8609
8609
|
}
|
|
8610
8610
|
});
|
|
8611
|
-
function
|
|
8611
|
+
function Xe(i, t) {
|
|
8612
8612
|
return Ct.register(t), Ft({
|
|
8613
8613
|
props: ha,
|
|
8614
8614
|
setup(e, n) {
|
|
@@ -8627,14 +8627,14 @@ function Ge(i, t) {
|
|
|
8627
8627
|
}
|
|
8628
8628
|
});
|
|
8629
8629
|
}
|
|
8630
|
-
const fa = /* @__PURE__ */
|
|
8630
|
+
const fa = /* @__PURE__ */ Xe("bar", fi), Dd = /* @__PURE__ */ Xe("doughnut", De), Ld = /* @__PURE__ */ Xe("line", pi), Td = /* @__PURE__ */ Xe("radar", mi), Od = /* @__PURE__ */ Xe("bubble", gi);
|
|
8631
8631
|
function Ii() {
|
|
8632
8632
|
function i(e, n = 50, s = 50) {
|
|
8633
8633
|
const o = document.createElement("canvas"), a = o.getContext("2d");
|
|
8634
8634
|
return a && (o.width = n, o.height = s, a.fillStyle = e, a.fillRect(0, 0, n, s)), o;
|
|
8635
8635
|
}
|
|
8636
8636
|
function t(e, n) {
|
|
8637
|
-
return n ?
|
|
8637
|
+
return (n ? e + n : e) % 6;
|
|
8638
8638
|
}
|
|
8639
8639
|
return {
|
|
8640
8640
|
getPatternCanvas: i,
|
|
@@ -8662,16 +8662,16 @@ function pa(i, t, e, n, s, o, a, r, l) {
|
|
|
8662
8662
|
const d = c.config.type === "doughnut" ? "column" : "row", u = Bi(i, d);
|
|
8663
8663
|
for (u.style.margin = "1.375rem 1.0625rem"; u.firstChild; )
|
|
8664
8664
|
u.firstChild.remove();
|
|
8665
|
-
c.options.plugins.legend.labels.generateLabels(c).forEach((
|
|
8666
|
-
const g = c.config.type === "doughnut",
|
|
8665
|
+
c.options.plugins.legend.labels.generateLabels(c).forEach((m) => {
|
|
8666
|
+
const g = c.config.type === "doughnut", b = g ? m.index : m.datasetIndex, p = Ri(c, t, b);
|
|
8667
8667
|
if (g) {
|
|
8668
|
-
const x =
|
|
8669
|
-
|
|
8668
|
+
const x = b + 1 === r;
|
|
8669
|
+
p.style.marginTop = "12px", x && (p.style.position = "relative");
|
|
8670
8670
|
} else
|
|
8671
|
-
|
|
8672
|
-
|
|
8671
|
+
p.style.marginRight = "10px";
|
|
8672
|
+
p.style.width = "max-content", p.style.cursor = "pointer";
|
|
8673
8673
|
let y;
|
|
8674
|
-
t.value ? y = ba(c,
|
|
8674
|
+
t.value ? y = ba(c, m, t, e, s.value, a.value) : y = ma(m, c, e, n.value, s.value, o.value, a.value), y.style.boxSizing = "border-box", p.appendChild(y), p.appendChild(Fi(m)), g && r && zd(l, r, b) && p.appendChild(Wd(l, r)), u.appendChild(p);
|
|
8675
8675
|
});
|
|
8676
8676
|
}
|
|
8677
8677
|
}];
|
|
@@ -8730,7 +8730,7 @@ function Fi(i) {
|
|
|
8730
8730
|
}
|
|
8731
8731
|
function ya(i, t) {
|
|
8732
8732
|
const e = document.createElement("div");
|
|
8733
|
-
return t !== "doughnut" && (e.style.background = "rgba(0, 0, 0, 0.1)", e.style.borderColor = i.strokeStyle, e.style.borderWidth = Rn), e.style.borderRadius = "5px", e.style.borderStyle = "solid", e.style.display = "flex", e.style.justifyContent = "center", e.style.alignItems = "center", e.style.
|
|
8733
|
+
return t !== "doughnut" && (e.style.background = "rgba(0, 0, 0, 0.1)", e.style.borderColor = i.strokeStyle, e.style.borderWidth = Rn), e.style.borderRadius = "5px", e.style.borderStyle = "solid", e.style.display = "flex", e.style.justifyContent = "center", e.style.alignItems = "center", e.style.minWidth = Ai, e.style.marginRight = ga, e.style.minHeight = Ai, e;
|
|
8734
8734
|
}
|
|
8735
8735
|
function Vd(i) {
|
|
8736
8736
|
const t = document.createElement("div");
|
|
@@ -8745,8 +8745,8 @@ function Ri(i, t, e) {
|
|
|
8745
8745
|
function jd(i, t, e, n) {
|
|
8746
8746
|
let s = "#fff", o = "#666";
|
|
8747
8747
|
i && (s = oo(t.strokeStyle) ? n : t.strokeStyle, o = oo(t.strokeStyle) ? n : t.strokeStyle, e.setAttribute("checked", "" + i)), e.setAttribute("class", "mc-checkbox__input"), e.setAttribute("style", `background-color: ${s};
|
|
8748
|
-
width: ${Ai};
|
|
8749
|
-
height: ${Ai};
|
|
8748
|
+
min-width: ${Ai};
|
|
8749
|
+
min-height: ${Ai};
|
|
8750
8750
|
margin-right: ${ga};
|
|
8751
8751
|
border-color: ${o};`);
|
|
8752
8752
|
}
|
|
@@ -8796,7 +8796,7 @@ function Bi(i, t) {
|
|
|
8796
8796
|
function oo(i) {
|
|
8797
8797
|
return i === "#00000000";
|
|
8798
8798
|
}
|
|
8799
|
-
function
|
|
8799
|
+
function Ge(i, t) {
|
|
8800
8800
|
const e = Math.round(Math.min(Math.max(t || 1, 0), 1) * 255);
|
|
8801
8801
|
return i + e.toString(16).toUpperCase();
|
|
8802
8802
|
}
|
|
@@ -8806,58 +8806,58 @@ function Ud() {
|
|
|
8806
8806
|
dataSetIndex: -1,
|
|
8807
8807
|
columnIndex: -1
|
|
8808
8808
|
});
|
|
8809
|
-
function n(g,
|
|
8810
|
-
return pa(g,
|
|
8809
|
+
function n(g, b, p, y, x, _) {
|
|
8810
|
+
return pa(g, b, e, p, y, x, _);
|
|
8811
8811
|
}
|
|
8812
8812
|
function s() {
|
|
8813
8813
|
i.value = 4, i.value = 3;
|
|
8814
8814
|
}
|
|
8815
|
-
function o(g,
|
|
8816
|
-
const
|
|
8817
|
-
return g.map((
|
|
8818
|
-
borderColor: function(
|
|
8819
|
-
return
|
|
8815
|
+
function o(g, b, p, y, x, _) {
|
|
8816
|
+
const v = i.value;
|
|
8817
|
+
return g.map((w, M) => ({
|
|
8818
|
+
borderColor: function(S) {
|
|
8819
|
+
return p ? "#00000000" : r(M, S.index, y, _);
|
|
8820
8820
|
},
|
|
8821
|
-
backgroundColor: function(
|
|
8822
|
-
return l(M,
|
|
8821
|
+
backgroundColor: function(S) {
|
|
8822
|
+
return l(M, S.index, p, y, x, _);
|
|
8823
8823
|
},
|
|
8824
8824
|
borderWidth: function() {
|
|
8825
|
-
return
|
|
8825
|
+
return p ? 1 : v;
|
|
8826
8826
|
},
|
|
8827
|
-
data:
|
|
8828
|
-
label:
|
|
8829
|
-
stack: `Stack ${
|
|
8827
|
+
data: w.data,
|
|
8828
|
+
label: w.label,
|
|
8829
|
+
stack: `Stack ${b ? w.stack : M}`
|
|
8830
8830
|
}));
|
|
8831
8831
|
}
|
|
8832
|
-
function a(g,
|
|
8833
|
-
return o([g,
|
|
8832
|
+
function a(g, b, p, y, x) {
|
|
8833
|
+
return o([g, b], !1, x, p, y);
|
|
8834
8834
|
}
|
|
8835
|
-
function r(g,
|
|
8835
|
+
function r(g, b, p, y) {
|
|
8836
8836
|
const x = Ki(g, y);
|
|
8837
|
-
return u(g,
|
|
8837
|
+
return u(g, b) ? p[x] : Ge(p[x], 0.2);
|
|
8838
8838
|
}
|
|
8839
|
-
function l(g,
|
|
8840
|
-
const
|
|
8841
|
-
return u(g,
|
|
8839
|
+
function l(g, b, p, y, x, _) {
|
|
8840
|
+
const v = Ki(g, _);
|
|
8841
|
+
return u(g, b) ? x[v](!1, y[v], p) : x[v](!0, y[v], p);
|
|
8842
8842
|
}
|
|
8843
8843
|
function c() {
|
|
8844
8844
|
return e.dataSetIndex < 0;
|
|
8845
8845
|
}
|
|
8846
|
-
function h(g,
|
|
8847
|
-
return e.dataSetIndex === g && e.columnIndex ===
|
|
8846
|
+
function h(g, b) {
|
|
8847
|
+
return e.dataSetIndex === g && e.columnIndex === b;
|
|
8848
8848
|
}
|
|
8849
8849
|
function d(g) {
|
|
8850
8850
|
return e.dataSetIndex === g && e.columnIndex < 0;
|
|
8851
8851
|
}
|
|
8852
|
-
function u(g,
|
|
8853
|
-
return c() || h(g,
|
|
8852
|
+
function u(g, b) {
|
|
8853
|
+
return c() || h(g, b) || d(g);
|
|
8854
8854
|
}
|
|
8855
8855
|
function f() {
|
|
8856
8856
|
e.dataSetIndex = -1, e.columnIndex = -1;
|
|
8857
8857
|
}
|
|
8858
|
-
function
|
|
8859
|
-
return (g,
|
|
8860
|
-
|
|
8858
|
+
function m() {
|
|
8859
|
+
return (g, b) => {
|
|
8860
|
+
b[0] !== void 0 ? (e.dataSetIndex = b[0].datasetIndex, e.columnIndex = b[0].index) : f();
|
|
8861
8861
|
};
|
|
8862
8862
|
}
|
|
8863
8863
|
return {
|
|
@@ -8865,7 +8865,7 @@ function Ud() {
|
|
|
8865
8865
|
reloadChart: s,
|
|
8866
8866
|
getDatasets: a,
|
|
8867
8867
|
getStackedDatasets: o,
|
|
8868
|
-
getOnHoverOptions:
|
|
8868
|
+
getOnHoverOptions: m,
|
|
8869
8869
|
getBorderColor: r,
|
|
8870
8870
|
getPattern: l,
|
|
8871
8871
|
privateGetHtmlLegendPlugin: n,
|
|
@@ -8875,7 +8875,7 @@ function Ud() {
|
|
|
8875
8875
|
};
|
|
8876
8876
|
}
|
|
8877
8877
|
const { getPatternCanvas: Yd } = Ii();
|
|
8878
|
-
class
|
|
8878
|
+
class ge {
|
|
8879
8879
|
constructor() {
|
|
8880
8880
|
k(this, "chartType", "");
|
|
8881
8881
|
k(this, "datasetIndex", 0);
|
|
@@ -8901,17 +8901,17 @@ class pe {
|
|
|
8901
8901
|
if (l.body) {
|
|
8902
8902
|
this.titleLines = l.title || [];
|
|
8903
8903
|
const f = l.body.map(this.getBody);
|
|
8904
|
-
let
|
|
8905
|
-
|
|
8906
|
-
const g = `<div style="${
|
|
8907
|
-
let
|
|
8904
|
+
let m = "background: white;";
|
|
8905
|
+
m += "border-bottom: 1px solid #CCCCCC;", m += "border-radius: 5px;", m += "padding: 10px 20px";
|
|
8906
|
+
const g = `<div style="${m}" class="tooltipTitle">`, b = this.chartType === "DOUGHNUT" ? [l.title[0].split("(")[0].trim()] : f[0];
|
|
8907
|
+
let p = "", y = "";
|
|
8908
8908
|
const x = (u = (d = (h = t.tooltip) == null ? void 0 : h.dataPoints[0]) == null ? void 0 : d.dataset) == null ? void 0 : u.type;
|
|
8909
|
-
this.chartType === "RADAR" || this.chartType === "LINE_CHART" ? (
|
|
8909
|
+
this.chartType === "RADAR" || this.chartType === "LINE_CHART" ? (p = this.createLegendStyle(t), y = this.createLegendInnerStyle(t)) : this.chartType === "BAR_CHART" || this.chartType === "DETAILS_BAR_CHART" || this.chartType === "DOUGHNUT" ? p = this.createPatternLegendStyle(t) : this.chartType === "MIXED_BAR_LINE_CHART" && (x === "bar" ? p = this.createPatternLegendStyle(t) : (p = this.createLegendStyle(t), y = this.createLegendInnerStyle(t))), this.addLegendToDom(
|
|
8910
8910
|
g,
|
|
8911
|
-
|
|
8911
|
+
p,
|
|
8912
8912
|
y,
|
|
8913
|
+
b,
|
|
8913
8914
|
m,
|
|
8914
|
-
p,
|
|
8915
8915
|
r,
|
|
8916
8916
|
s,
|
|
8917
8917
|
o,
|
|
@@ -8948,8 +8948,8 @@ class pe {
|
|
|
8948
8948
|
let d = t, u = `<div class="legendIcon" style="${e}">`;
|
|
8949
8949
|
const f = `<div style="${n}"></div>`;
|
|
8950
8950
|
u += `${f}</div>`;
|
|
8951
|
-
const
|
|
8952
|
-
d +=
|
|
8951
|
+
const m = this.setInnerHtmlToAdd(s, o, u);
|
|
8952
|
+
d += m;
|
|
8953
8953
|
const g = a == null ? void 0 : a.querySelector(".tooltipCtn");
|
|
8954
8954
|
(g == null ? void 0 : g.innerHTML) != null && (h ? this.setInnerHtmlAndPattern(g, d, r, l, c, h) : this.setInnerHtmlAndPattern(g, d, r, l, c));
|
|
8955
8955
|
}
|
|
@@ -8987,7 +8987,7 @@ class pe {
|
|
|
8987
8987
|
return t.lines;
|
|
8988
8988
|
}
|
|
8989
8989
|
}
|
|
8990
|
-
var
|
|
8990
|
+
var pe = /* @__PURE__ */ ((i) => (i.RADAR = "RADAR", i.BAR_CHART = "BAR_CHART", i.MIXED_BAR_LINE_CHART = "MIXED_BAR_LINE_CHART", i.DETAILS_BAR_CHART = "DETAILS_BAR_CHART", i.LINE_CHART = "LINE_CHART", i.DOUGHNUT = "DOUGHNUT", i))(pe || {});
|
|
8991
8991
|
function Xd(i, t = "#A274FF", e = !1) {
|
|
8992
8992
|
const n = document.createElement("canvas"), s = n.getContext("2d");
|
|
8993
8993
|
if (!s)
|
|
@@ -9084,7 +9084,7 @@ function Jd(i, t = "#095359", e = !1) {
|
|
|
9084
9084
|
const c = l.createPattern(n, "repeat");
|
|
9085
9085
|
return c ? (l.fillStyle = c, l.fillRect(0, 0, r.width, r.height), c) : new CanvasPattern();
|
|
9086
9086
|
}
|
|
9087
|
-
function
|
|
9087
|
+
function me() {
|
|
9088
9088
|
return {
|
|
9089
9089
|
patternsStandardList: [
|
|
9090
9090
|
Xd,
|
|
@@ -9246,27 +9246,27 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
|
|
|
9246
9246
|
setup(i) {
|
|
9247
9247
|
const t = i;
|
|
9248
9248
|
Ct.register(
|
|
9249
|
-
fe,
|
|
9250
|
-
ge,
|
|
9251
9249
|
ue,
|
|
9250
|
+
fe,
|
|
9251
|
+
de,
|
|
9252
9252
|
ee,
|
|
9253
9253
|
se,
|
|
9254
9254
|
oe
|
|
9255
9255
|
);
|
|
9256
|
-
const { colourSets: e, patternsStandardList: n } =
|
|
9256
|
+
const { colourSets: e, patternsStandardList: n } = me(), s = G(null), o = G(!1), a = F(() => t.newPatternsOrder.length !== n.length ? e[t.colourSet] : t.newPatternsOrder.map((C) => e[t.colourSet][C])), r = F(() => t.newPatternsOrder.length !== n.length ? n : t.newPatternsOrder.map((C) => n[C])), l = F(() => t.disableAccessibility), c = F(() => t.enableHoverFeature), {
|
|
9257
9257
|
onHoverIndex: h,
|
|
9258
9258
|
barChartRef: d,
|
|
9259
9259
|
reloadChart: u,
|
|
9260
9260
|
getOnHoverOptions: f,
|
|
9261
|
-
getStackedDatasets:
|
|
9261
|
+
getStackedDatasets: m,
|
|
9262
9262
|
privateGetHtmlLegendPlugin: g
|
|
9263
|
-
} = Ud(),
|
|
9264
|
-
const C = M(
|
|
9263
|
+
} = Ud(), b = F(() => {
|
|
9264
|
+
const C = M(_.value);
|
|
9265
9265
|
return x(), {
|
|
9266
9266
|
labels: C,
|
|
9267
|
-
datasets:
|
|
9267
|
+
datasets: m(
|
|
9268
9268
|
t.datasets.map((P, D) => ({
|
|
9269
|
-
data:
|
|
9269
|
+
data: v(D, _.value),
|
|
9270
9270
|
label: t.datasets[D].label,
|
|
9271
9271
|
stack: P.stack || 0
|
|
9272
9272
|
})),
|
|
@@ -9278,10 +9278,10 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
|
|
|
9278
9278
|
)
|
|
9279
9279
|
};
|
|
9280
9280
|
});
|
|
9281
|
-
let
|
|
9281
|
+
let p, y;
|
|
9282
9282
|
const x = () => {
|
|
9283
|
-
|
|
9284
|
-
},
|
|
9283
|
+
p = t.tooltipFirstLineLabel, y = t.tooltipSecondLineLabel;
|
|
9284
|
+
}, _ = F(() => {
|
|
9285
9285
|
const C = t.labels;
|
|
9286
9286
|
if (C.includes("other")) {
|
|
9287
9287
|
const P = C.indexOf("other");
|
|
@@ -9289,18 +9289,18 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
|
|
|
9289
9289
|
return P;
|
|
9290
9290
|
}
|
|
9291
9291
|
return null;
|
|
9292
|
-
}),
|
|
9292
|
+
}), v = (C, P, D = !1) => {
|
|
9293
9293
|
const H = Object.assign([], t.datasets[C].data);
|
|
9294
|
-
return P &&
|
|
9294
|
+
return P && _.value && H.splice(_.value, 1), H.map(
|
|
9295
9295
|
(U) => t.unit === "%" ? U.rate : U.amount
|
|
9296
9296
|
);
|
|
9297
|
-
},
|
|
9297
|
+
}, w = (C) => {
|
|
9298
9298
|
const P = C.tooltip.dataPoints[0].datasetIndex, D = C.tooltip.dataPoints[0].dataIndex, H = C.tooltip.body[0].lines[0].split(":")[1], U = t.datasets[P].data[D], I = U.rate ? parseFloat(H.replace(",", ".")).toFixed(2) + "% " : "", B = U.amountUnit ? U.amountUnit : "", N = U.amount ? tt(U.amount) : "";
|
|
9299
9299
|
return I + (I && N ? "/ " : "") + N + B;
|
|
9300
9300
|
}, M = (C) => {
|
|
9301
9301
|
const P = Object.assign([], t.labels);
|
|
9302
9302
|
return C && P.splice(C, 1), P.map((D) => D);
|
|
9303
|
-
},
|
|
9303
|
+
}, S = F(() => ({
|
|
9304
9304
|
// eslint-disable-next-line
|
|
9305
9305
|
onHover: t.enableHoverFeature ? f() : () => {
|
|
9306
9306
|
},
|
|
@@ -9329,12 +9329,12 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
|
|
|
9329
9329
|
external: function(C) {
|
|
9330
9330
|
var D;
|
|
9331
9331
|
const P = ((D = C.tooltip.dataPoints) == null ? void 0 : D[0].dataIndex) || 0;
|
|
9332
|
-
!t.labels[P] || t.labels[P] === "" || new
|
|
9332
|
+
!t.labels[P] || t.labels[P] === "" || new ge().createTooltip(
|
|
9333
9333
|
C,
|
|
9334
|
-
|
|
9334
|
+
w,
|
|
9335
9335
|
{
|
|
9336
|
-
chartType:
|
|
9337
|
-
firstLineLabel:
|
|
9336
|
+
chartType: pe.BAR_CHART,
|
|
9337
|
+
firstLineLabel: p,
|
|
9338
9338
|
secondLineLabel: y
|
|
9339
9339
|
},
|
|
9340
9340
|
a.value,
|
|
@@ -9381,19 +9381,19 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
|
|
|
9381
9381
|
u();
|
|
9382
9382
|
},
|
|
9383
9383
|
{ deep: !0 }
|
|
9384
|
-
), (C, P) => (lt(),
|
|
9384
|
+
), (C, P) => (lt(), ae("div", Qd, [
|
|
9385
9385
|
st("div", tu, [
|
|
9386
|
-
|
|
9386
|
+
b.value ? (lt(), re($t(fa), {
|
|
9387
9387
|
key: 0,
|
|
9388
9388
|
ref_key: "barChartRef",
|
|
9389
9389
|
ref: d,
|
|
9390
9390
|
id: i.chartId,
|
|
9391
|
-
data:
|
|
9392
|
-
options:
|
|
9391
|
+
data: b.value,
|
|
9392
|
+
options: S.value,
|
|
9393
9393
|
plugins: A.value,
|
|
9394
|
-
class:
|
|
9394
|
+
class: le(i.cssClasses),
|
|
9395
9395
|
style: Ut([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
|
|
9396
|
-
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) :
|
|
9396
|
+
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : ce("", !0)
|
|
9397
9397
|
]),
|
|
9398
9398
|
st("div", {
|
|
9399
9399
|
ref_key: "legendContainer",
|
|
@@ -9402,40 +9402,40 @@ const Qd = { class: "container" }, tu = { class: "main" }, eu = /* @__PURE__ */
|
|
|
9402
9402
|
]));
|
|
9403
9403
|
}
|
|
9404
9404
|
});
|
|
9405
|
-
const
|
|
9405
|
+
const be = (i, t) => {
|
|
9406
9406
|
const e = i.__vccOpts || i;
|
|
9407
9407
|
for (const [n, s] of t)
|
|
9408
9408
|
e[n] = s;
|
|
9409
9409
|
return e;
|
|
9410
|
-
}, fn = /* @__PURE__ */
|
|
9410
|
+
}, fn = /* @__PURE__ */ be(eu, [["__scopeId", "data-v-aaa6e255"]]);
|
|
9411
9411
|
fn.install = (i) => {
|
|
9412
9412
|
i.component("BarChart", fn);
|
|
9413
9413
|
};
|
|
9414
9414
|
function iu() {
|
|
9415
9415
|
const i = G(null), t = G(null), e = G(null);
|
|
9416
|
-
function n(h, d, u, f,
|
|
9416
|
+
function n(h, d, u, f, m, g, b, p) {
|
|
9417
9417
|
return pa(
|
|
9418
9418
|
h,
|
|
9419
9419
|
d,
|
|
9420
9420
|
t,
|
|
9421
9421
|
u,
|
|
9422
9422
|
f,
|
|
9423
|
+
m,
|
|
9423
9424
|
p,
|
|
9424
|
-
b,
|
|
9425
9425
|
g,
|
|
9426
|
-
|
|
9426
|
+
b
|
|
9427
9427
|
);
|
|
9428
9428
|
}
|
|
9429
9429
|
function s(h, d, u, f) {
|
|
9430
9430
|
return t.value !== null && f ? d.map(
|
|
9431
|
-
(
|
|
9431
|
+
(m, g) => t.value === g ? m(!1, h[g], u) : m(!0, h[g], u)
|
|
9432
9432
|
) : d.map(
|
|
9433
|
-
(
|
|
9433
|
+
(m, g) => m(!1, h[g], u)
|
|
9434
9434
|
);
|
|
9435
9435
|
}
|
|
9436
9436
|
function o(h, d) {
|
|
9437
9437
|
return t.value !== null && d ? h.map(
|
|
9438
|
-
(u, f) => t.value === f ? u :
|
|
9438
|
+
(u, f) => t.value === f ? u : Ge(u, 0.2)
|
|
9439
9439
|
) : h;
|
|
9440
9440
|
}
|
|
9441
9441
|
function a() {
|
|
@@ -9445,10 +9445,10 @@ function iu() {
|
|
|
9445
9445
|
}
|
|
9446
9446
|
const r = (h) => h.charAt(0).toUpperCase() + h.slice(1).toLowerCase();
|
|
9447
9447
|
function l(h, d, u, f) {
|
|
9448
|
-
let
|
|
9449
|
-
return h.length > u && (g = c(d, u),
|
|
9450
|
-
(
|
|
9451
|
-
g[
|
|
9448
|
+
let m = h.slice(0), g = d.slice(0);
|
|
9449
|
+
return h.length > u && (g = c(d, u), m = m.slice(0, u - 1), m.push(f)), m.map(
|
|
9450
|
+
(b, p) => `${r(b)} (${tt(
|
|
9451
|
+
g[p].rate
|
|
9452
9452
|
)} %)`
|
|
9453
9453
|
);
|
|
9454
9454
|
}
|
|
@@ -9457,7 +9457,7 @@ function iu() {
|
|
|
9457
9457
|
return h;
|
|
9458
9458
|
let u = h.slice(0);
|
|
9459
9459
|
return h.length > d && (u = u.slice(0, d), u[d - 1] = h.slice(d).reduce(
|
|
9460
|
-
(f,
|
|
9460
|
+
(f, m) => (f.rate += m.rate, f.value += m.value, f),
|
|
9461
9461
|
{
|
|
9462
9462
|
rate: h[d - 1].rate,
|
|
9463
9463
|
value: h[d - 1].value
|
|
@@ -9588,8 +9588,8 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
|
|
|
9588
9588
|
},
|
|
9589
9589
|
setup(i) {
|
|
9590
9590
|
const t = i;
|
|
9591
|
-
Ct.register(
|
|
9592
|
-
const { colourSets: e, patternsStandardList: n } =
|
|
9591
|
+
Ct.register(ue, fe, de, Qt);
|
|
9592
|
+
const { colourSets: e, patternsStandardList: n } = me(), {
|
|
9593
9593
|
onHoverIndex: s,
|
|
9594
9594
|
doughnutRef: o,
|
|
9595
9595
|
getBackgroundColor: a,
|
|
@@ -9598,7 +9598,7 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
|
|
|
9598
9598
|
groupDataAfterNthValue: c,
|
|
9599
9599
|
getDoughnutLabels: h,
|
|
9600
9600
|
getBorderColor: d
|
|
9601
|
-
} = iu(), u = G(!1), f = G(null),
|
|
9601
|
+
} = iu(), u = G(!1), f = G(null), m = F(() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((S) => e[t.colourSet][S])), g = F(() => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((S) => n[S])), b = F(() => ({
|
|
9602
9602
|
labels: h(
|
|
9603
9603
|
t.labels,
|
|
9604
9604
|
t.data,
|
|
@@ -9610,18 +9610,18 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
|
|
|
9610
9610
|
data: c(
|
|
9611
9611
|
t.data,
|
|
9612
9612
|
t.maxValues
|
|
9613
|
-
).map((
|
|
9613
|
+
).map((S) => S.rate),
|
|
9614
9614
|
backgroundColor: a(
|
|
9615
|
-
|
|
9615
|
+
m.value,
|
|
9616
9616
|
g.value,
|
|
9617
9617
|
t.disableAccessibility,
|
|
9618
9618
|
t.enableHoverFeature
|
|
9619
9619
|
),
|
|
9620
|
-
borderColor: d(
|
|
9620
|
+
borderColor: d(m.value, t.enableHoverFeature)
|
|
9621
9621
|
}
|
|
9622
9622
|
]
|
|
9623
|
-
})),
|
|
9624
|
-
const A =
|
|
9623
|
+
})), p = (S) => {
|
|
9624
|
+
const A = S.tooltip.dataPoints[0].dataIndex, C = c(
|
|
9625
9625
|
t.data,
|
|
9626
9626
|
t.maxValues
|
|
9627
9627
|
)[A], P = tt(C.rate), D = tt(C.value), H = C.unit || "";
|
|
@@ -9631,7 +9631,7 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
|
|
|
9631
9631
|
return t.labels.length <= 1 ? 0 : 12;
|
|
9632
9632
|
}
|
|
9633
9633
|
const x = F(() => {
|
|
9634
|
-
const
|
|
9634
|
+
const S = m.value, A = g.value;
|
|
9635
9635
|
return {
|
|
9636
9636
|
onHover: t.enableHoverFeature ? l() : () => {
|
|
9637
9637
|
},
|
|
@@ -9655,15 +9655,15 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
|
|
|
9655
9655
|
tooltip: {
|
|
9656
9656
|
enabled: !1,
|
|
9657
9657
|
external: function(C) {
|
|
9658
|
-
new
|
|
9658
|
+
new ge().createTooltip(
|
|
9659
9659
|
C,
|
|
9660
|
-
|
|
9660
|
+
p,
|
|
9661
9661
|
{
|
|
9662
|
-
chartType:
|
|
9662
|
+
chartType: pe.DOUGHNUT
|
|
9663
9663
|
},
|
|
9664
|
-
|
|
9664
|
+
S,
|
|
9665
9665
|
A,
|
|
9666
|
-
|
|
9666
|
+
v.value
|
|
9667
9667
|
);
|
|
9668
9668
|
}
|
|
9669
9669
|
}
|
|
@@ -9674,56 +9674,56 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
|
|
|
9674
9674
|
spacing: y(),
|
|
9675
9675
|
hoverOffset: 4
|
|
9676
9676
|
};
|
|
9677
|
-
}),
|
|
9677
|
+
}), _ = {
|
|
9678
9678
|
data: t.data,
|
|
9679
9679
|
labels: t.labels
|
|
9680
|
-
},
|
|
9680
|
+
}, v = F(() => t.disableAccessibility), w = F(() => t.enableHoverFeature), M = F(
|
|
9681
9681
|
() => r(
|
|
9682
9682
|
f,
|
|
9683
9683
|
u,
|
|
9684
|
-
|
|
9685
|
-
|
|
9684
|
+
v,
|
|
9685
|
+
m,
|
|
9686
9686
|
g,
|
|
9687
9687
|
t.maxValues,
|
|
9688
|
-
|
|
9689
|
-
|
|
9688
|
+
_,
|
|
9689
|
+
w
|
|
9690
9690
|
)
|
|
9691
9691
|
);
|
|
9692
9692
|
return po(() => {
|
|
9693
9693
|
a(
|
|
9694
|
-
|
|
9694
|
+
m.value,
|
|
9695
9695
|
g.value,
|
|
9696
9696
|
t.disableAccessibility,
|
|
9697
|
-
|
|
9697
|
+
w.value
|
|
9698
9698
|
);
|
|
9699
|
-
}), xi(s, (
|
|
9700
|
-
|
|
9701
|
-
|
|
9699
|
+
}), xi(s, (S, A) => {
|
|
9700
|
+
S !== A && w.value && a(
|
|
9701
|
+
m.value,
|
|
9702
9702
|
g.value,
|
|
9703
9703
|
t.disableAccessibility,
|
|
9704
|
-
|
|
9704
|
+
w.value
|
|
9705
9705
|
);
|
|
9706
|
-
}), xi(
|
|
9706
|
+
}), xi(v, () => {
|
|
9707
9707
|
a(
|
|
9708
|
-
|
|
9708
|
+
m.value,
|
|
9709
9709
|
g.value,
|
|
9710
9710
|
t.disableAccessibility,
|
|
9711
|
-
|
|
9711
|
+
w.value
|
|
9712
9712
|
);
|
|
9713
|
-
}), (
|
|
9713
|
+
}), (S, A) => (lt(), ae("div", nu, [
|
|
9714
9714
|
st("div", su, [
|
|
9715
|
-
|
|
9715
|
+
b.value ? (lt(), re($t(Dd), {
|
|
9716
9716
|
key: 0,
|
|
9717
9717
|
ref_key: "doughnutRef",
|
|
9718
9718
|
ref: o,
|
|
9719
9719
|
id: i.chartId,
|
|
9720
|
-
data:
|
|
9720
|
+
data: b.value,
|
|
9721
9721
|
options: x.value,
|
|
9722
9722
|
plugins: M.value,
|
|
9723
9723
|
"max-values": i.maxValues,
|
|
9724
|
-
class:
|
|
9724
|
+
class: le(i.cssClasses),
|
|
9725
9725
|
style: Ut([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
|
|
9726
|
-
}, null, 8, ["id", "data", "options", "plugins", "max-values", "class", "style"])) :
|
|
9726
|
+
}, null, 8, ["id", "data", "options", "plugins", "max-values", "class", "style"])) : ce("", !0)
|
|
9727
9727
|
]),
|
|
9728
9728
|
st("div", {
|
|
9729
9729
|
ref_key: "legendContainer",
|
|
@@ -9732,7 +9732,7 @@ const nu = { class: "container" }, su = { class: "main" }, ou = /* @__PURE__ */
|
|
|
9732
9732
|
]));
|
|
9733
9733
|
}
|
|
9734
9734
|
});
|
|
9735
|
-
const gn = /* @__PURE__ */
|
|
9735
|
+
const gn = /* @__PURE__ */ be(ou, [["__scopeId", "data-v-b0907849"]]);
|
|
9736
9736
|
gn.install = (i) => {
|
|
9737
9737
|
i.component("DoughnutChart", gn);
|
|
9738
9738
|
};
|
|
@@ -9870,72 +9870,69 @@ const au = { class: "container" }, ru = { class: "main" }, lu = /* @__PURE__ */
|
|
|
9870
9870
|
setup(i) {
|
|
9871
9871
|
const t = i;
|
|
9872
9872
|
Ct.register(
|
|
9873
|
-
fe,
|
|
9874
|
-
ge,
|
|
9875
9873
|
ue,
|
|
9874
|
+
fe,
|
|
9875
|
+
de,
|
|
9876
9876
|
Tt,
|
|
9877
9877
|
pt,
|
|
9878
9878
|
se,
|
|
9879
9879
|
oe
|
|
9880
9880
|
);
|
|
9881
|
-
const { colourSets: e, patternsStandardList: n } =
|
|
9882
|
-
() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((
|
|
9883
|
-
), r = t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((
|
|
9884
|
-
const
|
|
9885
|
-
return t.lines[
|
|
9886
|
-
}, c = F(() => t.tooltipFirstLineLabel), h = F(() => t.tooltipSecondLineLabel), d =
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
borderWidth: 2
|
|
9898
|
-
},
|
|
9899
|
-
{
|
|
9881
|
+
const { colourSets: e, patternsStandardList: n } = me(), s = G(null), o = G(!1), a = F(
|
|
9882
|
+
() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((p) => e[t.colourSet][p])
|
|
9883
|
+
), r = t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((p) => n[p]), l = (p) => {
|
|
9884
|
+
const y = p.tooltip.dataPoints[0].datasetIndex, x = p.tooltip.dataPoints[0].dataIndex, _ = t.lines[y].data[x].toFixed(2);
|
|
9885
|
+
return t.lines[y].unit ? _ + " " + t.lines[y].unit : _;
|
|
9886
|
+
}, c = F(() => t.tooltipFirstLineLabel), h = F(() => t.tooltipSecondLineLabel), d = (p) => {
|
|
9887
|
+
switch (p) {
|
|
9888
|
+
case 1:
|
|
9889
|
+
return "circle";
|
|
9890
|
+
default:
|
|
9891
|
+
return "rectRot";
|
|
9892
|
+
}
|
|
9893
|
+
}, u = F(() => ({
|
|
9894
|
+
labels: t.labels.map((p) => p),
|
|
9895
|
+
datasets: t.lines.map(
|
|
9896
|
+
(p, y) => ({
|
|
9900
9897
|
type: "line",
|
|
9901
|
-
borderColor: a.value[
|
|
9902
|
-
pointStyle:
|
|
9898
|
+
borderColor: a.value[y],
|
|
9899
|
+
pointStyle: d(y),
|
|
9903
9900
|
pointBackgroundColor: "#FFFFFF",
|
|
9904
9901
|
pointRadius: 5,
|
|
9905
|
-
label:
|
|
9906
|
-
data:
|
|
9902
|
+
label: p.label,
|
|
9903
|
+
data: p.data,
|
|
9907
9904
|
borderWidth: 2
|
|
9908
|
-
}
|
|
9909
|
-
|
|
9905
|
+
})
|
|
9906
|
+
)
|
|
9910
9907
|
}));
|
|
9911
|
-
function
|
|
9908
|
+
function f(p, y) {
|
|
9912
9909
|
return [
|
|
9913
9910
|
{
|
|
9914
9911
|
id: "htmlLegend",
|
|
9915
|
-
afterUpdate(
|
|
9916
|
-
const
|
|
9917
|
-
for (
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
const
|
|
9912
|
+
afterUpdate(x) {
|
|
9913
|
+
const _ = Bi(p, "column");
|
|
9914
|
+
for (_.style.display = "flex", _.style.flexDirection = "row", _.style.margin = "1.375rem 1.0625rem"; _.firstChild; )
|
|
9915
|
+
_.firstChild.remove();
|
|
9916
|
+
x.options.plugins.legend.labels.generateLabels(x).forEach((w) => {
|
|
9917
|
+
const M = Ri(
|
|
9918
|
+
x,
|
|
9921
9919
|
y,
|
|
9922
|
-
|
|
9923
|
-
_.datasetIndex
|
|
9920
|
+
w.datasetIndex
|
|
9924
9921
|
);
|
|
9925
|
-
let
|
|
9926
|
-
|
|
9922
|
+
let S;
|
|
9923
|
+
y.value ? S = m(x, w) : S = zn(w), S.style.boxSizing = "border-box", M.style.marginRight = "10px", M.appendChild(S), M.appendChild(Fi(w)), _.appendChild(M);
|
|
9927
9924
|
});
|
|
9928
9925
|
}
|
|
9929
9926
|
}
|
|
9930
9927
|
];
|
|
9931
9928
|
}
|
|
9932
|
-
function
|
|
9933
|
-
const
|
|
9934
|
-
return
|
|
9935
|
-
Ei(
|
|
9936
|
-
},
|
|
9929
|
+
function m(p, y) {
|
|
9930
|
+
const x = En(p, y, null);
|
|
9931
|
+
return x.onclick = (_) => {
|
|
9932
|
+
Ei(p, y.datasetIndex, o), _.stopPropagation();
|
|
9933
|
+
}, x;
|
|
9937
9934
|
}
|
|
9938
|
-
const
|
|
9935
|
+
const g = f(s, o), b = F(() => ({
|
|
9939
9936
|
responsive: !0,
|
|
9940
9937
|
maintainAspectRatio: !1,
|
|
9941
9938
|
plugins: {
|
|
@@ -9947,12 +9944,12 @@ const au = { class: "container" }, ru = { class: "main" }, lu = /* @__PURE__ */
|
|
|
9947
9944
|
},
|
|
9948
9945
|
tooltip: {
|
|
9949
9946
|
enabled: !1,
|
|
9950
|
-
external: function(
|
|
9951
|
-
new
|
|
9952
|
-
|
|
9947
|
+
external: function(p) {
|
|
9948
|
+
new ge().createTooltip(
|
|
9949
|
+
p,
|
|
9953
9950
|
l,
|
|
9954
9951
|
{
|
|
9955
|
-
chartType:
|
|
9952
|
+
chartType: pe.LINE_CHART,
|
|
9956
9953
|
firstLineLabel: c.value,
|
|
9957
9954
|
secondLineLabel: h.value
|
|
9958
9955
|
},
|
|
@@ -9985,26 +9982,26 @@ const au = { class: "container" }, ru = { class: "main" }, lu = /* @__PURE__ */
|
|
|
9985
9982
|
drawOnChartArea: !0
|
|
9986
9983
|
},
|
|
9987
9984
|
ticks: {
|
|
9988
|
-
callback: function(
|
|
9989
|
-
const
|
|
9990
|
-
return `${tt(
|
|
9985
|
+
callback: function(p) {
|
|
9986
|
+
const y = t.lines[0].unit;
|
|
9987
|
+
return `${tt(p)} ${y || ""}`;
|
|
9991
9988
|
}
|
|
9992
9989
|
}
|
|
9993
9990
|
}
|
|
9994
9991
|
}
|
|
9995
9992
|
}));
|
|
9996
|
-
return (
|
|
9993
|
+
return (p, y) => (lt(), ae("div", au, [
|
|
9997
9994
|
st("div", ru, [
|
|
9998
|
-
|
|
9995
|
+
u.value ? (lt(), re($t(Ld), {
|
|
9999
9996
|
key: 0,
|
|
10000
9997
|
ref: "lineChartRef",
|
|
10001
9998
|
id: i.chartId,
|
|
10002
|
-
data:
|
|
10003
|
-
options:
|
|
10004
|
-
plugins: $t(
|
|
10005
|
-
class:
|
|
9999
|
+
data: u.value,
|
|
10000
|
+
options: b.value,
|
|
10001
|
+
plugins: $t(g),
|
|
10002
|
+
class: le(i.cssClasses),
|
|
10006
10003
|
style: Ut([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
|
|
10007
|
-
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) :
|
|
10004
|
+
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : ce("", !0)
|
|
10008
10005
|
]),
|
|
10009
10006
|
st("div", {
|
|
10010
10007
|
ref_key: "legendContainer",
|
|
@@ -10013,7 +10010,7 @@ const au = { class: "container" }, ru = { class: "main" }, lu = /* @__PURE__ */
|
|
|
10013
10010
|
]));
|
|
10014
10011
|
}
|
|
10015
10012
|
});
|
|
10016
|
-
const pn = /* @__PURE__ */
|
|
10013
|
+
const pn = /* @__PURE__ */ be(lu, [["__scopeId", "data-v-8e74b12a"]]);
|
|
10017
10014
|
pn.install = (i) => {
|
|
10018
10015
|
i.component("LineChart", pn);
|
|
10019
10016
|
};
|
|
@@ -10026,10 +10023,10 @@ function cu(i, t) {
|
|
|
10026
10023
|
r < 0 || r > Math.PI ? h = -15 : h = 15, r > Math.PI / 4 && r < 3 * Math.PI / 4 && (h *= 3), (r < -Math.PI / 4 || r > 5 * Math.PI / 4) && (h *= 3, c = 0), (r > 11 * Math.PI / 8 || r < -3 * Math.PI / 8) && (e.textAlign = "center");
|
|
10027
10024
|
const d = l.y + h * (o.length - 1) / 2;
|
|
10028
10025
|
e.font = "12px Arial", o.forEach((u, f) => {
|
|
10029
|
-
const
|
|
10030
|
-
e.fillStyle =
|
|
10031
|
-
const g = l.x + c,
|
|
10032
|
-
e.fillText(u, g,
|
|
10026
|
+
const m = f === o.length - 1 ? hu(t)[a] : "#000000";
|
|
10027
|
+
e.fillStyle = m;
|
|
10028
|
+
const g = l.x + c, b = d + 15 * f;
|
|
10029
|
+
e.fillText(u, g, b);
|
|
10033
10030
|
});
|
|
10034
10031
|
}), e.restore());
|
|
10035
10032
|
}
|
|
@@ -10141,58 +10138,42 @@ const uu = { class: "container" }, fu = /* @__PURE__ */ Ft({
|
|
|
10141
10138
|
setup(i) {
|
|
10142
10139
|
const t = i;
|
|
10143
10140
|
Ct.register(
|
|
10144
|
-
fe,
|
|
10145
|
-
ge,
|
|
10146
10141
|
ue,
|
|
10147
|
-
|
|
10142
|
+
fe,
|
|
10143
|
+
de,
|
|
10144
|
+
Oe,
|
|
10148
10145
|
pt,
|
|
10149
10146
|
Tt,
|
|
10150
10147
|
jh
|
|
10151
10148
|
);
|
|
10152
|
-
const { colourSets: e, patternsStandardList: n } =
|
|
10153
|
-
() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((
|
|
10149
|
+
const { colourSets: e, patternsStandardList: n } = me(), s = F(
|
|
10150
|
+
() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((b) => e[t.colourSet][b])
|
|
10154
10151
|
), o = F(
|
|
10155
|
-
() => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((
|
|
10152
|
+
() => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((b) => n[b])
|
|
10156
10153
|
), a = F(() => ({
|
|
10157
|
-
labels:
|
|
10158
|
-
datasets:
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
pointBorderColor: s.value[1],
|
|
10181
|
-
pointBorderWidth: 2,
|
|
10182
|
-
borderWidth: 2,
|
|
10183
|
-
pointHitRadius: 55,
|
|
10184
|
-
pointRadius: 5,
|
|
10185
|
-
pointStyle: "rectRot",
|
|
10186
|
-
pointHoverBackgroundColor: s.value[1],
|
|
10187
|
-
pointHoverBorderColor: s.value[1],
|
|
10188
|
-
data: t.datasets[1].areaData.map(
|
|
10189
|
-
(g) => g.position
|
|
10190
|
-
)
|
|
10191
|
-
}
|
|
10192
|
-
]
|
|
10193
|
-
})), r = {
|
|
10194
|
-
onClick: (g, m, b) => {
|
|
10195
|
-
m[0] && _a(b, m[0].datasetIndex, c);
|
|
10154
|
+
labels: d(),
|
|
10155
|
+
datasets: r()
|
|
10156
|
+
}));
|
|
10157
|
+
function r() {
|
|
10158
|
+
return t.datasets.map((b, p) => ({
|
|
10159
|
+
label: b.label,
|
|
10160
|
+
backgroundColor: Ge(s.value[p], 0.1),
|
|
10161
|
+
borderColor: s.value[p],
|
|
10162
|
+
pointBackgroundColor: "#FFFFFF",
|
|
10163
|
+
pointBorderColor: s.value[p],
|
|
10164
|
+
pointBorderWidth: 2,
|
|
10165
|
+
borderWidth: 2,
|
|
10166
|
+
pointHitRadius: 55,
|
|
10167
|
+
pointRadius: 5,
|
|
10168
|
+
pointStyle: p % 2 === 0 ? "circle" : "rectRot",
|
|
10169
|
+
pointHoverBackgroundColor: s.value[p],
|
|
10170
|
+
pointHoverBorderColor: s.value[p],
|
|
10171
|
+
data: b.areaData.map((y) => y.position)
|
|
10172
|
+
}));
|
|
10173
|
+
}
|
|
10174
|
+
const l = {
|
|
10175
|
+
onClick: (b, p, y) => {
|
|
10176
|
+
p[0] && _a(y, p[0].datasetIndex, h);
|
|
10196
10177
|
},
|
|
10197
10178
|
plugins: {
|
|
10198
10179
|
htmlLegend: {
|
|
@@ -10210,11 +10191,11 @@ const uu = { class: "container" }, fu = /* @__PURE__ */ Ft({
|
|
|
10210
10191
|
tooltip: {
|
|
10211
10192
|
enabled: !1,
|
|
10212
10193
|
position: "nearest",
|
|
10213
|
-
external: function(
|
|
10214
|
-
new
|
|
10194
|
+
external: function(b) {
|
|
10195
|
+
new ge().createTooltip(
|
|
10196
|
+
b,
|
|
10215
10197
|
g,
|
|
10216
|
-
|
|
10217
|
-
{ chartType: me.RADAR },
|
|
10198
|
+
{ chartType: pe.RADAR },
|
|
10218
10199
|
s.value,
|
|
10219
10200
|
o.value,
|
|
10220
10201
|
t.disableAccessibility
|
|
@@ -10247,70 +10228,70 @@ const uu = { class: "container" }, fu = /* @__PURE__ */ Ft({
|
|
|
10247
10228
|
}
|
|
10248
10229
|
}
|
|
10249
10230
|
}
|
|
10250
|
-
},
|
|
10251
|
-
const
|
|
10252
|
-
t.datasets[0].areaData[
|
|
10253
|
-
)} ${t.datasets[0].areaData[
|
|
10254
|
-
return du(
|
|
10255
|
-
}),
|
|
10256
|
-
function
|
|
10257
|
-
const
|
|
10258
|
-
return
|
|
10259
|
-
Ei(
|
|
10260
|
-
},
|
|
10261
|
-
}
|
|
10262
|
-
const
|
|
10231
|
+
}, c = G(null), h = G(!1), d = () => t.labels.map((b, p) => {
|
|
10232
|
+
const y = t.datasets[0].areaData[p].value ? `${u(
|
|
10233
|
+
t.datasets[0].areaData[p].value + ""
|
|
10234
|
+
)} ${t.datasets[0].areaData[p].unit}` : "No Data";
|
|
10235
|
+
return du(b, y);
|
|
10236
|
+
}), u = (b) => tt(parseFloat(b));
|
|
10237
|
+
function f(b, p) {
|
|
10238
|
+
const y = En(b, p, null);
|
|
10239
|
+
return y.onclick = (x) => {
|
|
10240
|
+
Ei(b, p.datasetIndex, h), x.stopPropagation();
|
|
10241
|
+
}, y;
|
|
10242
|
+
}
|
|
10243
|
+
const m = [
|
|
10263
10244
|
{
|
|
10264
10245
|
id: "htmlLegend",
|
|
10265
|
-
afterUpdate(
|
|
10266
|
-
const
|
|
10267
|
-
for (;
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
const
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10246
|
+
afterUpdate(b) {
|
|
10247
|
+
const p = Bi(c, "row");
|
|
10248
|
+
for (; p.firstChild; )
|
|
10249
|
+
p.firstChild.remove();
|
|
10250
|
+
b.options.plugins.legend.labels.generateLabels(b).reverse().forEach((x) => {
|
|
10251
|
+
const _ = Ri(
|
|
10252
|
+
b,
|
|
10253
|
+
h,
|
|
10254
|
+
x.datasetIndex
|
|
10274
10255
|
);
|
|
10275
10256
|
let v;
|
|
10276
|
-
|
|
10257
|
+
_.style.marginRight = "0.625rem", h.value ? v = f(b, x) : v = zn(x, !0), _.appendChild(v), _.appendChild(Fi(x)), p.appendChild(_);
|
|
10277
10258
|
});
|
|
10278
10259
|
}
|
|
10279
10260
|
},
|
|
10280
10261
|
{
|
|
10281
10262
|
id: "radarLabelPlugin",
|
|
10282
|
-
beforeDraw(
|
|
10283
|
-
cu(
|
|
10263
|
+
beforeDraw(b) {
|
|
10264
|
+
cu(b, t);
|
|
10284
10265
|
}
|
|
10285
10266
|
}
|
|
10286
|
-
],
|
|
10287
|
-
const
|
|
10288
|
-
return
|
|
10267
|
+
], g = (b) => {
|
|
10268
|
+
const p = b.tooltip.dataPoints[0].datasetIndex, y = b.tooltip.dataPoints[0].dataIndex, x = t.datasets[p];
|
|
10269
|
+
return x.areaData[y].value.toFixed(2) + " " + x.areaData[y].unit;
|
|
10289
10270
|
};
|
|
10290
|
-
return (
|
|
10271
|
+
return (b, p) => (lt(), ae("div", uu, [
|
|
10291
10272
|
st("div", {
|
|
10292
10273
|
class: "main",
|
|
10293
10274
|
style: Ut({ height: i.height })
|
|
10294
10275
|
}, [
|
|
10295
|
-
a.value ? (lt(),
|
|
10276
|
+
a.value ? (lt(), re($t(Td), {
|
|
10296
10277
|
key: 0,
|
|
10297
10278
|
id: i.chartId,
|
|
10298
10279
|
data: a.value,
|
|
10299
|
-
options:
|
|
10300
|
-
plugins:
|
|
10301
|
-
class:
|
|
10280
|
+
options: l,
|
|
10281
|
+
plugins: m,
|
|
10282
|
+
class: le(i.cssClasses),
|
|
10302
10283
|
style: Ut([{ height: i.height, cursor: "pointer" }, i.styles])
|
|
10303
|
-
}, null, 8, ["id", "data", "class", "style"])) :
|
|
10284
|
+
}, null, 8, ["id", "data", "class", "style"])) : ce("", !0)
|
|
10304
10285
|
], 4),
|
|
10305
10286
|
st("div", {
|
|
10306
10287
|
ref_key: "legendContainer",
|
|
10307
|
-
ref:
|
|
10288
|
+
ref: c,
|
|
10308
10289
|
class: "legendContainer"
|
|
10309
10290
|
}, null, 512)
|
|
10310
10291
|
]));
|
|
10311
10292
|
}
|
|
10312
10293
|
});
|
|
10313
|
-
const mn = /* @__PURE__ */
|
|
10294
|
+
const mn = /* @__PURE__ */ be(fu, [["__scopeId", "data-v-00cff15e"]]);
|
|
10314
10295
|
mn.install = (i) => {
|
|
10315
10296
|
i.component("RadarChart", mn);
|
|
10316
10297
|
};
|
|
@@ -10326,106 +10307,106 @@ function gu() {
|
|
|
10326
10307
|
dataSetIndex: -1,
|
|
10327
10308
|
columnIndex: -1
|
|
10328
10309
|
});
|
|
10329
|
-
function e(d, u, f,
|
|
10310
|
+
function e(d, u, f, m, g, b) {
|
|
10330
10311
|
return [
|
|
10331
10312
|
{
|
|
10332
10313
|
id: "htmlLegend",
|
|
10333
|
-
afterUpdate(
|
|
10314
|
+
afterUpdate(p) {
|
|
10334
10315
|
const y = Bi(
|
|
10335
10316
|
d,
|
|
10336
10317
|
"column"
|
|
10337
10318
|
);
|
|
10338
10319
|
for (y.style.display = "flex", y.style.margin = "1.375rem 1.0625rem", y.style.flexDirection = "row-reverse", y.style.justifyContent = "flex-end"; y.firstChild; )
|
|
10339
10320
|
y.firstChild.remove();
|
|
10340
|
-
|
|
10341
|
-
const
|
|
10342
|
-
|
|
10321
|
+
p.options.plugins.legend.labels.generateLabels(p).sort((_, v) => v.datasetIndex - _.datasetIndex).forEach((_) => {
|
|
10322
|
+
const v = Ri(
|
|
10323
|
+
p,
|
|
10343
10324
|
u,
|
|
10344
|
-
|
|
10325
|
+
_.datasetIndex
|
|
10345
10326
|
);
|
|
10346
|
-
let
|
|
10347
|
-
u.value ?
|
|
10348
|
-
|
|
10349
|
-
|
|
10327
|
+
let w;
|
|
10328
|
+
u.value ? w = ba(
|
|
10329
|
+
p,
|
|
10330
|
+
_,
|
|
10350
10331
|
u,
|
|
10351
10332
|
{ datasetIndex: -1 },
|
|
10352
10333
|
g.value,
|
|
10353
10334
|
!1
|
|
10354
|
-
) :
|
|
10355
|
-
|
|
10356
|
-
|
|
10335
|
+
) : _ != null && _.lineCap ? w = zn(_) : w = ma(
|
|
10336
|
+
_,
|
|
10337
|
+
p,
|
|
10357
10338
|
{ datasetIndex: -1 },
|
|
10358
|
-
p.value,
|
|
10359
|
-
g.value,
|
|
10360
10339
|
m.value,
|
|
10340
|
+
g.value,
|
|
10341
|
+
b.value,
|
|
10361
10342
|
!1
|
|
10362
|
-
),
|
|
10343
|
+
), w.style.boxSizing = "border-box", v.style.marginRight = "10px", v.appendChild(w), v.appendChild(Fi(_)), y.appendChild(v);
|
|
10363
10344
|
});
|
|
10364
10345
|
}
|
|
10365
10346
|
}
|
|
10366
10347
|
];
|
|
10367
10348
|
}
|
|
10368
|
-
function n(d, u, f,
|
|
10349
|
+
function n(d, u, f, m, g) {
|
|
10369
10350
|
return e(
|
|
10370
10351
|
d,
|
|
10371
10352
|
u,
|
|
10372
10353
|
t,
|
|
10373
10354
|
f,
|
|
10374
|
-
|
|
10355
|
+
m,
|
|
10375
10356
|
g
|
|
10376
10357
|
);
|
|
10377
10358
|
}
|
|
10378
|
-
function s(d, u, f,
|
|
10379
|
-
const
|
|
10380
|
-
return d.map((
|
|
10381
|
-
const x =
|
|
10359
|
+
function s(d, u, f, m, g) {
|
|
10360
|
+
const b = i.value;
|
|
10361
|
+
return d.map((p, y) => {
|
|
10362
|
+
const x = p.type === "bar";
|
|
10382
10363
|
return {
|
|
10383
|
-
type:
|
|
10364
|
+
type: p.type,
|
|
10384
10365
|
fill: x ? null : !1,
|
|
10385
10366
|
borderWidth: function() {
|
|
10386
|
-
return u && x ? 1 :
|
|
10367
|
+
return u && x ? 1 : b;
|
|
10387
10368
|
},
|
|
10388
|
-
borderColor: function(
|
|
10369
|
+
borderColor: function(_) {
|
|
10389
10370
|
return u && x ? "#00000000" : x ? o(
|
|
10390
10371
|
y,
|
|
10391
|
-
|
|
10372
|
+
_.index,
|
|
10392
10373
|
f,
|
|
10393
10374
|
g
|
|
10394
|
-
) : f[y];
|
|
10375
|
+
) : f[y % f.length];
|
|
10395
10376
|
},
|
|
10396
|
-
backgroundColor: function(
|
|
10377
|
+
backgroundColor: function(_) {
|
|
10397
10378
|
return a(
|
|
10398
10379
|
y,
|
|
10399
|
-
|
|
10380
|
+
_.index,
|
|
10400
10381
|
u,
|
|
10401
10382
|
f,
|
|
10402
|
-
|
|
10383
|
+
m,
|
|
10403
10384
|
g
|
|
10404
10385
|
);
|
|
10405
10386
|
},
|
|
10406
10387
|
yAxisID: x ? "A" : "B",
|
|
10407
10388
|
pointStyle: y % 2 === 0 ? "rectRot" : "circle",
|
|
10408
|
-
data:
|
|
10409
|
-
label:
|
|
10389
|
+
data: p.data,
|
|
10390
|
+
label: p.label,
|
|
10410
10391
|
pointBackgroundColor: "#FFFFFF",
|
|
10411
10392
|
pointRadius: 5,
|
|
10412
|
-
order:
|
|
10393
|
+
order: p.type === "line" ? 0 : 1
|
|
10413
10394
|
};
|
|
10414
10395
|
});
|
|
10415
10396
|
}
|
|
10416
|
-
function o(d, u, f,
|
|
10417
|
-
const g = ro(d,
|
|
10418
|
-
return r(d, u) ? f[g] :
|
|
10397
|
+
function o(d, u, f, m) {
|
|
10398
|
+
const g = ro(d, m);
|
|
10399
|
+
return r(d, u) ? f[g] : Ge(f[g], 0.2);
|
|
10419
10400
|
}
|
|
10420
|
-
function a(d, u, f,
|
|
10421
|
-
const
|
|
10422
|
-
return r(d, u) ? g[
|
|
10401
|
+
function a(d, u, f, m, g, b) {
|
|
10402
|
+
const p = ro(d, b);
|
|
10403
|
+
return r(d, u) ? g[p](
|
|
10423
10404
|
!1,
|
|
10424
|
-
p
|
|
10405
|
+
m[p],
|
|
10425
10406
|
f
|
|
10426
|
-
) : g[
|
|
10407
|
+
) : g[p](
|
|
10427
10408
|
!0,
|
|
10428
|
-
p
|
|
10409
|
+
m[p],
|
|
10429
10410
|
f
|
|
10430
10411
|
);
|
|
10431
10412
|
}
|
|
@@ -10610,20 +10591,20 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
|
|
|
10610
10591
|
setup(i) {
|
|
10611
10592
|
const t = i;
|
|
10612
10593
|
Ct.register(
|
|
10613
|
-
fe,
|
|
10614
|
-
ge,
|
|
10615
10594
|
ue,
|
|
10595
|
+
fe,
|
|
10596
|
+
de,
|
|
10616
10597
|
ee,
|
|
10617
10598
|
se,
|
|
10618
10599
|
oe,
|
|
10619
10600
|
pt,
|
|
10620
10601
|
Tt
|
|
10621
10602
|
);
|
|
10622
|
-
const { privateGetHtmlLegendPlugin: e, getMixedDatasets: n } = gu(), { colourSets: s, patternsStandardList: o } =
|
|
10623
|
-
let
|
|
10624
|
-
return t.barDatasets && (
|
|
10625
|
-
}), c = F(() => t.newPatternsOrder.length !== o.length ? s[t.colourSet] : t.newPatternsOrder.map((
|
|
10626
|
-
labels:
|
|
10603
|
+
const { privateGetHtmlLegendPlugin: e, getMixedDatasets: n } = gu(), { colourSets: s, patternsStandardList: o } = me(), a = G(null), r = G(!1), l = F(() => {
|
|
10604
|
+
let p = [];
|
|
10605
|
+
return t.barDatasets && (p = p.concat(t.barDatasets)), t.lineDatasets && (p = p.concat(t.lineDatasets)), p;
|
|
10606
|
+
}), c = F(() => t.newPatternsOrder.length !== o.length ? s[t.colourSet] : t.newPatternsOrder.map((p) => s[t.colourSet][p])), h = F(() => t.newPatternsOrder.length !== o.length ? o : t.newPatternsOrder.map((p) => o[p])), d = F(() => t.disableAccessibility), u = F(() => ({
|
|
10607
|
+
labels: m(),
|
|
10627
10608
|
datasets: n(
|
|
10628
10609
|
l.value,
|
|
10629
10610
|
d.value,
|
|
@@ -10631,10 +10612,10 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
|
|
|
10631
10612
|
h.value,
|
|
10632
10613
|
0
|
|
10633
10614
|
)
|
|
10634
|
-
})), f = (
|
|
10635
|
-
const y =
|
|
10636
|
-
return (
|
|
10637
|
-
},
|
|
10615
|
+
})), f = (p) => {
|
|
10616
|
+
const y = p.tooltip.dataPoints[0].datasetIndex, x = p.tooltip.dataPoints[0].dataIndex, _ = l.value[y].data[x], v = l.value[y].type === "bar" ? t.barUnit : t.lineUnit;
|
|
10617
|
+
return (v === "%" ? parseFloat(_.toString().replace(",", ".")).toFixed(2) : tt(_)) + v;
|
|
10618
|
+
}, m = () => Object.assign([], t.labels).map((y) => y), g = F(() => ({
|
|
10638
10619
|
type: "bar",
|
|
10639
10620
|
responsive: !0,
|
|
10640
10621
|
maintainAspectRatio: !0,
|
|
@@ -10657,12 +10638,12 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
|
|
|
10657
10638
|
},
|
|
10658
10639
|
tooltip: {
|
|
10659
10640
|
enabled: !1,
|
|
10660
|
-
external: function(
|
|
10661
|
-
new
|
|
10662
|
-
|
|
10641
|
+
external: function(p) {
|
|
10642
|
+
new ge().createTooltip(
|
|
10643
|
+
p,
|
|
10663
10644
|
f,
|
|
10664
10645
|
{
|
|
10665
|
-
chartType:
|
|
10646
|
+
chartType: pe.MIXED_BAR_LINE_CHART,
|
|
10666
10647
|
firstLineLabel: t.tooltipFirstLineLabel,
|
|
10667
10648
|
secondLineLabel: t.tooltipSecondLineLabel
|
|
10668
10649
|
},
|
|
@@ -10693,8 +10674,8 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
|
|
|
10693
10674
|
text: t.yLeftAxisTitle
|
|
10694
10675
|
},
|
|
10695
10676
|
ticks: {
|
|
10696
|
-
callback: function(
|
|
10697
|
-
return t.barUnit === "%" ? un(
|
|
10677
|
+
callback: function(p) {
|
|
10678
|
+
return t.barUnit === "%" ? un(p, t.unit) : tt(p) + " " + t.barUnit;
|
|
10698
10679
|
}
|
|
10699
10680
|
}
|
|
10700
10681
|
},
|
|
@@ -10710,13 +10691,13 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
|
|
|
10710
10691
|
text: t.yRightAxisTitle
|
|
10711
10692
|
},
|
|
10712
10693
|
ticks: {
|
|
10713
|
-
callback: function(
|
|
10714
|
-
return (t.lineUnit === "%" ? un(
|
|
10694
|
+
callback: function(p) {
|
|
10695
|
+
return (t.lineUnit === "%" ? un(p, t.unit) : tt(p)) + " " + t.lineUnit;
|
|
10715
10696
|
}
|
|
10716
10697
|
}
|
|
10717
10698
|
}
|
|
10718
10699
|
}
|
|
10719
|
-
})),
|
|
10700
|
+
})), b = G(
|
|
10720
10701
|
e(
|
|
10721
10702
|
a,
|
|
10722
10703
|
r,
|
|
@@ -10725,18 +10706,18 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
|
|
|
10725
10706
|
h
|
|
10726
10707
|
)
|
|
10727
10708
|
);
|
|
10728
|
-
return (
|
|
10709
|
+
return (p, y) => (lt(), ae("div", pu, [
|
|
10729
10710
|
st("div", mu, [
|
|
10730
|
-
u.value ? (lt(),
|
|
10711
|
+
u.value ? (lt(), re($t(fa), {
|
|
10731
10712
|
key: 0,
|
|
10732
10713
|
ref: "mixedBarLineChartRef",
|
|
10733
10714
|
id: i.chartId,
|
|
10734
10715
|
data: u.value,
|
|
10735
10716
|
options: g.value,
|
|
10736
|
-
plugins:
|
|
10737
|
-
class:
|
|
10717
|
+
plugins: b.value,
|
|
10718
|
+
class: le(i.cssClasses),
|
|
10738
10719
|
style: Ut([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
|
|
10739
|
-
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) :
|
|
10720
|
+
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : ce("", !0)
|
|
10740
10721
|
]),
|
|
10741
10722
|
st("div", {
|
|
10742
10723
|
ref_key: "legendContainer",
|
|
@@ -10745,7 +10726,7 @@ const pu = { class: "container" }, mu = { class: "main" }, bu = /* @__PURE__ */
|
|
|
10745
10726
|
]));
|
|
10746
10727
|
}
|
|
10747
10728
|
});
|
|
10748
|
-
const lo = /* @__PURE__ */
|
|
10729
|
+
const lo = /* @__PURE__ */ be(bu, [["__scopeId", "data-v-6a9cb065"]]);
|
|
10749
10730
|
lo.install = (i) => {
|
|
10750
10731
|
i.component("MixedBarLineChart", lo);
|
|
10751
10732
|
};
|
|
@@ -10765,7 +10746,7 @@ var co = function() {
|
|
|
10765
10746
|
return (i.deviceXDPI || 1) / (i.logicalXDPI || 1);
|
|
10766
10747
|
}
|
|
10767
10748
|
return 1;
|
|
10768
|
-
}(),
|
|
10749
|
+
}(), Be = {
|
|
10769
10750
|
// @todo move this in Chart.helpers.toTextLines
|
|
10770
10751
|
toTextLines: function(i) {
|
|
10771
10752
|
var t = [], e;
|
|
@@ -10922,7 +10903,7 @@ var di = {
|
|
|
10922
10903
|
vy: e.y
|
|
10923
10904
|
}, t);
|
|
10924
10905
|
}
|
|
10925
|
-
}, kt =
|
|
10906
|
+
}, kt = Be.rasterize;
|
|
10926
10907
|
function Su(i) {
|
|
10927
10908
|
var t = i.borderWidth || 0, e = i.padding, n = i.size.height, s = i.size.width, o = -s / 2, a = -n / 2;
|
|
10928
10909
|
return {
|
|
@@ -11026,7 +11007,7 @@ bt(Ca.prototype, {
|
|
|
11026
11007
|
padding: K(V([e.padding, 4], n, o)),
|
|
11027
11008
|
positioner: ku(s._el),
|
|
11028
11009
|
rotation: V([e.rotation, 0], n, o) * (Math.PI / 180),
|
|
11029
|
-
size:
|
|
11010
|
+
size: Be.textSize(s._ctx, t, a),
|
|
11030
11011
|
textAlign: V([e.textAlign, "start"], n, o),
|
|
11031
11012
|
textShadowBlur: V([e.textShadowBlur, 0], n, o),
|
|
11032
11013
|
textShadowColor: V([e.textShadowColor, r], n, o),
|
|
@@ -11036,7 +11017,7 @@ bt(Ca.prototype, {
|
|
|
11036
11017
|
},
|
|
11037
11018
|
update: function(i) {
|
|
11038
11019
|
var t = this, e = null, n = null, s = t._index, o = t._config, a, r, l, c = V([o.display, !0], i, s);
|
|
11039
|
-
c && (a = i.dataset.data[s], r = L(E(o.formatter, [a, i]), a), l = O(r) ? [] :
|
|
11020
|
+
c && (a = i.dataset.data[s], r = L(E(o.formatter, [a, i]), a), l = O(r) ? [] : Be.toTextLines(r), l.length && (e = t._modelize(c, l, o, i), n = Su(e))), t._model = e, t._rects = n;
|
|
11040
11021
|
},
|
|
11041
11022
|
geometry: function() {
|
|
11042
11023
|
return this._rects ? this._rects.frame : {};
|
|
@@ -11057,11 +11038,11 @@ bt(Ca.prototype, {
|
|
|
11057
11038
|
a.top,
|
|
11058
11039
|
a.right - a.left,
|
|
11059
11040
|
a.bottom - a.top
|
|
11060
|
-
), n.clip()), n.globalAlpha =
|
|
11041
|
+
), n.clip()), n.globalAlpha = Be.bound(0, s.opacity, 1), n.translate(kt(t.x), kt(t.y)), n.rotate(s.rotation), Cu(n, o.frame, s), Du(n, s.lines, o.text, s), n.restore());
|
|
11061
11042
|
}
|
|
11062
11043
|
});
|
|
11063
11044
|
var Lu = Number.MIN_SAFE_INTEGER || -9007199254740991, Tu = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
11064
|
-
function
|
|
11045
|
+
function Pe(i, t, e) {
|
|
11065
11046
|
var n = Math.cos(e), s = Math.sin(e), o = t.x, a = t.y;
|
|
11066
11047
|
return {
|
|
11067
11048
|
x: o + n * (i.x - o) - s * (i.y - a),
|
|
@@ -11112,7 +11093,7 @@ bt(Pa.prototype, {
|
|
|
11112
11093
|
},
|
|
11113
11094
|
contains: function(i) {
|
|
11114
11095
|
var t = this, e = 1, n = t._rect;
|
|
11115
|
-
return i =
|
|
11096
|
+
return i = Pe(i, t.center(), -t._rotation), !(i.x < n.x - e || i.y < n.y - e || i.x > n.x + n.w + e * 2 || i.y > n.y + n.h + e * 2);
|
|
11116
11097
|
},
|
|
11117
11098
|
// Separating Axis Theorem
|
|
11118
11099
|
// https://gamedevelopment.tutsplus.com/tutorials/collision-detection-using-the-separating-axis-theorem--gamedev-169
|
|
@@ -11135,10 +11116,10 @@ bt(Pa.prototype, {
|
|
|
11135
11116
|
_points: function() {
|
|
11136
11117
|
var i = this, t = i._rect, e = i._rotation, n = i.center();
|
|
11137
11118
|
return [
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
11119
|
+
Pe({ x: t.x, y: t.y }, n, e),
|
|
11120
|
+
Pe({ x: t.x + t.w, y: t.y }, n, e),
|
|
11121
|
+
Pe({ x: t.x + t.w, y: t.y + t.h }, n, e),
|
|
11122
|
+
Pe({ x: t.x, y: t.y + t.h }, n, e)
|
|
11142
11123
|
];
|
|
11143
11124
|
}
|
|
11144
11125
|
});
|
|
@@ -11168,7 +11149,7 @@ function Iu(i) {
|
|
|
11168
11149
|
h && d || d ? c._visible = !1 : h && (l._visible = !1);
|
|
11169
11150
|
});
|
|
11170
11151
|
}
|
|
11171
|
-
var
|
|
11152
|
+
var ze = {
|
|
11172
11153
|
prepare: function(i) {
|
|
11173
11154
|
var t = [], e, n, s, o, a;
|
|
11174
11155
|
for (e = 0, s = i.length; e < s; ++e)
|
|
@@ -11283,14 +11264,14 @@ function zu(i, t) {
|
|
|
11283
11264
|
var e = i[it], n = e._listeners, s, o;
|
|
11284
11265
|
if (!(!n.enter && !n.leave)) {
|
|
11285
11266
|
if (t.type === "mousemove")
|
|
11286
|
-
o =
|
|
11267
|
+
o = ze.lookup(e._labels, t);
|
|
11287
11268
|
else if (t.type !== "mouseout")
|
|
11288
11269
|
return;
|
|
11289
11270
|
s = e._hovered, e._hovered = o, Bu(i, n, s, o, t);
|
|
11290
11271
|
}
|
|
11291
11272
|
}
|
|
11292
11273
|
function Wu(i, t) {
|
|
11293
|
-
var e = i[it], n = e._listeners.click, s = n &&
|
|
11274
|
+
var e = i[it], n = e._listeners.click, s = n && ze.lookup(e._labels, t);
|
|
11294
11275
|
s && bn(i, n, s, t);
|
|
11295
11276
|
}
|
|
11296
11277
|
var Hu = {
|
|
@@ -11306,34 +11287,34 @@ var Hu = {
|
|
|
11306
11287
|
t._listened = !1, t._listeners = {}, t._datasets = [], t._labels = [];
|
|
11307
11288
|
},
|
|
11308
11289
|
afterDatasetUpdate: function(i, t, e) {
|
|
11309
|
-
var n = t.index, s = i[it], o = s._datasets[n] = [], a = i.isDatasetVisible(n), r = i.data.datasets[n], l = Eu(r, e), c = t.meta.data || [], h = i.ctx, d, u, f,
|
|
11290
|
+
var n = t.index, s = i[it], o = s._datasets[n] = [], a = i.isDatasetVisible(n), r = i.data.datasets[n], l = Eu(r, e), c = t.meta.data || [], h = i.ctx, d, u, f, m, g, b, p, y;
|
|
11310
11291
|
for (h.save(), d = 0, f = c.length; d < f; ++d)
|
|
11311
|
-
if (
|
|
11312
|
-
for (u = 0,
|
|
11313
|
-
g = l.labels[u],
|
|
11292
|
+
if (p = c[d], p[it] = [], a && p && i.getDataVisibility(d) && !p.skip)
|
|
11293
|
+
for (u = 0, m = l.labels.length; u < m; ++u)
|
|
11294
|
+
g = l.labels[u], b = g._key, y = new Ca(g, h, p, d), y.$groups = {
|
|
11314
11295
|
_set: n,
|
|
11315
|
-
_key:
|
|
11296
|
+
_key: b || Da
|
|
11316
11297
|
}, y.$context = {
|
|
11317
11298
|
active: !1,
|
|
11318
11299
|
chart: i,
|
|
11319
11300
|
dataIndex: d,
|
|
11320
11301
|
dataset: r,
|
|
11321
11302
|
datasetIndex: n
|
|
11322
|
-
}, y.update(y.$context),
|
|
11303
|
+
}, y.update(y.$context), p[it].push(y), o.push(y);
|
|
11323
11304
|
h.restore(), bt(s._listeners, l.listeners, {
|
|
11324
|
-
merger: function(x,
|
|
11325
|
-
|
|
11305
|
+
merger: function(x, _, v) {
|
|
11306
|
+
_[x] = _[x] || {}, _[x][t.index] = v[x], s._listened = !0;
|
|
11326
11307
|
}
|
|
11327
11308
|
});
|
|
11328
11309
|
},
|
|
11329
11310
|
afterUpdate: function(i) {
|
|
11330
|
-
i[it]._labels =
|
|
11311
|
+
i[it]._labels = ze.prepare(i[it]._datasets);
|
|
11331
11312
|
},
|
|
11332
11313
|
// Draw labels on top of all dataset elements
|
|
11333
11314
|
// https://github.com/chartjs/chartjs-plugin-datalabels/issues/29
|
|
11334
11315
|
// https://github.com/chartjs/chartjs-plugin-datalabels/issues/32
|
|
11335
11316
|
afterDatasetsDraw: function(i) {
|
|
11336
|
-
|
|
11317
|
+
ze.draw(i, i[it]._labels);
|
|
11337
11318
|
},
|
|
11338
11319
|
beforeEvent: function(i, t) {
|
|
11339
11320
|
if (i[it]._listened) {
|
|
@@ -11350,16 +11331,16 @@ var Hu = {
|
|
|
11350
11331
|
}
|
|
11351
11332
|
},
|
|
11352
11333
|
afterEvent: function(i) {
|
|
11353
|
-
var t = i[it], e = t._actives, n = t._actives = i.getActiveElements(), s =
|
|
11334
|
+
var t = i[it], e = t._actives, n = t._actives = i.getActiveElements(), s = Be.arrayDiff(e, n), o, a, r, l, c, h, d;
|
|
11354
11335
|
for (o = 0, a = s.length; o < a; ++o)
|
|
11355
11336
|
if (c = s[o], c[1])
|
|
11356
11337
|
for (d = c[0].element[it] || [], r = 0, l = d.length; r < l; ++r)
|
|
11357
11338
|
h = d[r], h.$context.active = c[1] === 1, h.update(h.$context);
|
|
11358
|
-
(t._dirty || s.length) && (
|
|
11339
|
+
(t._dirty || s.length) && (ze.update(t._labels), i.render()), delete t._dirty;
|
|
11359
11340
|
}
|
|
11360
11341
|
};
|
|
11361
11342
|
const uo = "background: white; border-bottom: 1px solid #CCCCCC; border-radius: 5px; padding: 10px 20px";
|
|
11362
|
-
class Nu extends
|
|
11343
|
+
class Nu extends ge {
|
|
11363
11344
|
constructor() {
|
|
11364
11345
|
super(...arguments);
|
|
11365
11346
|
k(this, "fontProperties", "font-family: Arial; font-size: 16px");
|
|
@@ -11541,15 +11522,15 @@ const Vu = { class: "container" }, ju = { class: "main" }, $u = { class: "chart-
|
|
|
11541
11522
|
setup(i) {
|
|
11542
11523
|
const t = i;
|
|
11543
11524
|
Ct.register(
|
|
11544
|
-
fe,
|
|
11545
|
-
ge,
|
|
11546
11525
|
ue,
|
|
11526
|
+
fe,
|
|
11527
|
+
de,
|
|
11547
11528
|
Tt,
|
|
11548
11529
|
se,
|
|
11549
11530
|
oe,
|
|
11550
11531
|
Hu
|
|
11551
11532
|
);
|
|
11552
|
-
const { colourSets: e } =
|
|
11533
|
+
const { colourSets: e } = me(), n = function(a) {
|
|
11553
11534
|
const r = [];
|
|
11554
11535
|
a.forEach((u) => {
|
|
11555
11536
|
u.forEach((f) => {
|
|
@@ -11572,7 +11553,7 @@ const Vu = { class: "container" }, ju = { class: "main" }, $u = { class: "chart-
|
|
|
11572
11553
|
datasets: n(t.datasets).map((r, l) => ({
|
|
11573
11554
|
data: r,
|
|
11574
11555
|
pointStyle: t.shapes[l],
|
|
11575
|
-
backgroundColor:
|
|
11556
|
+
backgroundColor: Ge(a[t.colours[l]], 0.2),
|
|
11576
11557
|
borderColor: a[t.colours[l]],
|
|
11577
11558
|
label: t.labels[l]
|
|
11578
11559
|
}))
|
|
@@ -11619,13 +11600,13 @@ const Vu = { class: "container" }, ju = { class: "main" }, $u = { class: "chart-
|
|
|
11619
11600
|
enabled: !1,
|
|
11620
11601
|
position: "nearest",
|
|
11621
11602
|
external: function(a) {
|
|
11622
|
-
var h, d, u, f,
|
|
11603
|
+
var h, d, u, f, m, g;
|
|
11623
11604
|
const r = ((d = (h = a.tooltip) == null ? void 0 : h.dataPoints) == null ? void 0 : d[0].datasetIndex) || 0, l = ((u = a.tooltip.dataPoints) == null ? void 0 : u[0].dataIndex) || 0, c = t.datasets[r][l];
|
|
11624
11605
|
new Nu().createBubbleTooltip(
|
|
11625
11606
|
a,
|
|
11626
11607
|
[
|
|
11627
11608
|
{ label: t.xAxis.title, value: `${tt(c.x)}`, unit: (f = t.xAxis) == null ? void 0 : f.unit },
|
|
11628
|
-
{ label: t.yAxis.title, value: `${tt(c.y)}`, unit: (
|
|
11609
|
+
{ label: t.yAxis.title, value: `${tt(c.y)}`, unit: (m = t.yAxis) == null ? void 0 : m.unit },
|
|
11629
11610
|
{ label: t.rAxis.title, value: `${tt(c.r)}`, unit: (g = t.rAxis) == null ? void 0 : g.unit }
|
|
11630
11611
|
],
|
|
11631
11612
|
t.labels[r]
|
|
@@ -11634,17 +11615,17 @@ const Vu = { class: "container" }, ju = { class: "main" }, $u = { class: "chart-
|
|
|
11634
11615
|
}
|
|
11635
11616
|
}
|
|
11636
11617
|
}));
|
|
11637
|
-
return (a, r) => (lt(),
|
|
11618
|
+
return (a, r) => (lt(), ae("div", Vu, [
|
|
11638
11619
|
st("div", ju, [
|
|
11639
|
-
s.value ? (lt(),
|
|
11620
|
+
s.value ? (lt(), re($t(Od), {
|
|
11640
11621
|
key: 0,
|
|
11641
11622
|
ref: "bubbleChartRef",
|
|
11642
11623
|
id: i.chartId,
|
|
11643
11624
|
data: s.value,
|
|
11644
11625
|
options: o.value,
|
|
11645
|
-
class:
|
|
11626
|
+
class: le(i.cssClasses),
|
|
11646
11627
|
style: Ut([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
|
|
11647
|
-
}, null, 8, ["id", "data", "options", "class", "style"])) :
|
|
11628
|
+
}, null, 8, ["id", "data", "options", "class", "style"])) : ce("", !0)
|
|
11648
11629
|
]),
|
|
11649
11630
|
st("div", $u, [
|
|
11650
11631
|
st("img", {
|
|
@@ -11657,7 +11638,7 @@ const Vu = { class: "container" }, ju = { class: "main" }, $u = { class: "chart-
|
|
|
11657
11638
|
]));
|
|
11658
11639
|
}
|
|
11659
11640
|
});
|
|
11660
|
-
const fo = /* @__PURE__ */
|
|
11641
|
+
const fo = /* @__PURE__ */ be(Xu, [["__scopeId", "data-v-a786496d"]]);
|
|
11661
11642
|
fo.install = (i) => {
|
|
11662
11643
|
i.component("BubbleChart", fo);
|
|
11663
11644
|
};
|