@undp/data-viz 2.1.3 → 2.1.4
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/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.js +279 -272
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +298 -287
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +404 -397
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.js +42 -39
- package/dist/DonutChart.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
- package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
- package/dist/{GraphEl-CRrAlbcr.js → GraphEl-oZwZiTHI.js} +3 -2
- package/dist/GraphEl-oZwZiTHI.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +368 -361
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +327 -320
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +374 -367
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +385 -378
- package/dist/ParetoChart.js.map +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +34 -33
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +176 -169
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +366 -359
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +285 -278
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +243 -236
- package/dist/SlopeChart.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/index-Blvf-Q3U.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
- package/dist/index-D1RrKgK6.js +337 -0
- package/dist/index-D1RrKgK6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-BLMih7RN.cjs +0 -2
- package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
- package/dist/GraphEl-CRrAlbcr.js.map +0 -1
- package/dist/index-CF5hnGvG.cjs +0 -2
- package/dist/index-DPGq3eIL.js +0 -330
- package/dist/index-DPGq3eIL.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { c as Ie, m as ke, j as s } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as je, useState as Bt, useEffect as Ne } from "react";
|
|
3
3
|
import { p as D, f as Pe } from "./parse-DlCRUFh_.js";
|
|
4
|
-
import { o as
|
|
5
|
-
import { n as
|
|
4
|
+
import { o as We } from "./index-BZQYSqar.js";
|
|
5
|
+
import { n as Ye } from "./numberFormattingFunction-14YCbkN2.js";
|
|
6
6
|
import { T as Fe } from "./Tooltip-Dj5eVppQ.js";
|
|
7
7
|
import { c as v } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
8
|
import { C as Be, g as ze, A as Ue } from "./customArea-BUhPiPT6.js";
|
|
@@ -12,9 +12,9 @@ import { X as Ke } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
|
12
12
|
import { a as Qe } from "./ReferenceLine-2XCwHXQ4.js";
|
|
13
13
|
import { Y as Ze } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
14
14
|
import { H as _e } from "./index-SKgJALZg.js";
|
|
15
|
-
import { Colors as
|
|
16
|
-
import { u as
|
|
17
|
-
import { c as
|
|
15
|
+
import { Colors as z } from "./Colors.js";
|
|
16
|
+
import { u as Le } from "./uniqBy-BHy4I8PK.js";
|
|
17
|
+
import { c as Ve, a as to } from "./init-BhZylTFx.js";
|
|
18
18
|
import { t as eo } from "./time-BUL-dwnK.js";
|
|
19
19
|
import { a as oo } from "./linear-BqltdMeF.js";
|
|
20
20
|
import { D as io } from "./delaunay-C1uAf38t.js";
|
|
@@ -23,290 +23,290 @@ import { c as so, s as ao, a as lo, m as co } from "./step-BrDul-H4.js";
|
|
|
23
23
|
import { s as fo } from "./select-DKy99ogv.js";
|
|
24
24
|
import { p as mo } from "./pointer-CWRWOsrb.js";
|
|
25
25
|
import { u as uo } from "./use-in-view-Cxa7y1TH.js";
|
|
26
|
-
import { m as
|
|
26
|
+
import { m as Ft } from "./proxy-BxkFHwUw.js";
|
|
27
27
|
import { GraphFooter as po } from "./GraphFooter.js";
|
|
28
28
|
import { GraphHeader as ho } from "./GraphHeader.js";
|
|
29
|
-
import { E as go } from "./EmptyState-
|
|
29
|
+
import { E as go } from "./EmptyState-C7ZXkZWd.js";
|
|
30
30
|
import { ColorLegendWithMouseOver as xo } from "./ColorLegendWithMouseOver.js";
|
|
31
31
|
import { a as yo, G as vo } from "./GraphContainer-CRqzdKu2.js";
|
|
32
32
|
import { g as wo } from "./getNoOfTicks-CpmRjcRF.js";
|
|
33
33
|
function bo(e, t) {
|
|
34
|
-
return Array.from(t, (
|
|
34
|
+
return Array.from(t, (n) => e[n]);
|
|
35
35
|
}
|
|
36
36
|
function Oo(e, ...t) {
|
|
37
37
|
if (typeof e[Symbol.iterator] != "function") throw new TypeError("values is not iterable");
|
|
38
38
|
e = Array.from(e);
|
|
39
|
-
let [
|
|
40
|
-
if (
|
|
41
|
-
const w = Uint32Array.from(e, (j,
|
|
42
|
-
return t.length > 1 ? (t = t.map((j) => e.map(j)), w.sort((j,
|
|
43
|
-
for (const
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
39
|
+
let [n] = t;
|
|
40
|
+
if (n && n.length !== 2 || t.length > 1) {
|
|
41
|
+
const w = Uint32Array.from(e, (j, c) => c);
|
|
42
|
+
return t.length > 1 ? (t = t.map((j) => e.map(j)), w.sort((j, c) => {
|
|
43
|
+
for (const r of t) {
|
|
44
|
+
const bt = He(r[j], r[c]);
|
|
45
|
+
if (bt) return bt;
|
|
46
46
|
}
|
|
47
|
-
})) : (
|
|
47
|
+
})) : (n = e.map(n), w.sort((j, c) => He(n[j], n[c]))), bo(e, w);
|
|
48
48
|
}
|
|
49
|
-
return e.sort(Co(
|
|
49
|
+
return e.sort(Co(n));
|
|
50
50
|
}
|
|
51
|
-
function Co(e =
|
|
52
|
-
if (e ===
|
|
51
|
+
function Co(e = Ve) {
|
|
52
|
+
if (e === Ve) return He;
|
|
53
53
|
if (typeof e != "function") throw new TypeError("compare is not a function");
|
|
54
|
-
return (t,
|
|
55
|
-
const w = e(t,
|
|
56
|
-
return w || w === 0 ? w : (e(
|
|
54
|
+
return (t, n) => {
|
|
55
|
+
const w = e(t, n);
|
|
56
|
+
return w || w === 0 ? w : (e(n, n) === 0) - (e(t, t) === 0);
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function He(e, t) {
|
|
60
60
|
return (e == null || !(e >= e)) - (t == null || !(t >= t)) || (e < t ? -1 : e > t ? 1 : 0);
|
|
61
61
|
}
|
|
62
62
|
function Ao(e) {
|
|
63
|
-
const t =
|
|
64
|
-
data:
|
|
63
|
+
const t = Ie.c(128), {
|
|
64
|
+
data: n,
|
|
65
65
|
width: w,
|
|
66
66
|
height: j,
|
|
67
|
-
lineColors:
|
|
68
|
-
dateFormat:
|
|
69
|
-
noOfXTicks:
|
|
70
|
-
rightMargin:
|
|
71
|
-
topMargin:
|
|
72
|
-
bottomMargin:
|
|
67
|
+
lineColors: c,
|
|
68
|
+
dateFormat: r,
|
|
69
|
+
noOfXTicks: bt,
|
|
70
|
+
rightMargin: rt,
|
|
71
|
+
topMargin: zt,
|
|
72
|
+
bottomMargin: st,
|
|
73
73
|
suffix: I,
|
|
74
74
|
prefix: x,
|
|
75
75
|
leftMargin: C,
|
|
76
|
-
tooltip:
|
|
77
|
-
onSeriesMouseOver:
|
|
78
|
-
refValues:
|
|
79
|
-
highlightAreaSettings:
|
|
80
|
-
minValue:
|
|
81
|
-
maxValue:
|
|
76
|
+
tooltip: Ot,
|
|
77
|
+
onSeriesMouseOver: at,
|
|
78
|
+
refValues: lt,
|
|
79
|
+
highlightAreaSettings: Ut,
|
|
80
|
+
minValue: U,
|
|
81
|
+
maxValue: Ct,
|
|
82
82
|
highlightedLines: R,
|
|
83
83
|
animate: a,
|
|
84
|
-
rtl:
|
|
85
|
-
strokeWidth:
|
|
86
|
-
showDots:
|
|
87
|
-
annotations:
|
|
88
|
-
customHighlightAreaSettings:
|
|
89
|
-
yAxisTitle:
|
|
90
|
-
noOfYTicks:
|
|
91
|
-
minDate:
|
|
92
|
-
maxDate:
|
|
93
|
-
curveType:
|
|
84
|
+
rtl: q,
|
|
85
|
+
strokeWidth: V,
|
|
86
|
+
showDots: se,
|
|
87
|
+
annotations: At,
|
|
88
|
+
customHighlightAreaSettings: qt,
|
|
89
|
+
yAxisTitle: J,
|
|
90
|
+
noOfYTicks: Jt,
|
|
91
|
+
minDate: Kt,
|
|
92
|
+
maxDate: Qt,
|
|
93
|
+
curveType: ct,
|
|
94
94
|
styles: b,
|
|
95
|
-
colorDomain:
|
|
96
|
-
selectedColor:
|
|
95
|
+
colorDomain: T,
|
|
96
|
+
selectedColor: Dt,
|
|
97
97
|
classNames: A,
|
|
98
|
-
showLabels:
|
|
99
|
-
dimmedOpacity:
|
|
100
|
-
precision:
|
|
101
|
-
naLabel:
|
|
102
|
-
customLayers:
|
|
103
|
-
} = e,
|
|
104
|
-
let
|
|
105
|
-
t[0] !== a.amount || t[1] !== a.once ? (
|
|
98
|
+
showLabels: de,
|
|
99
|
+
dimmedOpacity: S,
|
|
100
|
+
precision: K,
|
|
101
|
+
naLabel: xe,
|
|
102
|
+
customLayers: Q
|
|
103
|
+
} = e, jt = je(null);
|
|
104
|
+
let Z;
|
|
105
|
+
t[0] !== a.amount || t[1] !== a.once ? (Z = {
|
|
106
106
|
once: a.once,
|
|
107
107
|
amount: a.amount
|
|
108
|
-
}, t[0] = a.amount, t[1] = a.once, t[2] =
|
|
109
|
-
const u = uo(
|
|
110
|
-
let
|
|
111
|
-
t[3] !== a.duration || t[4] !==
|
|
112
|
-
if (u && !
|
|
108
|
+
}, t[0] = a.amount, t[1] = a.once, t[2] = Z) : Z = t[2];
|
|
109
|
+
const u = uo(jt, Z), [k, ae] = Bt(!1);
|
|
110
|
+
let Lt, ft;
|
|
111
|
+
t[3] !== a.duration || t[4] !== k || t[5] !== u ? (Lt = () => {
|
|
112
|
+
if (u && !k) {
|
|
113
113
|
const o = setTimeout(() => {
|
|
114
|
-
|
|
114
|
+
ae(!0);
|
|
115
115
|
}, (a.duration + 0.5) * 1e3);
|
|
116
116
|
return () => clearTimeout(o);
|
|
117
117
|
}
|
|
118
|
-
},
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
t[8] !==
|
|
118
|
+
}, ft = [u, k, a.duration], t[3] = a.duration, t[4] = k, t[5] = u, t[6] = Lt, t[7] = ft) : (Lt = t[6], ft = t[7]), Ne(Lt, ft);
|
|
119
|
+
const le = ct === "linear" ? ro : ct === "step" ? so : ct === "stepAfter" ? ao : ct === "stepBefore" ? lo : co;
|
|
120
|
+
let Mt;
|
|
121
|
+
t[8] !== r ? (Mt = (o) => ({
|
|
122
122
|
...o,
|
|
123
|
-
date: D(`${o.date}`,
|
|
124
|
-
}), t[8] =
|
|
125
|
-
const l =
|
|
126
|
-
let
|
|
127
|
-
t[10] !==
|
|
128
|
-
const
|
|
129
|
-
let
|
|
130
|
-
t[12] !==
|
|
131
|
-
top:
|
|
132
|
-
bottom:
|
|
133
|
-
left:
|
|
134
|
-
right:
|
|
135
|
-
}, t[12] =
|
|
136
|
-
const
|
|
137
|
-
let
|
|
138
|
-
if (t[17] !==
|
|
123
|
+
date: D(`${o.date}`, r, /* @__PURE__ */ new Date())
|
|
124
|
+
}), t[8] = r, t[9] = Mt) : Mt = t[9];
|
|
125
|
+
const l = We(n.map(Mt), ["date"], ["asc"]).filter(ei), g = Le(l, "label", !0);
|
|
126
|
+
let $t;
|
|
127
|
+
t[10] !== r ? ($t = (o) => D(`${o}`, r, /* @__PURE__ */ new Date()), t[10] = r, t[11] = $t) : $t = t[11];
|
|
128
|
+
const Zt = Oo(Le(n, "date", !0).map($t), ti), [p, mt] = Bt(void 0), [ut, _] = Bt(void 0), [pt, tt] = Bt(void 0), Tt = J ? C + 30 : C;
|
|
129
|
+
let ht;
|
|
130
|
+
t[12] !== st || t[13] !== rt || t[14] !== Tt || t[15] !== zt ? (ht = {
|
|
131
|
+
top: zt,
|
|
132
|
+
bottom: st,
|
|
133
|
+
left: Tt,
|
|
134
|
+
right: rt
|
|
135
|
+
}, t[12] = st, t[13] = rt, t[14] = Tt, t[15] = zt, t[16] = ht) : ht = t[16];
|
|
136
|
+
const d = ht, ce = je(null), fe = g.map((o) => We(l.filter((i) => i.label == o), ["date"], ["asc"]));
|
|
137
|
+
let gt;
|
|
138
|
+
if (t[17] !== r || t[18] !== Ut) {
|
|
139
139
|
let o;
|
|
140
|
-
t[20] !==
|
|
140
|
+
t[20] !== r ? (o = (i) => ({
|
|
141
141
|
...i,
|
|
142
|
-
coordinates: [i.coordinates[0] === null ? null : D(`${i.coordinates[0]}`,
|
|
143
|
-
}), t[20] =
|
|
142
|
+
coordinates: [i.coordinates[0] === null ? null : D(`${i.coordinates[0]}`, r, /* @__PURE__ */ new Date()), i.coordinates[1] === null ? null : D(`${i.coordinates[1]}`, r, /* @__PURE__ */ new Date())]
|
|
143
|
+
}), t[20] = r, t[21] = o) : o = t[21], gt = Ut.map(o), t[17] = r, t[18] = Ut, t[19] = gt;
|
|
144
144
|
} else
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
if (t[22] !==
|
|
145
|
+
gt = t[19];
|
|
146
|
+
const St = gt;
|
|
147
|
+
let dt;
|
|
148
|
+
if (t[22] !== qt || t[23] !== r) {
|
|
149
149
|
let o;
|
|
150
|
-
t[25] !==
|
|
150
|
+
t[25] !== r ? (o = (i) => ({
|
|
151
151
|
...i,
|
|
152
|
-
coordinates: i.coordinates.map((y,
|
|
153
|
-
}), t[25] =
|
|
152
|
+
coordinates: i.coordinates.map((y, Pt) => Pt % 2 === 0 ? D(`${y}`, r, /* @__PURE__ */ new Date()) : y)
|
|
153
|
+
}), t[25] = r, t[26] = o) : o = t[26], dt = qt.map(o), t[22] = qt, t[23] = r, t[24] = dt;
|
|
154
154
|
} else
|
|
155
|
-
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
t[27] !== O || t[28] !==
|
|
159
|
-
let
|
|
160
|
-
t[30] !== X || t[31] !==
|
|
161
|
-
const m = oo().domain([
|
|
162
|
-
|
|
155
|
+
dt = t[24];
|
|
156
|
+
const _t = dt, h = w - d.left - d.right, L = j - d.top - d.bottom, me = Kt ? D(`${Kt}`, r, /* @__PURE__ */ new Date()) : Zt[0], te = Qt ? D(`${Qt}`, r, /* @__PURE__ */ new Date()) : Zt[Zt.length - 1], O = v(U) ? Math.min(...l.map(_o).filter(Zo)) ? Math.min(...l.map(Qo).filter(Ko)) > 0 ? 0 : Math.min(...l.map(Jo).filter(qo)) : 0 : U, X = Math.max(...l.map(Uo).filter(zo)) ? Math.max(...l.map(Bo).filter(Fo)) : 0, f = eo().domain([me, te]).range([0, h]);
|
|
157
|
+
let et;
|
|
158
|
+
t[27] !== O || t[28] !== U ? (et = v(U) ? O : U, t[27] = O, t[28] = U, t[29] = et) : et = t[29];
|
|
159
|
+
let N;
|
|
160
|
+
t[30] !== X || t[31] !== Ct ? (N = v(Ct) ? X > 0 ? X : 0 : Ct, t[30] = X, t[31] = Ct, t[32] = N) : N = t[32];
|
|
161
|
+
const m = oo().domain([et, N]).range([L, 0]).nice(), ue = io.from(l.filter(Po), (o) => f(o.date), (o) => m(o.y)).voronoi([0, 0, h < 0 ? 0 : h, L < 0 ? 0 : L]), kt = no().x((o) => f(o.date)).y((o) => m(o.y)).curve(le), Nt = m.ticks(Jt), ee = f.ticks(bt);
|
|
162
|
+
Ne(() => {
|
|
163
163
|
const o = (y) => {
|
|
164
|
-
const
|
|
165
|
-
|
|
164
|
+
const Pt = l[to(l.map(Go), f.invert(mo(y)[0]), 0)];
|
|
165
|
+
mt(Pt || l[l.length - 1]), tt(y.clientY), _(y.clientX), at?.(Pt || l[l.length - 1]);
|
|
166
166
|
}, i = () => {
|
|
167
|
-
|
|
167
|
+
mt(void 0), _(void 0), tt(void 0);
|
|
168
168
|
};
|
|
169
|
-
fo(
|
|
170
|
-
}, [
|
|
171
|
-
let
|
|
172
|
-
t[33] !== a || t[34] !== L || t[35] !== h || t[36] !==
|
|
173
|
-
const
|
|
174
|
-
let
|
|
175
|
-
t[40] !==
|
|
176
|
-
gridLines:
|
|
177
|
-
labels:
|
|
178
|
-
}, t[40] =
|
|
179
|
-
const
|
|
180
|
-
let
|
|
181
|
-
t[43] !==
|
|
182
|
-
gridLines:
|
|
183
|
-
labels:
|
|
184
|
-
}, t[43] =
|
|
185
|
-
const
|
|
169
|
+
fo(ce.current).on("mousemove", o).on("mouseout", i), at?.(void 0);
|
|
170
|
+
}, [f, l, at]);
|
|
171
|
+
let ot;
|
|
172
|
+
t[33] !== a || t[34] !== L || t[35] !== h || t[36] !== St || t[37] !== u || t[38] !== f ? (ot = /* @__PURE__ */ s.jsx(_e, { areaSettings: St, width: h, height: L, scale: f, animate: a, isInView: u }), t[33] = a, t[34] = L, t[35] = h, t[36] = St, t[37] = u, t[38] = f, t[39] = ot) : ot = t[39];
|
|
173
|
+
const Vt = b?.yAxis?.gridLines, M = b?.yAxis?.labels;
|
|
174
|
+
let xt;
|
|
175
|
+
t[40] !== Vt || t[41] !== M ? (xt = {
|
|
176
|
+
gridLines: Vt,
|
|
177
|
+
labels: M
|
|
178
|
+
}, t[40] = Vt, t[41] = M, t[42] = xt) : xt = t[42];
|
|
179
|
+
const Ht = A?.yAxis?.gridLines, Wt = A?.yAxis?.labels;
|
|
180
|
+
let yt;
|
|
181
|
+
t[43] !== Ht || t[44] !== Wt ? (yt = {
|
|
182
|
+
gridLines: Ht,
|
|
183
|
+
labels: Wt
|
|
184
|
+
}, t[43] = Ht, t[44] = Wt, t[45] = yt) : yt = t[45];
|
|
185
|
+
const vt = m(O < 0 ? 0 : O), Yt = m(O < 0 ? 0 : O), It = 0 - C, it = h + d.right, pe = O < 0 ? 0 : O;
|
|
186
186
|
let H;
|
|
187
|
-
t[46] !==
|
|
188
|
-
const
|
|
187
|
+
t[46] !== K || t[47] !== x || t[48] !== I || t[49] !== pe ? (H = Ye(pe, "NA", K, x, I), t[46] = K, t[47] = x, t[48] = I, t[49] = pe, t[50] = H) : H = t[50];
|
|
188
|
+
const he = 0 - C, Rt = m(O < 0 ? 0 : O), ge = X < 0 ? "1em" : -5;
|
|
189
189
|
let E;
|
|
190
|
-
t[51] !==
|
|
191
|
-
x:
|
|
192
|
-
y:
|
|
190
|
+
t[51] !== he || t[52] !== Rt || t[53] !== ge ? (E = {
|
|
191
|
+
x: he,
|
|
192
|
+
y: Rt,
|
|
193
193
|
dx: 0,
|
|
194
|
-
dy:
|
|
195
|
-
}, t[51] =
|
|
196
|
-
const
|
|
194
|
+
dy: ge
|
|
195
|
+
}, t[51] = he, t[52] = Rt, t[53] = ge, t[54] = E) : E = t[54];
|
|
196
|
+
const oe = A?.xAxis?.axis, wt = A?.yAxis?.labels;
|
|
197
197
|
let W;
|
|
198
|
-
t[55] !==
|
|
199
|
-
axis:
|
|
200
|
-
label:
|
|
201
|
-
}, t[55] =
|
|
202
|
-
const
|
|
203
|
-
let
|
|
204
|
-
t[58] !==
|
|
205
|
-
axis:
|
|
206
|
-
label:
|
|
207
|
-
}, t[58] =
|
|
198
|
+
t[55] !== oe || t[56] !== wt ? (W = {
|
|
199
|
+
axis: oe,
|
|
200
|
+
label: wt
|
|
201
|
+
}, t[55] = oe, t[56] = wt, t[57] = W) : W = t[57];
|
|
202
|
+
const Xt = b?.xAxis?.axis, Et = b?.yAxis?.labels;
|
|
203
|
+
let $;
|
|
204
|
+
t[58] !== Xt || t[59] !== Et ? ($ = {
|
|
205
|
+
axis: Xt,
|
|
206
|
+
label: Et
|
|
207
|
+
}, t[58] = Xt, t[59] = Et, t[60] = $) : $ = t[60];
|
|
208
208
|
let Y;
|
|
209
|
-
t[61] !==
|
|
210
|
-
const G = 0 - C - 15,
|
|
211
|
-
let
|
|
212
|
-
t[70] !== G || t[71] !==
|
|
213
|
-
let
|
|
214
|
-
t[76] !==
|
|
215
|
-
const
|
|
216
|
-
let ye;
|
|
217
|
-
t[78] !== Le || t[79] !== Me ? (ye = {
|
|
218
|
-
gridLines: Le,
|
|
219
|
-
labels: Me
|
|
220
|
-
}, t[78] = Le, t[79] = Me, t[80] = ye) : ye = t[80];
|
|
221
|
-
const $e = A?.xAxis?.gridLines;
|
|
222
|
-
let ee;
|
|
223
|
-
t[81] !== $e ? (ee = Se("opacity-0", $e), t[81] = $e, t[82] = ee) : ee = t[82];
|
|
224
|
-
const Te = A?.xAxis?.labels;
|
|
225
|
-
let oe;
|
|
226
|
-
t[83] !== Te ? (oe = Se("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Te), t[83] = Te, t[84] = oe) : oe = t[84];
|
|
209
|
+
t[61] !== vt || t[62] !== Yt || t[63] !== It || t[64] !== it || t[65] !== H || t[66] !== E || t[67] !== W || t[68] !== $ ? (Y = /* @__PURE__ */ s.jsx(Je, { y1: vt, y2: Yt, x1: It, x2: it, label: H, labelPos: E, classNames: W, styles: $ }), t[61] = vt, t[62] = Yt, t[63] = It, t[64] = it, t[65] = H, t[66] = E, t[67] = W, t[68] = $, t[69] = Y) : Y = t[69];
|
|
210
|
+
const G = 0 - C - 15, P = L / 2, F = b?.yAxis?.title, B = A?.yAxis?.title;
|
|
211
|
+
let nt;
|
|
212
|
+
t[70] !== G || t[71] !== P || t[72] !== F || t[73] !== B || t[74] !== J ? (nt = /* @__PURE__ */ s.jsx(qe, { x: G, y: P, style: F, className: B, text: J, rotate90: !0 }), t[70] = G, t[71] = P, t[72] = F, t[73] = B, t[74] = J, t[75] = nt) : nt = t[75];
|
|
213
|
+
let Gt;
|
|
214
|
+
t[76] !== r ? (Gt = (o) => Pe(o, r), t[76] = r, t[77] = Gt) : Gt = t[77];
|
|
215
|
+
const ye = ee.map(Gt), Re = ee.map((o) => f(o)), Me = b?.xAxis?.gridLines, $e = b?.xAxis?.labels;
|
|
227
216
|
let ve;
|
|
228
|
-
t[
|
|
229
|
-
gridLines:
|
|
230
|
-
labels:
|
|
231
|
-
}, t[
|
|
217
|
+
t[78] !== Me || t[79] !== $e ? (ve = {
|
|
218
|
+
gridLines: Me,
|
|
219
|
+
labels: $e
|
|
220
|
+
}, t[78] = Me, t[79] = $e, t[80] = ve) : ve = t[80];
|
|
221
|
+
const Te = A?.xAxis?.gridLines;
|
|
222
|
+
let ie;
|
|
223
|
+
t[81] !== Te ? (ie = ke("opacity-0", Te), t[81] = Te, t[82] = ie) : ie = t[82];
|
|
224
|
+
const Se = A?.xAxis?.labels;
|
|
225
|
+
let ne;
|
|
226
|
+
t[83] !== Se ? (ne = ke("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Se), t[83] = Se, t[84] = ne) : ne = t[84];
|
|
232
227
|
let we;
|
|
233
|
-
t[
|
|
234
|
-
|
|
235
|
-
|
|
228
|
+
t[85] !== ie || t[86] !== ne ? (we = {
|
|
229
|
+
gridLines: ie,
|
|
230
|
+
labels: ne
|
|
231
|
+
}, t[85] = ie, t[86] = ne, t[87] = we) : we = t[87];
|
|
232
|
+
let be;
|
|
233
|
+
t[88] !== Q ? (be = Q.filter(Ro).map(Io), t[88] = Q, t[89] = be) : be = t[89];
|
|
234
|
+
const Xe = l.filter(Lo).map((o, i) => /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx("path", { d: ue.renderCell(l.findIndex((y) => y.label === o.label && y.date === o.date)), opacity: 0, onMouseEnter: (y) => {
|
|
235
|
+
mt(o), tt(y.clientY), _(y.clientX), at?.(o);
|
|
236
236
|
}, onMouseMove: (y) => {
|
|
237
|
-
|
|
237
|
+
mt(o), tt(y.clientY), _(y.clientX);
|
|
238
238
|
}, onMouseLeave: () => {
|
|
239
|
-
|
|
239
|
+
mt(void 0), _(void 0), tt(void 0), at?.(void 0);
|
|
240
240
|
} }) }, i));
|
|
241
|
-
let
|
|
242
|
-
t[90] !== a || t[91] !== h || t[92] !== u || t[93] !== C || t[94] !==
|
|
243
|
-
let
|
|
244
|
-
if (t[98] !== a || t[99] !==
|
|
241
|
+
let Oe;
|
|
242
|
+
t[90] !== a || t[91] !== h || t[92] !== u || t[93] !== C || t[94] !== d.right || t[95] !== lt || t[96] !== m ? (Oe = lt ? /* @__PURE__ */ s.jsx(s.Fragment, { children: lt.map((o, i) => /* @__PURE__ */ s.jsx(Qe, { text: o.text, color: o.color, y: m(o.value), x1: 0 - C, x2: h + d.right, classNames: o.classNames, styles: o.styles, animate: a, isInView: u }, i)) }) : null, t[90] = a, t[91] = h, t[92] = u, t[93] = C, t[94] = d.right, t[95] = lt, t[96] = m, t[97] = Oe) : Oe = t[97];
|
|
243
|
+
let re;
|
|
244
|
+
if (t[98] !== a || t[99] !== At || t[100] !== r || t[101] !== h || t[102] !== u || t[103] !== d.right || t[104] !== q || t[105] !== f || t[106] !== m) {
|
|
245
245
|
let o;
|
|
246
|
-
t[108] !== a || t[109] !==
|
|
247
|
-
const
|
|
248
|
-
x: i.xCoordinate ?
|
|
246
|
+
t[108] !== a || t[109] !== r || t[110] !== h || t[111] !== u || t[112] !== d.right || t[113] !== q || t[114] !== f || t[115] !== m ? (o = (i, y) => {
|
|
247
|
+
const Pt = ze({
|
|
248
|
+
x: i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
|
|
249
249
|
y: i.yCoordinate ? m(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8
|
|
250
250
|
}, {
|
|
251
|
-
x: i.xCoordinate ?
|
|
251
|
+
x: i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) : 0,
|
|
252
252
|
y: i.yCoordinate ? m(i.yCoordinate) : 0
|
|
253
253
|
}, v(i.connectorRadius) ? 3.5 : i.connectorRadius), Ee = i.showConnector ? {
|
|
254
|
-
y1:
|
|
255
|
-
x1:
|
|
254
|
+
y1: Pt.y,
|
|
255
|
+
x1: Pt.x,
|
|
256
256
|
y2: i.yCoordinate ? m(i.yCoordinate) + (i.yOffset || 0) : 0 + (i.yOffset || 0),
|
|
257
|
-
x2: i.xCoordinate ?
|
|
257
|
+
x2: i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
|
|
258
258
|
cy: i.yCoordinate ? m(i.yCoordinate) : 0,
|
|
259
|
-
cx: i.xCoordinate ?
|
|
259
|
+
cx: i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) : 0,
|
|
260
260
|
circleRadius: v(i.connectorRadius) ? 3.5 : i.connectorRadius,
|
|
261
261
|
strokeWidth: i.showConnector === !0 ? 2 : Math.min(i.showConnector || 0, 1)
|
|
262
262
|
} : void 0, Ge = {
|
|
263
263
|
y: i.yCoordinate ? m(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8,
|
|
264
|
-
x:
|
|
265
|
-
width:
|
|
264
|
+
x: q ? 0 : i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
|
|
265
|
+
width: q ? i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0) : h + d.right - (i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0)),
|
|
266
266
|
maxWidth: i.maxWidth,
|
|
267
267
|
fontWeight: i.fontWeight,
|
|
268
268
|
align: i.align
|
|
269
269
|
};
|
|
270
270
|
return /* @__PURE__ */ s.jsx(Ue, { color: i.color, connectorsSettings: Ee, labelSettings: Ge, text: i.text, classNames: i.classNames, styles: i.styles, animate: a, isInView: u }, y);
|
|
271
|
-
}, t[108] = a, t[109] =
|
|
271
|
+
}, t[108] = a, t[109] = r, t[110] = h, t[111] = u, t[112] = d.right, t[113] = q, t[114] = f, t[115] = m, t[116] = o) : o = t[116], re = At.map(o), t[98] = a, t[99] = At, t[100] = r, t[101] = h, t[102] = u, t[103] = d.right, t[104] = q, t[105] = f, t[106] = m, t[107] = re;
|
|
272
272
|
} else
|
|
273
|
-
|
|
274
|
-
let Oe;
|
|
275
|
-
t[117] !== ie ? (Oe = /* @__PURE__ */ s.jsx("g", { children: ie }), t[117] = ie, t[118] = Oe) : Oe = t[118];
|
|
273
|
+
re = t[107];
|
|
276
274
|
let Ce;
|
|
277
|
-
t[
|
|
275
|
+
t[117] !== re ? (Ce = /* @__PURE__ */ s.jsx("g", { children: re }), t[117] = re, t[118] = Ce) : Ce = t[118];
|
|
278
276
|
let Ae;
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
277
|
+
t[119] !== Q ? (Ae = Q.filter(jo).map(Do), t[119] = Q, t[120] = Ae) : Ae = t[120];
|
|
278
|
+
let De;
|
|
279
|
+
return t[121] !== A?.tooltip || t[122] !== ut || t[123] !== pt || t[124] !== p || t[125] !== b?.tooltip || t[126] !== Ot ? (De = p && Ot && ut && pt ? /* @__PURE__ */ s.jsx(Fe, { data: p, body: Ot, xPos: ut, yPos: pt, backgroundStyle: b?.tooltip, className: A?.tooltip }) : null, t[121] = A?.tooltip, t[122] = ut, t[123] = pt, t[124] = p, t[125] = b?.tooltip, t[126] = Ot, t[127] = De) : De = t[127], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
280
|
+
/* @__PURE__ */ s.jsx(Ft.svg, { width: `${w}px`, height: `${j}px`, viewBox: `0 0 ${w} ${j}`, direction: "ltr", ref: jt, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${d.left},${d.top})`, children: [
|
|
281
|
+
ot,
|
|
282
|
+
/* @__PURE__ */ s.jsx(Be, { areaSettings: _t, scaleX: f, scaleY: m, animate: a, isInView: u }),
|
|
283
283
|
/* @__PURE__ */ s.jsxs("g", { children: [
|
|
284
|
-
/* @__PURE__ */ s.jsx(Ze, { values:
|
|
284
|
+
/* @__PURE__ */ s.jsx(Ze, { values: Nt.filter(Eo), y: Nt.filter(Xo).map((o) => m(o)), x1: 0 - C, x2: h + d.right, styles: xt, classNames: yt, suffix: I, prefix: x, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: K }),
|
|
285
285
|
Y,
|
|
286
|
-
|
|
286
|
+
nt
|
|
287
287
|
] }),
|
|
288
|
-
/* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(Ke, { values:
|
|
289
|
-
|
|
290
|
-
/* @__PURE__ */ s.jsxs(
|
|
291
|
-
|
|
288
|
+
/* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(Ke, { values: ye, x: Re, y1: 0, y2: L, styles: ve, classNames: we, suffix: I, prefix: x, labelType: "primary", showGridLines: !0, precision: K }) }),
|
|
289
|
+
be,
|
|
290
|
+
/* @__PURE__ */ s.jsxs(Ft.g, { children: [
|
|
291
|
+
fe.map((o) => /* @__PURE__ */ s.jsxs(Ft.g, { exit: {
|
|
292
292
|
opacity: 0,
|
|
293
293
|
transition: {
|
|
294
294
|
duration: a.duration
|
|
295
295
|
}
|
|
296
296
|
}, variants: {
|
|
297
297
|
initial: {
|
|
298
|
-
opacity: p ? o[0].label === p.label ? 1 :
|
|
298
|
+
opacity: p ? o[0].label === p.label ? 1 : S : Dt ? o[0].color && c[T.indexOf(o[0].color)] === Dt ? 1 : S : R.length !== 0 ? R.indexOf(o[0].label) !== -1 ? 1 : S : 1
|
|
299
299
|
},
|
|
300
300
|
whileInView: {
|
|
301
|
-
opacity: p ? o[0].label === p.label ? 1 :
|
|
301
|
+
opacity: p ? o[0].label === p.label ? 1 : S : Dt ? o[0].color && c[T.indexOf(o[0].color)] === Dt ? 1 : S : R.length !== 0 ? R.indexOf(o[0].label) !== -1 ? 1 : S : 1,
|
|
302
302
|
transition: {
|
|
303
303
|
duration: a.duration
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
}, initial: "initial", animate: u ? "whileInView" : "initial", children: [
|
|
307
|
-
/* @__PURE__ */ s.jsx(
|
|
307
|
+
/* @__PURE__ */ s.jsx(Ft.path, { d: kt(o.filter(Yo)) || "", style: {
|
|
308
308
|
fill: "none",
|
|
309
|
-
strokeWidth: p ? o[0].label === p.label ?
|
|
309
|
+
strokeWidth: p ? o[0].label === p.label ? V + Math.max(2, 0.5 * V) : V : R.length !== 0 && R.indexOf(o[0].label) !== -1 ? V + Math.max(2, 0.5 * V) : V
|
|
310
310
|
}, exit: {
|
|
311
311
|
opacity: 0,
|
|
312
312
|
transition: {
|
|
@@ -315,21 +315,21 @@ function Ao(e) {
|
|
|
315
315
|
}, variants: {
|
|
316
316
|
initial: {
|
|
317
317
|
pathLength: 0,
|
|
318
|
-
d:
|
|
318
|
+
d: kt(o.filter(Wo)) || "",
|
|
319
319
|
opacity: 1,
|
|
320
|
-
stroke:
|
|
320
|
+
stroke: n.filter(Ho).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray
|
|
321
321
|
},
|
|
322
322
|
whileInView: {
|
|
323
323
|
pathLength: 1,
|
|
324
|
-
d:
|
|
324
|
+
d: kt(o.filter(Vo)) || "",
|
|
325
325
|
opacity: 1,
|
|
326
|
-
stroke:
|
|
326
|
+
stroke: n.filter(No).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
|
|
327
327
|
transition: {
|
|
328
328
|
duration: a.duration
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}, initial: "initial", animate: u ? "whileInView" : "initial" }),
|
|
332
|
-
o.map((i, y) => /* @__PURE__ */ s.jsx(
|
|
332
|
+
o.map((i, y) => /* @__PURE__ */ s.jsx(Ft.g, { children: v(i.y) ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children: se ? /* @__PURE__ */ s.jsx(Ft.circle, { r: h / o.length < 5 ? 0 : h / o.length < 20 ? 2 : 4, exit: {
|
|
333
333
|
opacity: 0,
|
|
334
334
|
transition: {
|
|
335
335
|
duration: a.duration
|
|
@@ -337,22 +337,22 @@ function Ao(e) {
|
|
|
337
337
|
}, variants: {
|
|
338
338
|
initial: {
|
|
339
339
|
opacity: 0,
|
|
340
|
-
fill:
|
|
341
|
-
cx:
|
|
340
|
+
fill: n.filter(ko).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
|
|
341
|
+
cx: f(i.date),
|
|
342
342
|
cy: m(i.y)
|
|
343
343
|
},
|
|
344
344
|
whileInView: {
|
|
345
345
|
opacity: 1,
|
|
346
|
-
fill:
|
|
346
|
+
fill: n.filter(So).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
|
|
347
347
|
transition: {
|
|
348
|
-
duration:
|
|
349
|
-
delay:
|
|
348
|
+
duration: k ? a.duration : 0.5,
|
|
349
|
+
delay: k ? 0 : a.duration
|
|
350
350
|
},
|
|
351
|
-
cx:
|
|
351
|
+
cx: f(i.date),
|
|
352
352
|
cy: m(i.y)
|
|
353
353
|
}
|
|
354
354
|
}, initial: "initial", animate: u ? "whileInView" : "initial" }) : null }) }, y)),
|
|
355
|
-
(R.indexOf(o[0].label) !== -1 || p?.label === o[0].label) &&
|
|
355
|
+
(R.indexOf(o[0].label) !== -1 || p?.label === o[0].label) && de ? /* @__PURE__ */ s.jsx(Ft.text, { className: "text-sm font-bold", dx: 5, dy: 4, exit: {
|
|
356
356
|
opacity: 0,
|
|
357
357
|
transition: {
|
|
358
358
|
duration: a.duration
|
|
@@ -360,34 +360,34 @@ function Ao(e) {
|
|
|
360
360
|
}, variants: {
|
|
361
361
|
initial: {
|
|
362
362
|
opacity: 0,
|
|
363
|
-
fill:
|
|
364
|
-
x:
|
|
363
|
+
fill: n.filter(To).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
|
|
364
|
+
x: f(o[o.length - 1].date),
|
|
365
365
|
y: m(o[o.length - 1].y)
|
|
366
366
|
},
|
|
367
367
|
whileInView: {
|
|
368
368
|
opacity: 1,
|
|
369
|
-
fill:
|
|
370
|
-
x:
|
|
369
|
+
fill: n.filter($o).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
|
|
370
|
+
x: f(o[o.length - 1].date),
|
|
371
371
|
y: m(o[o.length - 1].y),
|
|
372
372
|
transition: {
|
|
373
|
-
duration:
|
|
374
|
-
delay:
|
|
373
|
+
duration: k ? a.duration : 0.5,
|
|
374
|
+
delay: k ? 0 : a.duration
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
}, initial: "initial", animate: u ? "whileInView" : "initial", children: o[0].label }) : null
|
|
378
378
|
] }, o[0].label)),
|
|
379
|
-
p ? /* @__PURE__ */ s.jsx("text", { y: m(p.y) - 8, x:
|
|
380
|
-
fill:
|
|
379
|
+
p ? /* @__PURE__ */ s.jsx("text", { y: m(p.y) - 8, x: f(p.date), className: ke("graph-value text-sm font-bold", A?.graphObjectValues), style: {
|
|
380
|
+
fill: n.filter(Mo).length === 0 ? c[0] : p.color ? c[T.indexOf(p.color)] : z.gray,
|
|
381
381
|
textAnchor: "middle",
|
|
382
382
|
...b?.graphObjectValues || {}
|
|
383
|
-
}, children:
|
|
383
|
+
}, children: Ye(p.y, xe, K, x, I) }) : null
|
|
384
384
|
] }),
|
|
385
385
|
Xe,
|
|
386
|
-
be,
|
|
387
386
|
Oe,
|
|
388
|
-
Ce
|
|
387
|
+
Ce,
|
|
388
|
+
Ae
|
|
389
389
|
] }) }),
|
|
390
|
-
|
|
390
|
+
De
|
|
391
391
|
] });
|
|
392
392
|
}
|
|
393
393
|
function Do(e) {
|
|
@@ -478,129 +478,136 @@ function _o(e) {
|
|
|
478
478
|
return e.y;
|
|
479
479
|
}
|
|
480
480
|
function ti(e, t) {
|
|
481
|
-
return
|
|
481
|
+
return Ve(e, t);
|
|
482
482
|
}
|
|
483
483
|
function ei(e) {
|
|
484
484
|
return !v(e.y);
|
|
485
485
|
}
|
|
486
486
|
function Gi(e) {
|
|
487
|
-
const t =
|
|
488
|
-
data:
|
|
487
|
+
const t = Ie.c(106), {
|
|
488
|
+
data: n,
|
|
489
489
|
graphTitle: w,
|
|
490
490
|
showNAColor: j,
|
|
491
|
-
colors:
|
|
492
|
-
colorDomain:
|
|
493
|
-
suffix:
|
|
494
|
-
sources:
|
|
495
|
-
prefix:
|
|
496
|
-
graphDescription:
|
|
491
|
+
colors: c,
|
|
492
|
+
colorDomain: r,
|
|
493
|
+
suffix: bt,
|
|
494
|
+
sources: rt,
|
|
495
|
+
prefix: zt,
|
|
496
|
+
graphDescription: st,
|
|
497
497
|
height: I,
|
|
498
498
|
width: x,
|
|
499
499
|
footNote: C,
|
|
500
|
-
noOfXTicks:
|
|
501
|
-
dateFormat:
|
|
502
|
-
padding:
|
|
503
|
-
backgroundColor:
|
|
504
|
-
leftMargin:
|
|
505
|
-
rightMargin:
|
|
500
|
+
noOfXTicks: Ot,
|
|
501
|
+
dateFormat: at,
|
|
502
|
+
padding: lt,
|
|
503
|
+
backgroundColor: Ut,
|
|
504
|
+
leftMargin: U,
|
|
505
|
+
rightMargin: Ct,
|
|
506
506
|
topMargin: R,
|
|
507
507
|
bottomMargin: a,
|
|
508
|
-
showColorScale:
|
|
509
|
-
tooltip:
|
|
510
|
-
relativeHeight:
|
|
511
|
-
onSeriesMouseOver:
|
|
512
|
-
showLabels:
|
|
513
|
-
refValues:
|
|
514
|
-
highlightAreaSettings:
|
|
515
|
-
graphID:
|
|
516
|
-
minValue:
|
|
517
|
-
maxValue:
|
|
508
|
+
showColorScale: q,
|
|
509
|
+
tooltip: V,
|
|
510
|
+
relativeHeight: se,
|
|
511
|
+
onSeriesMouseOver: At,
|
|
512
|
+
showLabels: qt,
|
|
513
|
+
refValues: J,
|
|
514
|
+
highlightAreaSettings: Jt,
|
|
515
|
+
graphID: Kt,
|
|
516
|
+
minValue: Qt,
|
|
517
|
+
maxValue: ct,
|
|
518
518
|
highlightedLines: b,
|
|
519
|
-
graphDownload:
|
|
520
|
-
dataDownload:
|
|
519
|
+
graphDownload: T,
|
|
520
|
+
dataDownload: Dt,
|
|
521
521
|
animate: A,
|
|
522
|
-
language:
|
|
523
|
-
colorLegendTitle:
|
|
524
|
-
minHeight:
|
|
525
|
-
strokeWidth:
|
|
526
|
-
showDots:
|
|
527
|
-
annotations:
|
|
528
|
-
customHighlightAreaSettings:
|
|
522
|
+
language: de,
|
|
523
|
+
colorLegendTitle: S,
|
|
524
|
+
minHeight: K,
|
|
525
|
+
strokeWidth: xe,
|
|
526
|
+
showDots: Q,
|
|
527
|
+
annotations: jt,
|
|
528
|
+
customHighlightAreaSettings: Z,
|
|
529
529
|
theme: u,
|
|
530
|
-
ariaLabel:
|
|
531
|
-
yAxisTitle:
|
|
532
|
-
noOfYTicks:
|
|
533
|
-
minDate:
|
|
534
|
-
maxDate:
|
|
535
|
-
curveType:
|
|
530
|
+
ariaLabel: k,
|
|
531
|
+
yAxisTitle: ae,
|
|
532
|
+
noOfYTicks: Lt,
|
|
533
|
+
minDate: ft,
|
|
534
|
+
maxDate: le,
|
|
535
|
+
curveType: Mt,
|
|
536
536
|
styles: l,
|
|
537
|
-
classNames:
|
|
538
|
-
dimmedOpacity:
|
|
539
|
-
precision:
|
|
537
|
+
classNames: g,
|
|
538
|
+
dimmedOpacity: $t,
|
|
539
|
+
precision: Zt,
|
|
540
540
|
customLayers: p,
|
|
541
|
-
naLabel:
|
|
542
|
-
} = e,
|
|
543
|
-
let
|
|
544
|
-
t[0] !==
|
|
545
|
-
const h =
|
|
541
|
+
naLabel: mt
|
|
542
|
+
} = e, ut = j === void 0 ? !0 : j, _ = bt === void 0 ? "" : bt, pt = zt === void 0 ? "" : zt, tt = Ot === void 0 ? 10 : Ot, Tt = at === void 0 ? "yyyy" : at, ht = Ut === void 0 ? !1 : Ut, d = U === void 0 ? 30 : U, ce = Ct === void 0 ? 50 : Ct, fe = R === void 0 ? 20 : R, gt = a === void 0 ? 25 : a, St = q === void 0 ? !0 : q, dt = qt === void 0 ? !0 : qt;
|
|
543
|
+
let _t;
|
|
544
|
+
t[0] !== J ? (_t = J === void 0 ? [] : J, t[0] = J, t[1] = _t) : _t = t[1];
|
|
545
|
+
const h = _t;
|
|
546
546
|
let L;
|
|
547
|
-
t[2] !==
|
|
548
|
-
const
|
|
549
|
-
let
|
|
550
|
-
t[4] !== b ? (
|
|
551
|
-
const O =
|
|
552
|
-
let
|
|
553
|
-
t[6] !==
|
|
554
|
-
const
|
|
555
|
-
let
|
|
556
|
-
t[8] !==
|
|
557
|
-
const
|
|
558
|
-
let
|
|
559
|
-
t[10] !== p ? (
|
|
560
|
-
const
|
|
561
|
-
let
|
|
562
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
563
|
-
const
|
|
564
|
-
|
|
547
|
+
t[2] !== Jt ? (L = Jt === void 0 ? [] : Jt, t[2] = Jt, t[3] = L) : L = t[3];
|
|
548
|
+
const me = L;
|
|
549
|
+
let te;
|
|
550
|
+
t[4] !== b ? (te = b === void 0 ? [] : b, t[4] = b, t[5] = te) : te = t[5];
|
|
551
|
+
const O = te, X = T === void 0 ? !1 : T, f = Dt === void 0 ? !1 : Dt, et = A === void 0 ? !1 : A, N = de === void 0 ? "en" : de, m = K === void 0 ? 0 : K, ue = xe === void 0 ? 2 : xe, kt = Q === void 0 ? !0 : Q;
|
|
552
|
+
let Nt;
|
|
553
|
+
t[6] !== jt ? (Nt = jt === void 0 ? [] : jt, t[6] = jt, t[7] = Nt) : Nt = t[7];
|
|
554
|
+
const ee = Nt;
|
|
555
|
+
let ot;
|
|
556
|
+
t[8] !== Z ? (ot = Z === void 0 ? [] : Z, t[8] = Z, t[9] = ot) : ot = t[9];
|
|
557
|
+
const Vt = ot, M = u === void 0 ? "light" : u, xt = Lt === void 0 ? 5 : Lt, Ht = Mt === void 0 ? "curve" : Mt, Wt = $t === void 0 ? 0.3 : $t, yt = Zt === void 0 ? 2 : Zt;
|
|
558
|
+
let vt;
|
|
559
|
+
t[10] !== p ? (vt = p === void 0 ? [] : p, t[10] = p, t[11] = vt) : vt = t[11];
|
|
560
|
+
const Yt = vt, It = mt === void 0 ? "NA" : mt, [it, pe] = Bt(0), [H, he] = Bt(0), [Rt, ge] = Bt(void 0), E = je(null), oe = je(null);
|
|
561
|
+
let wt, W;
|
|
562
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (wt = () => {
|
|
563
|
+
const Gt = new ResizeObserver((ye) => {
|
|
564
|
+
pe(ye[0].target.clientWidth || 620), he(ye[0].target.clientHeight || 480);
|
|
565
565
|
});
|
|
566
|
-
return E.current &&
|
|
567
|
-
}, W = [], t[12] =
|
|
568
|
-
const
|
|
569
|
-
let
|
|
570
|
-
t[14] !==
|
|
566
|
+
return E.current && Gt.observe(E.current), () => Gt.disconnect();
|
|
567
|
+
}, W = [], t[12] = wt, t[13] = W) : (wt = t[12], W = t[13]), Ne(wt, W);
|
|
568
|
+
const Xt = g?.graphContainer, Et = l?.graphContainer;
|
|
569
|
+
let $;
|
|
570
|
+
t[14] !== g?.description || t[15] !== g?.title || t[16] !== n || t[17] !== f || t[18] !== st || t[19] !== X || t[20] !== w || t[21] !== l?.description || t[22] !== l?.title || t[23] !== x ? ($ = w || st || X || f ? /* @__PURE__ */ s.jsx(ho, { styles: {
|
|
571
571
|
title: l?.title,
|
|
572
572
|
description: l?.description
|
|
573
573
|
}, classNames: {
|
|
574
|
-
title:
|
|
575
|
-
description:
|
|
576
|
-
}, graphTitle: w, graphDescription:
|
|
574
|
+
title: g?.title,
|
|
575
|
+
description: g?.description
|
|
576
|
+
}, graphTitle: w, graphDescription: st, width: x, graphDownload: X ? oe : void 0, dataDownload: f ? n.map(ci).filter(li).length > 0 ? n.map(ai).filter(si) : n.filter(ri) : null }) : null, t[14] = g?.description, t[15] = g?.title, t[16] = n, t[17] = f, t[18] = st, t[19] = X, t[20] = w, t[21] = l?.description, t[22] = l?.title, t[23] = x, t[24] = $) : $ = t[24];
|
|
577
577
|
let Y;
|
|
578
|
-
t[25] !==
|
|
579
|
-
Mt && r.filter(ni).length !== 0 ? /* @__PURE__ */ s.jsx(xo, { width: x, colorLegendTitle: T, colors: f || P[V].categoricalColors.colors, colorDomain: n || je(r, "color", !0), setSelectedColor: pe, showNAColor: lt, className: d?.colorLegend }) : null,
|
|
580
|
-
/* @__PURE__ */ s.jsx(yo, { ref: E, children: tt && H ? /* @__PURE__ */ s.jsx(Ao, { data: r, lineColors: r.filter(ii).length === 0 ? f ? [f] : [P.primaryColors["blue-600"]] : f || P[V].categoricalColors.colors, width: tt, height: H, dateFormat: Lt, noOfXTicks: Q ?? wo(tt), leftMargin: g, rightMargin: ae, topMargin: le, bottomMargin: mt, tooltip: N, onSeriesMouseOver: bt, suffix: K, prefix: ct, highlightAreaSettings: ce, refValues: h, minValue: Ut, maxValue: rt, highlightedLines: O, animate: Z === !0 ? {
|
|
581
|
-
duration: 0.5,
|
|
582
|
-
once: !0,
|
|
583
|
-
amount: 0.5
|
|
584
|
-
} : Z || {
|
|
585
|
-
duration: 0,
|
|
586
|
-
once: !0,
|
|
587
|
-
amount: 0
|
|
588
|
-
}, rtl: k === "he" || k === "ar", strokeWidth: fe, showDots: $t, annotations: Qt, customHighlightAreaSettings: St, yAxisTitle: re, noOfYTicks: pt, minDate: st, maxDate: se, curveType: kt, styles: l, classNames: d, selectedColor: Wt, showLabels: ut, colorDomain: r.filter(oi).length === 0 ? [] : n || je(r, "color", !0), dimmedOpacity: Nt, precision: ht, customLayers: Vt, naLabel: Ht }) : null })
|
|
589
|
-
] }), t[25] = Z, t[26] = Qt, t[27] = mt, t[28] = d, t[29] = n, t[30] = T, t[31] = f, t[32] = kt, t[33] = St, t[34] = Vt, t[35] = r, t[36] = Lt, t[37] = Nt, t[38] = ce, t[39] = O, t[40] = k, t[41] = g, t[42] = se, t[43] = rt, t[44] = st, t[45] = Ut, t[46] = Ht, t[47] = Q, t[48] = pt, t[49] = bt, t[50] = ht, t[51] = ct, t[52] = h, t[53] = ae, t[54] = Wt, t[55] = Mt, t[56] = $t, t[57] = ut, t[58] = lt, t[59] = fe, t[60] = l, t[61] = K, t[62] = H, t[63] = tt, t[64] = V, t[65] = N, t[66] = le, t[67] = x, t[68] = re, t[69] = Y) : Y = t[69];
|
|
578
|
+
t[25] !== g?.colorLegend || t[26] !== r || t[27] !== S || t[28] !== c || t[29] !== n || t[30] !== St || t[31] !== ut || t[32] !== M || t[33] !== x ? (Y = St && n.filter(ni).length !== 0 && n.length > 0 ? /* @__PURE__ */ s.jsx(xo, { width: x, colorLegendTitle: S, colors: c || z[M].categoricalColors.colors, colorDomain: r || Le(n, "color", !0), setSelectedColor: ge, showNAColor: ut, className: g?.colorLegend }) : null, t[25] = g?.colorLegend, t[26] = r, t[27] = S, t[28] = c, t[29] = n, t[30] = St, t[31] = ut, t[32] = M, t[33] = x, t[34] = Y) : Y = t[34];
|
|
590
579
|
let G;
|
|
591
|
-
t[
|
|
580
|
+
t[35] !== n.length ? (G = n.length === 0 && /* @__PURE__ */ s.jsx(go, {}), t[35] = n.length, t[36] = G) : G = t[36];
|
|
581
|
+
let P;
|
|
582
|
+
t[37] !== et || t[38] !== ee || t[39] !== gt || t[40] !== g || t[41] !== r || t[42] !== c || t[43] !== Ht || t[44] !== Vt || t[45] !== Yt || t[46] !== n || t[47] !== Tt || t[48] !== Wt || t[49] !== me || t[50] !== O || t[51] !== N || t[52] !== d || t[53] !== le || t[54] !== ct || t[55] !== ft || t[56] !== Qt || t[57] !== It || t[58] !== tt || t[59] !== xt || t[60] !== At || t[61] !== yt || t[62] !== pt || t[63] !== h || t[64] !== ce || t[65] !== Rt || t[66] !== kt || t[67] !== dt || t[68] !== ue || t[69] !== l || t[70] !== _ || t[71] !== H || t[72] !== it || t[73] !== M || t[74] !== V || t[75] !== fe || t[76] !== ae ? (P = it && H && n.length > 0 ? /* @__PURE__ */ s.jsx(Ao, { data: n, lineColors: n.filter(ii).length === 0 ? c ? [c] : [z.primaryColors["blue-600"]] : c || z[M].categoricalColors.colors, width: it, height: H, dateFormat: Tt, noOfXTicks: tt ?? wo(it), leftMargin: d, rightMargin: ce, topMargin: fe, bottomMargin: gt, tooltip: V, onSeriesMouseOver: At, suffix: _, prefix: pt, highlightAreaSettings: me, refValues: h, minValue: Qt, maxValue: ct, highlightedLines: O, animate: et === !0 ? {
|
|
583
|
+
duration: 0.5,
|
|
584
|
+
once: !0,
|
|
585
|
+
amount: 0.5
|
|
586
|
+
} : et || {
|
|
587
|
+
duration: 0,
|
|
588
|
+
once: !0,
|
|
589
|
+
amount: 0
|
|
590
|
+
}, rtl: N === "he" || N === "ar", strokeWidth: ue, showDots: kt, annotations: ee, customHighlightAreaSettings: Vt, yAxisTitle: ae, noOfYTicks: xt, minDate: ft, maxDate: le, curveType: Ht, styles: l, classNames: g, selectedColor: Rt, showLabels: dt, colorDomain: n.filter(oi).length === 0 ? [] : r || Le(n, "color", !0), dimmedOpacity: Wt, precision: yt, customLayers: Yt, naLabel: It }) : null, t[37] = et, t[38] = ee, t[39] = gt, t[40] = g, t[41] = r, t[42] = c, t[43] = Ht, t[44] = Vt, t[45] = Yt, t[46] = n, t[47] = Tt, t[48] = Wt, t[49] = me, t[50] = O, t[51] = N, t[52] = d, t[53] = le, t[54] = ct, t[55] = ft, t[56] = Qt, t[57] = It, t[58] = tt, t[59] = xt, t[60] = At, t[61] = yt, t[62] = pt, t[63] = h, t[64] = ce, t[65] = Rt, t[66] = kt, t[67] = dt, t[68] = ue, t[69] = l, t[70] = _, t[71] = H, t[72] = it, t[73] = M, t[74] = V, t[75] = fe, t[76] = ae, t[77] = P) : P = t[77];
|
|
591
|
+
let F;
|
|
592
|
+
t[78] !== G || t[79] !== P ? (F = /* @__PURE__ */ s.jsxs(yo, { ref: E, children: [
|
|
593
|
+
G,
|
|
594
|
+
P
|
|
595
|
+
] }), t[78] = G, t[79] = P, t[80] = F) : F = t[80];
|
|
596
|
+
let B;
|
|
597
|
+
t[81] !== g?.footnote || t[82] !== g?.source || t[83] !== C || t[84] !== rt || t[85] !== l?.footnote || t[86] !== l?.source || t[87] !== x ? (B = rt || C ? /* @__PURE__ */ s.jsx(po, { styles: {
|
|
592
598
|
footnote: l?.footnote,
|
|
593
599
|
source: l?.source
|
|
594
600
|
}, classNames: {
|
|
595
|
-
footnote:
|
|
596
|
-
source:
|
|
597
|
-
}, sources:
|
|
598
|
-
let
|
|
599
|
-
return t[
|
|
600
|
-
|
|
601
|
+
footnote: g?.footnote,
|
|
602
|
+
source: g?.source
|
|
603
|
+
}, sources: rt, footNote: C, width: x }) : null, t[81] = g?.footnote, t[82] = g?.source, t[83] = C, t[84] = rt, t[85] = l?.footnote, t[86] = l?.source, t[87] = x, t[88] = B) : B = t[88];
|
|
604
|
+
let nt;
|
|
605
|
+
return t[89] !== k || t[90] !== ht || t[91] !== Kt || t[92] !== I || t[93] !== N || t[94] !== m || t[95] !== lt || t[96] !== se || t[97] !== Xt || t[98] !== Et || t[99] !== $ || t[100] !== Y || t[101] !== F || t[102] !== B || t[103] !== M || t[104] !== x ? (nt = /* @__PURE__ */ s.jsxs(vo, { className: Xt, style: Et, id: Kt, ref: oe, "aria-label": k, backgroundColor: ht, theme: M, language: N, minHeight: m, width: x, height: I, relativeHeight: se, padding: lt, children: [
|
|
606
|
+
$,
|
|
601
607
|
Y,
|
|
602
|
-
|
|
603
|
-
|
|
608
|
+
F,
|
|
609
|
+
B
|
|
610
|
+
] }), t[89] = k, t[90] = ht, t[91] = Kt, t[92] = I, t[93] = N, t[94] = m, t[95] = lt, t[96] = se, t[97] = Xt, t[98] = Et, t[99] = $, t[100] = Y, t[101] = F, t[102] = B, t[103] = M, t[104] = x, t[105] = nt) : nt = t[105], nt;
|
|
604
611
|
}
|
|
605
612
|
function oi(e) {
|
|
606
613
|
return e.color;
|