@undp/data-viz 2.1.2 → 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 +281 -274
- 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 +367 -356
- 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 +406 -399
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +10 -0
- package/dist/DonutChart.js +232 -263
- 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-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
- package/dist/GraphEl-oZwZiTHI.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- 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 +370 -363
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +328 -321
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +375 -368
- 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/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +35 -34
- 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 +367 -360
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +286 -279
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- 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/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- 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/Types.d.ts +1 -0
- package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
- package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
- package/dist/area-C1gxfNGD.cjs +2 -0
- package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
- package/dist/array-DMyR1sql.cjs +2 -0
- package/dist/array-DMyR1sql.cjs.map +1 -0
- package/dist/array-USo-Szhp.js +13 -0
- package/dist/array-USo-Szhp.js.map +1 -0
- package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
- package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
- package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
- package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.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 +7 -0
- package/dist/index.js +1 -1
- package/dist/line-DFlZsxI1.js +144 -0
- package/dist/line-DFlZsxI1.js.map +1 -0
- package/dist/line-DaEMhXmx.cjs +2 -0
- package/dist/line-DaEMhXmx.cjs.map +1 -0
- package/dist/style.css +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-YKUlz-37.cjs +0 -2
- package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
- package/dist/GraphEl-sVZvlyWe.js.map +0 -1
- package/dist/area-D3Qx7k7K.cjs +0 -2
- package/dist/array-B7TkkRH0.js +0 -89
- package/dist/array-B7TkkRH0.js.map +0 -1
- package/dist/array-DKbXV8lR.cjs +0 -2
- package/dist/array-DKbXV8lR.cjs.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
- package/dist/line-CPfhohvF.js +0 -68
- package/dist/line-CPfhohvF.js.map +0 -1
- package/dist/line-DHV4JwCR.cjs +0 -2
- package/dist/line-DHV4JwCR.cjs.map +0 -1
|
@@ -1,218 +1,218 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { p as
|
|
1
|
+
import { c as Ne, j as n, m as bt } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as xe, useState as Wt, useEffect as Ae } from "react";
|
|
3
|
+
import { p as Kt, f as De } from "./parse-DlCRUFh_.js";
|
|
4
4
|
import { o as Me } from "./index-BZQYSqar.js";
|
|
5
|
-
import { n as
|
|
5
|
+
import { n as fe } from "./numberFormattingFunction-14YCbkN2.js";
|
|
6
6
|
import { T as Oe } from "./Tooltip-Dj5eVppQ.js";
|
|
7
|
-
import { c as
|
|
7
|
+
import { c as V } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
8
|
import { X as Se } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
9
|
-
import { A as
|
|
10
|
-
import { A as
|
|
9
|
+
import { A as ve } from "./Axis-CRyfcLjc.js";
|
|
10
|
+
import { A as je } from "./AxisTitle-jeI7am8o.js";
|
|
11
11
|
import { H as Te } from "./index-SKgJALZg.js";
|
|
12
12
|
import { t as Ve } from "./time-BUL-dwnK.js";
|
|
13
|
-
import { a as
|
|
14
|
-
import { l as
|
|
15
|
-
import { c as $e, s as Ce, a as
|
|
13
|
+
import { a as be } from "./linear-BqltdMeF.js";
|
|
14
|
+
import { l as ke, c as Ie } from "./line-DFlZsxI1.js";
|
|
15
|
+
import { c as $e, s as Ce, a as Pe, m as Fe } from "./step-BrDul-H4.js";
|
|
16
16
|
import { s as He } from "./select-DKy99ogv.js";
|
|
17
17
|
import { a as We } from "./init-BhZylTFx.js";
|
|
18
18
|
import { p as Xe } from "./pointer-CWRWOsrb.js";
|
|
19
19
|
import { u as Ee } from "./use-in-view-Cxa7y1TH.js";
|
|
20
|
-
import { m as
|
|
20
|
+
import { m as ut } from "./proxy-BxkFHwUw.js";
|
|
21
21
|
import { GraphFooter as Ge } from "./GraphFooter.js";
|
|
22
22
|
import { GraphHeader as Ye } from "./GraphHeader.js";
|
|
23
23
|
import { ColorLegend as Re } from "./ColorLegend.js";
|
|
24
|
-
import { Colors as
|
|
25
|
-
import { E as Be } from "./EmptyState-
|
|
24
|
+
import { Colors as Le } from "./Colors.js";
|
|
25
|
+
import { E as Be } from "./EmptyState-C7ZXkZWd.js";
|
|
26
26
|
import { a as ze, G as Ue } from "./GraphContainer-CRqzdKu2.js";
|
|
27
27
|
import { g as qe } from "./getNoOfTicks-CpmRjcRF.js";
|
|
28
28
|
function Je(e) {
|
|
29
|
-
const t =
|
|
30
|
-
data:
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
29
|
+
const t = Ne.c(117), {
|
|
30
|
+
data: v,
|
|
31
|
+
width: J,
|
|
32
|
+
height: K,
|
|
33
33
|
lineColors: s,
|
|
34
|
-
labels:
|
|
35
|
-
sameAxes:
|
|
34
|
+
labels: A,
|
|
35
|
+
sameAxes: w,
|
|
36
36
|
dateFormat: x,
|
|
37
37
|
showValues: kt,
|
|
38
|
-
noOfXTicks:
|
|
39
|
-
rightMargin:
|
|
40
|
-
leftMargin:
|
|
41
|
-
topMargin:
|
|
38
|
+
noOfXTicks: Qt,
|
|
39
|
+
rightMargin: Zt,
|
|
40
|
+
leftMargin: Xt,
|
|
41
|
+
topMargin: Q,
|
|
42
42
|
bottomMargin: Lt,
|
|
43
|
-
tooltip:
|
|
43
|
+
tooltip: ft,
|
|
44
44
|
highlightAreaSettings: Nt,
|
|
45
45
|
onSeriesMouseOver: Dt,
|
|
46
46
|
animate: o,
|
|
47
|
-
strokeWidth:
|
|
48
|
-
showDots:
|
|
49
|
-
noOfYTicks:
|
|
50
|
-
lineSuffixes:
|
|
51
|
-
linePrefixes:
|
|
52
|
-
minDate:
|
|
47
|
+
strokeWidth: X,
|
|
48
|
+
showDots: I,
|
|
49
|
+
noOfYTicks: xt,
|
|
50
|
+
lineSuffixes: E,
|
|
51
|
+
linePrefixes: Z,
|
|
52
|
+
minDate: pt,
|
|
53
53
|
maxDate: Mt,
|
|
54
|
-
curveType:
|
|
55
|
-
styles:
|
|
54
|
+
curveType: _,
|
|
55
|
+
styles: r,
|
|
56
56
|
classNames: c,
|
|
57
|
-
precision:
|
|
58
|
-
customLayers:
|
|
59
|
-
showAxisLabels:
|
|
60
|
-
} = e,
|
|
61
|
-
let
|
|
62
|
-
t[0] !== o.amount || t[1] !== o.once ? (
|
|
57
|
+
precision: tt,
|
|
58
|
+
customLayers: G,
|
|
59
|
+
showAxisLabels: Y
|
|
60
|
+
} = e, Et = xe(null);
|
|
61
|
+
let dt;
|
|
62
|
+
t[0] !== o.amount || t[1] !== o.once ? (dt = {
|
|
63
63
|
once: o.once,
|
|
64
64
|
amount: o.amount
|
|
65
|
-
}, t[0] = o.amount, t[1] = o.once, t[2] =
|
|
66
|
-
const d = Ee(
|
|
67
|
-
let
|
|
68
|
-
t[3] !== o.duration || t[4] !== y || t[5] !== d ? (
|
|
65
|
+
}, t[0] = o.amount, t[1] = o.once, t[2] = dt) : dt = t[2];
|
|
66
|
+
const d = Ee(Et, dt), [y, Gt] = Wt(!1);
|
|
67
|
+
let ht, et;
|
|
68
|
+
t[3] !== o.duration || t[4] !== y || t[5] !== d ? (ht = () => {
|
|
69
69
|
if (d && !y) {
|
|
70
70
|
const i = setTimeout(() => {
|
|
71
|
-
|
|
71
|
+
Gt(!0);
|
|
72
72
|
}, (o.duration + 0.5) * 1e3);
|
|
73
73
|
return () => clearTimeout(i);
|
|
74
74
|
}
|
|
75
|
-
},
|
|
76
|
-
const
|
|
77
|
-
let
|
|
78
|
-
t[8] !== Lt || t[9] !==
|
|
79
|
-
top:
|
|
75
|
+
}, et = [d, y, o.duration], t[3] = o.duration, t[4] = y, t[5] = d, t[6] = ht, t[7] = et) : (ht = t[6], et = t[7]), Ae(ht, et);
|
|
76
|
+
const Yt = _ === "linear" ? Ie : _ === "step" ? $e : _ === "stepAfter" ? Ce : _ === "stepBefore" ? Pe : Fe, [N, Ot] = Wt(void 0), [yt, p] = Wt(void 0), [m, Rt] = Wt(void 0), it = Xt + 50, St = Zt + 65;
|
|
77
|
+
let nt;
|
|
78
|
+
t[8] !== Lt || t[9] !== it || t[10] !== St || t[11] !== Q ? (nt = {
|
|
79
|
+
top: Q,
|
|
80
80
|
bottom: Lt,
|
|
81
|
-
left:
|
|
81
|
+
left: it,
|
|
82
82
|
right: St
|
|
83
|
-
}, t[8] = Lt, t[9] =
|
|
84
|
-
const h =
|
|
85
|
-
let
|
|
86
|
-
t[13] !== x ? (
|
|
83
|
+
}, t[8] = Lt, t[9] = it, t[10] = St, t[11] = Q, t[12] = nt) : nt = t[12];
|
|
84
|
+
const h = nt, R = xe(null);
|
|
85
|
+
let D;
|
|
86
|
+
t[13] !== x ? (D = (i) => ({
|
|
87
87
|
...i,
|
|
88
|
-
date:
|
|
89
|
-
}), t[13] = x, t[14] =
|
|
90
|
-
const a = Me(
|
|
91
|
-
let
|
|
88
|
+
date: Kt(`${i.date}`, x, /* @__PURE__ */ new Date())
|
|
89
|
+
}), t[13] = x, t[14] = D) : D = t[14];
|
|
90
|
+
const a = Me(v.map(D), ["date"], ["asc"]);
|
|
91
|
+
let ot;
|
|
92
92
|
if (t[15] !== x || t[16] !== Nt) {
|
|
93
93
|
let i;
|
|
94
|
-
t[18] !== x ? (i = (
|
|
95
|
-
...
|
|
96
|
-
coordinates: [
|
|
97
|
-
}), t[18] = x, t[19] = i) : i = t[19],
|
|
94
|
+
t[18] !== x ? (i = (k) => ({
|
|
95
|
+
...k,
|
|
96
|
+
coordinates: [k.coordinates[0] === null ? null : Kt(`${k.coordinates[0]}`, x, /* @__PURE__ */ new Date()), k.coordinates[1] === null ? null : Kt(`${k.coordinates[1]}`, x, /* @__PURE__ */ new Date())]
|
|
97
|
+
}), t[18] = x, t[19] = i) : i = t[19], ot = Nt.map(i), t[15] = x, t[16] = Nt, t[17] = ot;
|
|
98
98
|
} else
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
const i = (
|
|
103
|
-
const
|
|
104
|
-
Ot(
|
|
105
|
-
},
|
|
106
|
-
Ot(void 0), p(void 0),
|
|
99
|
+
ot = t[17];
|
|
100
|
+
const gt = ot, u = J - h.left - h.right, l = K - h.top - h.bottom, Bt = pt ? Kt(`${pt}`, x, /* @__PURE__ */ new Date()) : a[0].date, Tt = Mt ? Kt(`${Mt}`, x, /* @__PURE__ */ new Date()) : a[a.length - 1].date, vt = Math.min(...a.map(Di).filter(Ni)) !== 1 / 0 ? Math.min(...a.map(Li).filter(ki)) > 0 ? 0 : Math.min(...a.map(bi).filter(ji)) : 0, st = Math.min(...a.map(wi).filter(Ai)) !== 1 / 0 ? Math.min(...a.map(vi).filter(gi)) > 0 ? 0 : Math.min(...a.map(yi).filter(hi)) : 0, at = Math.max(...a.map(di).filter(pi)) !== 1 / 0 ? Math.max(...a.map(xi).filter(fi)) : 0, B = Math.max(...a.map(ui).filter(mi)) !== 1 / 0 ? Math.max(...a.map(ci).filter(ri)) : 0, Vt = vt < st ? vt : st, z = at > B ? at : B, f = Ve().domain([Bt, Tt]).range([0, u]), L = be().domain([w ? Vt : vt, w ? z > 0 ? z : 0 : at > 0 ? at : 0]).range([l, 0]).nice(), g = be().domain([w ? Vt : st, w ? z > 0 ? z : 0 : B > 0 ? B : 0]).range([l, 0]).nice(), It = ke().defined(li).x((i) => f(i.date)).y((i) => L(i.y1)).curve(Yt), At = ke().defined(ai).x((i) => f(i.date)).y((i) => g(i.y2)).curve(Yt), zt = L.ticks(xt), Ut = g.ticks(xt), $t = f.ticks(Qt);
|
|
101
|
+
Ae(() => {
|
|
102
|
+
const i = (ge) => {
|
|
103
|
+
const we = a[We(a.map(si), f.invert(Xe(ge)[0]), 0)];
|
|
104
|
+
Ot(we || a[a.length - 1]), Dt?.(we || a[a.length - 1]), Rt(ge.clientY), p(ge.clientX);
|
|
105
|
+
}, k = () => {
|
|
106
|
+
Ot(void 0), p(void 0), Rt(void 0), Dt?.(void 0);
|
|
107
107
|
};
|
|
108
|
-
He(
|
|
109
|
-
}, [
|
|
110
|
-
let
|
|
111
|
-
t[20] !== o || t[21] !==
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
t[27] !==
|
|
115
|
-
axis:
|
|
116
|
-
}, t[27] =
|
|
117
|
-
let
|
|
118
|
-
t[29] !==
|
|
119
|
-
let
|
|
120
|
-
t[31] !== s[0] || t[32] !==
|
|
108
|
+
He(R.current).on("mousemove", i).on("mouseout", k);
|
|
109
|
+
}, [f, a, Dt]);
|
|
110
|
+
let lt;
|
|
111
|
+
t[20] !== o || t[21] !== l || t[22] !== u || t[23] !== gt || t[24] !== d || t[25] !== f ? (lt = /* @__PURE__ */ n.jsx(Te, { areaSettings: gt, width: u, height: l, scale: f, animate: o, isInView: d }), t[20] = o, t[21] = l, t[22] = u, t[23] = gt, t[24] = d, t[25] = f, t[26] = lt) : lt = t[26];
|
|
112
|
+
const wt = c?.xAxis?.axis;
|
|
113
|
+
let $;
|
|
114
|
+
t[27] !== wt ? ($ = {
|
|
115
|
+
axis: wt
|
|
116
|
+
}, t[27] = wt, t[28] = $) : $ = t[28];
|
|
117
|
+
let M;
|
|
118
|
+
t[29] !== r?.xAxis?.axis ? (M = r?.xAxis?.axis || {}, t[29] = r?.xAxis?.axis, t[30] = M) : M = t[30];
|
|
119
|
+
let C;
|
|
120
|
+
t[31] !== s[0] || t[32] !== M ? (C = {
|
|
121
121
|
axis: {
|
|
122
122
|
stroke: s[0],
|
|
123
|
-
...
|
|
123
|
+
...M
|
|
124
124
|
}
|
|
125
|
-
}, t[31] = s[0], t[32] =
|
|
126
|
-
let
|
|
127
|
-
t[34] !==
|
|
128
|
-
let
|
|
129
|
-
t[38] !== c?.yAxis?.title || t[39] !==
|
|
125
|
+
}, t[31] = s[0], t[32] = M, t[33] = C) : C = t[33];
|
|
126
|
+
let rt;
|
|
127
|
+
t[34] !== l || t[35] !== $ || t[36] !== C ? (rt = /* @__PURE__ */ n.jsx(ve, { y1: 0, y2: l, x1: -15, x2: -15, classNames: $, styles: C }), t[34] = l, t[35] = $, t[36] = C, t[37] = rt) : rt = t[37];
|
|
128
|
+
let P;
|
|
129
|
+
t[38] !== c?.yAxis?.title || t[39] !== l || t[40] !== A || t[41] !== s[0] || t[42] !== h.left || t[43] !== Y || t[44] !== r?.yAxis?.title ? (P = Y ? /* @__PURE__ */ n.jsx(je, { x: 10 - h.left, y: l / 2, style: {
|
|
130
130
|
fill: s[0],
|
|
131
|
-
...
|
|
132
|
-
}, className: c?.yAxis?.title, text:
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
t[46] !==
|
|
136
|
-
axis:
|
|
137
|
-
}, t[46] =
|
|
138
|
-
let
|
|
139
|
-
t[48] !==
|
|
140
|
-
let
|
|
141
|
-
t[50] !== s[1] || t[51] !==
|
|
131
|
+
...r?.yAxis?.title || {}
|
|
132
|
+
}, className: c?.yAxis?.title, text: A[0].length > 100 ? `${A[0].substring(0, 100)}...` : A[0], rotate90: !0 }) : null, t[38] = c?.yAxis?.title, t[39] = l, t[40] = A, t[41] = s[0], t[42] = h.left, t[43] = Y, t[44] = r?.yAxis?.title, t[45] = P) : P = t[45];
|
|
133
|
+
const qt = u + 15, ct = u + 15, Jt = c?.xAxis?.axis;
|
|
134
|
+
let F;
|
|
135
|
+
t[46] !== Jt ? (F = {
|
|
136
|
+
axis: Jt
|
|
137
|
+
}, t[46] = Jt, t[47] = F) : F = t[47];
|
|
138
|
+
let U;
|
|
139
|
+
t[48] !== r?.xAxis?.axis ? (U = r?.xAxis?.axis || {}, t[48] = r?.xAxis?.axis, t[49] = U) : U = t[49];
|
|
140
|
+
let O;
|
|
141
|
+
t[50] !== s[1] || t[51] !== U ? (O = {
|
|
142
142
|
axis: {
|
|
143
143
|
stroke: s[1],
|
|
144
|
-
...
|
|
144
|
+
...U
|
|
145
145
|
}
|
|
146
|
-
}, t[50] = s[1], t[51] =
|
|
147
|
-
let
|
|
148
|
-
t[53] !==
|
|
149
|
-
let
|
|
150
|
-
t[59] !== c?.yAxis?.title || t[60] !==
|
|
146
|
+
}, t[50] = s[1], t[51] = U, t[52] = O) : O = t[52];
|
|
147
|
+
let q;
|
|
148
|
+
t[53] !== l || t[54] !== qt || t[55] !== ct || t[56] !== F || t[57] !== O ? (q = /* @__PURE__ */ n.jsx(ve, { y1: 0, y2: l, x1: qt, x2: ct, classNames: F, styles: O }), t[53] = l, t[54] = qt, t[55] = ct, t[56] = F, t[57] = O, t[58] = q) : q = t[58];
|
|
149
|
+
let mt;
|
|
150
|
+
t[59] !== c?.yAxis?.title || t[60] !== l || t[61] !== u || t[62] !== A || t[63] !== s[1] || t[64] !== h.right || t[65] !== Y || t[66] !== r?.yAxis?.title ? (mt = Y ? /* @__PURE__ */ n.jsx(je, { x: u + h.right - 15, y: l / 2, style: {
|
|
151
151
|
fill: s[1],
|
|
152
|
-
...
|
|
153
|
-
}, className: c?.yAxis?.title, text:
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
t[68] !==
|
|
157
|
-
axis:
|
|
158
|
-
}, t[68] =
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
t[70] !==
|
|
162
|
-
axis:
|
|
163
|
-
}, t[70] =
|
|
164
|
-
let
|
|
165
|
-
t[72] !==
|
|
166
|
-
let
|
|
167
|
-
t[77] !== x ? (
|
|
168
|
-
const
|
|
169
|
-
let Qt;
|
|
170
|
-
t[79] !== ue || t[80] !== fe ? (Qt = {
|
|
171
|
-
gridLines: ue,
|
|
172
|
-
labels: fe
|
|
173
|
-
}, t[79] = ue, t[80] = fe, t[81] = Qt) : Qt = t[81];
|
|
174
|
-
const xe = c?.xAxis?.gridLines;
|
|
175
|
-
let Ct;
|
|
176
|
-
t[82] !== xe ? (Ct = bt("opacity-0", xe), t[82] = xe, t[83] = Ct) : Ct = t[83];
|
|
177
|
-
const pe = c?.xAxis?.labels;
|
|
178
|
-
let Ft;
|
|
179
|
-
t[84] !== pe ? (Ft = bt("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", pe), t[84] = pe, t[85] = Ft) : Ft = t[85];
|
|
180
|
-
let Zt;
|
|
181
|
-
t[86] !== Ct || t[87] !== Ft ? (Zt = {
|
|
182
|
-
gridLines: Ct,
|
|
183
|
-
labels: Ft
|
|
184
|
-
}, t[86] = Ct, t[87] = Ft, t[88] = Zt) : Zt = t[88];
|
|
185
|
-
let _t;
|
|
186
|
-
t[89] !== H ? (_t = H.filter(oi).map(ni), t[89] = H, t[90] = _t) : _t = t[90];
|
|
152
|
+
...r?.yAxis?.title || {}
|
|
153
|
+
}, className: c?.yAxis?.title, text: A[1].length > 100 ? `${A[1].substring(0, 100)}...` : A[1], rotate90: !0 }) : null, t[59] = c?.yAxis?.title, t[60] = l, t[61] = u, t[62] = A, t[63] = s[1], t[64] = h.right, t[65] = Y, t[66] = r?.yAxis?.title, t[67] = mt) : mt = t[67];
|
|
154
|
+
const jt = u + 15, H = c?.xAxis?.axis;
|
|
155
|
+
let j;
|
|
156
|
+
t[68] !== H ? (j = {
|
|
157
|
+
axis: H
|
|
158
|
+
}, t[68] = H, t[69] = j) : j = t[69];
|
|
159
|
+
const W = r?.xAxis?.axis;
|
|
160
|
+
let b;
|
|
161
|
+
t[70] !== W ? (b = {
|
|
162
|
+
axis: W
|
|
163
|
+
}, t[70] = W, t[71] = b) : b = t[71];
|
|
164
|
+
let S;
|
|
165
|
+
t[72] !== l || t[73] !== jt || t[74] !== j || t[75] !== b ? (S = /* @__PURE__ */ n.jsx(ve, { y1: l, y2: l, x1: -15, x2: jt, classNames: j, styles: b }), t[72] = l, t[73] = jt, t[74] = j, t[75] = b, t[76] = S) : S = t[76];
|
|
166
|
+
let T;
|
|
167
|
+
t[77] !== x ? (T = (i) => De(i, x), t[77] = x, t[78] = T) : T = t[78];
|
|
168
|
+
const Ct = $t.map(T), _t = $t.map((i) => f(i)), Pt = r?.xAxis?.gridLines, pe = r?.xAxis?.labels;
|
|
187
169
|
let te;
|
|
188
|
-
t[
|
|
170
|
+
t[79] !== Pt || t[80] !== pe ? (te = {
|
|
171
|
+
gridLines: Pt,
|
|
172
|
+
labels: pe
|
|
173
|
+
}, t[79] = Pt, t[80] = pe, t[81] = te) : te = t[81];
|
|
174
|
+
const de = c?.xAxis?.gridLines;
|
|
175
|
+
let Ft;
|
|
176
|
+
t[82] !== de ? (Ft = bt("opacity-0", de), t[82] = de, t[83] = Ft) : Ft = t[83];
|
|
177
|
+
const he = c?.xAxis?.labels;
|
|
178
|
+
let Ht;
|
|
179
|
+
t[84] !== he ? (Ht = bt("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", he), t[84] = he, t[85] = Ht) : Ht = t[85];
|
|
180
|
+
let ee;
|
|
181
|
+
t[86] !== Ft || t[87] !== Ht ? (ee = {
|
|
182
|
+
gridLines: Ft,
|
|
183
|
+
labels: Ht
|
|
184
|
+
}, t[86] = Ft, t[87] = Ht, t[88] = ee) : ee = t[88];
|
|
185
|
+
let ie;
|
|
186
|
+
t[89] !== G ? (ie = G.filter(oi).map(ni), t[89] = G, t[90] = ie) : ie = t[90];
|
|
187
|
+
let ne;
|
|
188
|
+
t[91] !== s[0] || t[92] !== X ? (ne = {
|
|
189
189
|
stroke: s[0],
|
|
190
|
-
strokeWidth:
|
|
190
|
+
strokeWidth: X,
|
|
191
191
|
fill: "none"
|
|
192
|
-
}, t[91] = s[0], t[92] =
|
|
193
|
-
let
|
|
194
|
-
t[94] !== o.duration ? (
|
|
192
|
+
}, t[91] = s[0], t[92] = X, t[93] = ne) : ne = t[93];
|
|
193
|
+
let oe;
|
|
194
|
+
t[94] !== o.duration ? (oe = {
|
|
195
195
|
opacity: 0,
|
|
196
196
|
transition: {
|
|
197
197
|
duration: o.duration
|
|
198
198
|
}
|
|
199
|
-
}, t[94] = o.duration, t[95] =
|
|
200
|
-
let
|
|
201
|
-
t[96] !== s[1] || t[97] !==
|
|
199
|
+
}, t[94] = o.duration, t[95] = oe) : oe = t[95];
|
|
200
|
+
let se;
|
|
201
|
+
t[96] !== s[1] || t[97] !== X ? (se = {
|
|
202
202
|
stroke: s[1],
|
|
203
|
-
strokeWidth:
|
|
203
|
+
strokeWidth: X,
|
|
204
204
|
fill: "none"
|
|
205
|
-
}, t[96] = s[1], t[97] =
|
|
206
|
-
let
|
|
207
|
-
t[99] !== o.duration ? (
|
|
205
|
+
}, t[96] = s[1], t[97] = X, t[98] = se) : se = t[98];
|
|
206
|
+
let ae;
|
|
207
|
+
t[99] !== o.duration ? (ae = {
|
|
208
208
|
opacity: 0,
|
|
209
209
|
transition: {
|
|
210
210
|
duration: o.duration
|
|
211
211
|
}
|
|
212
|
-
}, t[99] = o.duration, t[100] =
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
}, t[99] = o.duration, t[100] = ae) : ae = t[100];
|
|
213
|
+
const ye = a.map((i, k) => /* @__PURE__ */ n.jsxs(ut.g, { children: [
|
|
214
|
+
V(i.y1) ? null : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
215
|
+
I ? /* @__PURE__ */ n.jsx(ut.circle, { r: u / a.length < 5 ? 0 : u / a.length < 20 ? 2 : 4, exit: {
|
|
216
216
|
opacity: 0,
|
|
217
217
|
transition: {
|
|
218
218
|
duration: o.duration
|
|
@@ -220,8 +220,8 @@ function Je(e) {
|
|
|
220
220
|
}, variants: {
|
|
221
221
|
initial: {
|
|
222
222
|
opacity: 0,
|
|
223
|
-
cx:
|
|
224
|
-
cy:
|
|
223
|
+
cx: f(i.date),
|
|
224
|
+
cy: L(i.y1),
|
|
225
225
|
fill: s[0]
|
|
226
226
|
},
|
|
227
227
|
whileInView: {
|
|
@@ -231,13 +231,13 @@ function Je(e) {
|
|
|
231
231
|
duration: y ? o.duration : 0.5,
|
|
232
232
|
delay: y ? 0 : o.duration
|
|
233
233
|
},
|
|
234
|
-
cx:
|
|
235
|
-
cy:
|
|
234
|
+
cx: f(i.date),
|
|
235
|
+
cy: L(i.y1)
|
|
236
236
|
}
|
|
237
237
|
}, initial: "initial", animate: d ? "whileInView" : "initial" }) : null,
|
|
238
|
-
kt ? /* @__PURE__ */ n.jsx(
|
|
238
|
+
kt ? /* @__PURE__ */ n.jsx(ut.text, { dy: V(i.y2) || i.y2 < i.y1 ? -8 : "1em", style: {
|
|
239
239
|
textAnchor: "middle",
|
|
240
|
-
...
|
|
240
|
+
...r?.graphObjectValues || {}
|
|
241
241
|
}, className: bt("graph-value graph-value-line-1 text-xs font-bold", c?.graphObjectValues), exit: {
|
|
242
242
|
opacity: 0,
|
|
243
243
|
transition: {
|
|
@@ -246,13 +246,13 @@ function Je(e) {
|
|
|
246
246
|
}, variants: {
|
|
247
247
|
initial: {
|
|
248
248
|
opacity: 0,
|
|
249
|
-
x:
|
|
249
|
+
x: f(i.date),
|
|
250
250
|
y: g(i.y1),
|
|
251
251
|
fill: s[0]
|
|
252
252
|
},
|
|
253
253
|
whileInView: {
|
|
254
254
|
opacity: 1,
|
|
255
|
-
x:
|
|
255
|
+
x: f(i.date),
|
|
256
256
|
fill: s[0],
|
|
257
257
|
y: g(i.y1),
|
|
258
258
|
transition: {
|
|
@@ -260,10 +260,10 @@ function Je(e) {
|
|
|
260
260
|
delay: y ? 0 : o.duration
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
}, initial: "initial", animate: d ? "whileInView" : "initial", children:
|
|
263
|
+
}, initial: "initial", animate: d ? "whileInView" : "initial", children: fe(i.y1, "NA", tt, Z[0], E[0]) }) : null
|
|
264
264
|
] }),
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
V(i.y2) ? null : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
266
|
+
I ? /* @__PURE__ */ n.jsx(ut.circle, { r: u / a.length < 5 ? 0 : u / a.length < 20 ? 2 : 4, exit: {
|
|
267
267
|
opacity: 0,
|
|
268
268
|
transition: {
|
|
269
269
|
duration: o.duration
|
|
@@ -271,7 +271,7 @@ function Je(e) {
|
|
|
271
271
|
}, variants: {
|
|
272
272
|
initial: {
|
|
273
273
|
opacity: 0,
|
|
274
|
-
cx:
|
|
274
|
+
cx: f(i.date),
|
|
275
275
|
cy: g(i.y2),
|
|
276
276
|
fill: s[1]
|
|
277
277
|
},
|
|
@@ -282,13 +282,13 @@ function Je(e) {
|
|
|
282
282
|
delay: y ? 0 : o.duration
|
|
283
283
|
},
|
|
284
284
|
fill: s[1],
|
|
285
|
-
cx:
|
|
285
|
+
cx: f(i.date),
|
|
286
286
|
cy: g(i.y2)
|
|
287
287
|
}
|
|
288
288
|
}, initial: "initial", animate: d ? "whileInView" : "initial" }) : null,
|
|
289
|
-
kt ? /* @__PURE__ */ n.jsx(
|
|
289
|
+
kt ? /* @__PURE__ */ n.jsx(ut.text, { dy: V(i.y1) || i.y1 < i.y2 ? -8 : "1em", style: {
|
|
290
290
|
textAnchor: "middle",
|
|
291
|
-
...
|
|
291
|
+
...r?.graphObjectValues || {}
|
|
292
292
|
}, className: bt("graph-value graph-value-line-2 text-xs font-bold", c?.graphObjectValues), exit: {
|
|
293
293
|
opacity: 0,
|
|
294
294
|
transition: {
|
|
@@ -297,13 +297,13 @@ function Je(e) {
|
|
|
297
297
|
}, variants: {
|
|
298
298
|
initial: {
|
|
299
299
|
opacity: 0,
|
|
300
|
-
x:
|
|
300
|
+
x: f(i.date),
|
|
301
301
|
y: g(i.y2),
|
|
302
302
|
fill: s[1]
|
|
303
303
|
},
|
|
304
304
|
whileInView: {
|
|
305
305
|
opacity: 1,
|
|
306
|
-
x:
|
|
306
|
+
x: f(i.date),
|
|
307
307
|
y: g(i.y2),
|
|
308
308
|
fill: s[1],
|
|
309
309
|
transition: {
|
|
@@ -311,63 +311,63 @@ function Je(e) {
|
|
|
311
311
|
delay: y ? 0 : o.duration
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
}, initial: "initial", animate: d ? "whileInView" : "initial", children:
|
|
314
|
+
}, initial: "initial", animate: d ? "whileInView" : "initial", children: fe(i.y2, "NA", tt, Z[1], E[1]) }) : null
|
|
315
315
|
] })
|
|
316
|
-
] },
|
|
317
|
-
let
|
|
318
|
-
t[101] !==
|
|
319
|
-
let
|
|
320
|
-
t[103] !==
|
|
321
|
-
let
|
|
322
|
-
t[105] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
316
|
+
] }, k));
|
|
317
|
+
let le;
|
|
318
|
+
t[101] !== ye ? (le = /* @__PURE__ */ n.jsx("g", { children: ye }), t[101] = ye, t[102] = le) : le = t[102];
|
|
319
|
+
let re;
|
|
320
|
+
t[103] !== G ? (re = G.filter(Qe).map(Ke), t[103] = G, t[104] = re) : re = t[104];
|
|
321
|
+
let ce;
|
|
322
|
+
t[105] === Symbol.for("react.memo_cache_sentinel") ? (ce = {
|
|
323
323
|
fill: "none",
|
|
324
324
|
pointerEvents: "all"
|
|
325
|
-
}, t[105] =
|
|
326
|
-
let
|
|
327
|
-
t[106] !==
|
|
328
|
-
let
|
|
329
|
-
return t[110] !== c?.tooltip || t[111] !==
|
|
330
|
-
/* @__PURE__ */ n.jsx(
|
|
331
|
-
|
|
325
|
+
}, t[105] = ce) : ce = t[105];
|
|
326
|
+
let me;
|
|
327
|
+
t[106] !== R || t[107] !== l || t[108] !== u ? (me = /* @__PURE__ */ n.jsx("rect", { ref: R, style: ce, width: u, height: l }), t[106] = R, t[107] = l, t[108] = u, t[109] = me) : me = t[109];
|
|
328
|
+
let ue;
|
|
329
|
+
return t[110] !== c?.tooltip || t[111] !== yt || t[112] !== m || t[113] !== N || t[114] !== r?.tooltip || t[115] !== ft ? (ue = N && ft && yt && m ? /* @__PURE__ */ n.jsx(Oe, { data: N, body: ft, xPos: yt, yPos: m, backgroundStyle: r?.tooltip, className: c?.tooltip }) : null, t[110] = c?.tooltip, t[111] = yt, t[112] = m, t[113] = N, t[114] = r?.tooltip, t[115] = ft, t[116] = ue) : ue = t[116], /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
330
|
+
/* @__PURE__ */ n.jsx(ut.svg, { width: `${J}px`, height: `${K}px`, viewBox: `0 0 ${J} ${K}`, direction: "ltr", ref: Et, children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${h.left},${h.top})`, children: [
|
|
331
|
+
lt,
|
|
332
332
|
/* @__PURE__ */ n.jsxs("g", { children: [
|
|
333
|
-
|
|
334
|
-
/* @__PURE__ */ n.jsx("line", { y1:
|
|
333
|
+
zt.map((i, k) => /* @__PURE__ */ n.jsxs("g", { children: [
|
|
334
|
+
/* @__PURE__ */ n.jsx("line", { y1: L(i), y2: L(i), x1: -15, x2: -20, style: {
|
|
335
335
|
stroke: s[0],
|
|
336
336
|
strokeWidth: 1,
|
|
337
|
-
...
|
|
337
|
+
...r?.yAxis?.gridLines || {}
|
|
338
338
|
}, className: c?.yAxis?.gridLines }),
|
|
339
|
-
/* @__PURE__ */ n.jsx("text", { x: -25, y:
|
|
339
|
+
/* @__PURE__ */ n.jsx("text", { x: -25, y: L(i), dy: "0.33em", className: bt("text-xs", c?.yAxis?.labels), style: {
|
|
340
340
|
textAnchor: "end",
|
|
341
341
|
fill: s[0],
|
|
342
|
-
...
|
|
343
|
-
}, children:
|
|
344
|
-
] },
|
|
345
|
-
|
|
346
|
-
|
|
342
|
+
...r?.yAxis?.labels || {}
|
|
343
|
+
}, children: fe(i, "NA", tt, Z[0], E[0]) })
|
|
344
|
+
] }, k)),
|
|
345
|
+
rt,
|
|
346
|
+
P
|
|
347
347
|
] }),
|
|
348
348
|
/* @__PURE__ */ n.jsxs("g", { children: [
|
|
349
|
-
|
|
350
|
-
/* @__PURE__ */ n.jsx("line", { y1: g(i), y2: g(i), x1:
|
|
349
|
+
Ut.map((i, k) => /* @__PURE__ */ n.jsxs("g", { children: [
|
|
350
|
+
/* @__PURE__ */ n.jsx("line", { y1: g(i), y2: g(i), x1: u + 15, x2: u + 20, style: {
|
|
351
351
|
stroke: s[1],
|
|
352
352
|
strokeWidth: 1,
|
|
353
|
-
...
|
|
353
|
+
...r?.yAxis?.gridLines || {}
|
|
354
354
|
}, className: c?.yAxis?.gridLines }),
|
|
355
|
-
/* @__PURE__ */ n.jsx("text", { x:
|
|
355
|
+
/* @__PURE__ */ n.jsx("text", { x: u + 25, y: g(i), dy: "0.33em", dx: -2, style: {
|
|
356
356
|
textAnchor: "start",
|
|
357
357
|
fill: s[1],
|
|
358
|
-
...
|
|
359
|
-
}, className: bt("text-xs", c?.yAxis?.labels), children:
|
|
360
|
-
] },
|
|
361
|
-
|
|
362
|
-
|
|
358
|
+
...r?.yAxis?.labels || {}
|
|
359
|
+
}, className: bt("text-xs", c?.yAxis?.labels), children: fe(i, "NA", tt, Z[1], E[1]) })
|
|
360
|
+
] }, k)),
|
|
361
|
+
q,
|
|
362
|
+
mt
|
|
363
363
|
] }),
|
|
364
364
|
/* @__PURE__ */ n.jsxs("g", { children: [
|
|
365
|
-
|
|
366
|
-
/* @__PURE__ */ n.jsx(Se, { values:
|
|
365
|
+
S,
|
|
366
|
+
/* @__PURE__ */ n.jsx(Se, { values: Ct, x: _t, y1: 0, y2: l, styles: te, classNames: ee, labelType: "primary", showGridLines: !0, precision: tt })
|
|
367
367
|
] }),
|
|
368
|
-
|
|
368
|
+
ie,
|
|
369
369
|
/* @__PURE__ */ n.jsxs("g", { children: [
|
|
370
|
-
/* @__PURE__ */ n.jsx(
|
|
370
|
+
/* @__PURE__ */ n.jsx(ut.path, { style: ne, exit: oe, variants: {
|
|
371
371
|
initial: {
|
|
372
372
|
pathLength: 0,
|
|
373
373
|
d: It(a.filter(ii)) || "",
|
|
@@ -382,28 +382,28 @@ function Je(e) {
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
}, initial: "initial", animate: d ? "whileInView" : "initial" }),
|
|
385
|
-
/* @__PURE__ */ n.jsx(
|
|
385
|
+
/* @__PURE__ */ n.jsx(ut.path, { d: At(a.filter(ti)) || "", style: se, exit: ae, variants: {
|
|
386
386
|
initial: {
|
|
387
387
|
pathLength: 0,
|
|
388
|
-
d:
|
|
388
|
+
d: At(a.filter(_e)) || "",
|
|
389
389
|
opacity: 1
|
|
390
390
|
},
|
|
391
391
|
whileInView: {
|
|
392
392
|
pathLength: 1,
|
|
393
|
-
d:
|
|
393
|
+
d: At(a.filter(Ze)) || "",
|
|
394
394
|
opacity: 1,
|
|
395
395
|
transition: {
|
|
396
396
|
duration: o.duration
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
}, initial: "initial", animate: d ? "whileInView" : "initial" }),
|
|
400
|
-
|
|
400
|
+
N ? /* @__PURE__ */ n.jsx("line", { y1: 0, y2: l, x1: f(N.date), x2: f(N.date), className: bt("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", c?.mouseOverLine), style: r?.mouseOverLine }) : null
|
|
401
401
|
] }),
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
le,
|
|
403
|
+
re,
|
|
404
|
+
me
|
|
405
405
|
] }) }),
|
|
406
|
-
|
|
406
|
+
ue
|
|
407
407
|
] });
|
|
408
408
|
}
|
|
409
409
|
function Ke(e) {
|
|
@@ -413,19 +413,19 @@ function Qe(e) {
|
|
|
413
413
|
return e.position === "after";
|
|
414
414
|
}
|
|
415
415
|
function Ze(e) {
|
|
416
|
-
return !
|
|
416
|
+
return !V(e.y2);
|
|
417
417
|
}
|
|
418
418
|
function _e(e) {
|
|
419
|
-
return !
|
|
419
|
+
return !V(e.y2);
|
|
420
420
|
}
|
|
421
421
|
function ti(e) {
|
|
422
|
-
return !
|
|
422
|
+
return !V(e.y2);
|
|
423
423
|
}
|
|
424
424
|
function ei(e) {
|
|
425
|
-
return !
|
|
425
|
+
return !V(e.y1);
|
|
426
426
|
}
|
|
427
427
|
function ii(e) {
|
|
428
|
-
return !
|
|
428
|
+
return !V(e.y1);
|
|
429
429
|
}
|
|
430
430
|
function ni(e) {
|
|
431
431
|
return e.layer;
|
|
@@ -437,12 +437,12 @@ function si(e) {
|
|
|
437
437
|
return e.date;
|
|
438
438
|
}
|
|
439
439
|
function ai(e) {
|
|
440
|
-
return !
|
|
441
|
-
}
|
|
442
|
-
function ri(e) {
|
|
443
|
-
return !O(e.y1);
|
|
440
|
+
return !V(e.y2);
|
|
444
441
|
}
|
|
445
442
|
function li(e) {
|
|
443
|
+
return !V(e.y1);
|
|
444
|
+
}
|
|
445
|
+
function ri(e) {
|
|
446
446
|
return e != null;
|
|
447
447
|
}
|
|
448
448
|
function ci(e) {
|
|
@@ -502,113 +502,120 @@ function Ni(e) {
|
|
|
502
502
|
function Di(e) {
|
|
503
503
|
return e.y1;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
const t =
|
|
507
|
-
data:
|
|
508
|
-
graphTitle:
|
|
509
|
-
sources:
|
|
505
|
+
function ln(e) {
|
|
506
|
+
const t = Ne.c(90), {
|
|
507
|
+
data: v,
|
|
508
|
+
graphTitle: J,
|
|
509
|
+
sources: K,
|
|
510
510
|
graphDescription: s,
|
|
511
|
-
height:
|
|
512
|
-
width:
|
|
511
|
+
height: A,
|
|
512
|
+
width: w,
|
|
513
513
|
footNote: x,
|
|
514
514
|
noOfXTicks: kt,
|
|
515
|
-
dateFormat:
|
|
516
|
-
showValues:
|
|
517
|
-
padding:
|
|
518
|
-
lineColors:
|
|
515
|
+
dateFormat: Qt,
|
|
516
|
+
showValues: Zt,
|
|
517
|
+
padding: Xt,
|
|
518
|
+
lineColors: Q,
|
|
519
519
|
sameAxes: Lt,
|
|
520
|
-
backgroundColor:
|
|
520
|
+
backgroundColor: ft,
|
|
521
521
|
leftMargin: Nt,
|
|
522
522
|
rightMargin: Dt,
|
|
523
523
|
topMargin: o,
|
|
524
|
-
bottomMargin:
|
|
525
|
-
labels:
|
|
526
|
-
lineSuffixes:
|
|
527
|
-
linePrefixes:
|
|
528
|
-
tooltip:
|
|
529
|
-
highlightAreaSettings:
|
|
524
|
+
bottomMargin: X,
|
|
525
|
+
labels: I,
|
|
526
|
+
lineSuffixes: xt,
|
|
527
|
+
linePrefixes: E,
|
|
528
|
+
tooltip: Z,
|
|
529
|
+
highlightAreaSettings: pt,
|
|
530
530
|
relativeHeight: Mt,
|
|
531
|
-
onSeriesMouseOver:
|
|
532
|
-
graphID:
|
|
531
|
+
onSeriesMouseOver: _,
|
|
532
|
+
graphID: r,
|
|
533
533
|
graphDownload: c,
|
|
534
|
-
dataDownload:
|
|
535
|
-
animate:
|
|
536
|
-
strokeWidth:
|
|
537
|
-
showDots:
|
|
538
|
-
language:
|
|
534
|
+
dataDownload: tt,
|
|
535
|
+
animate: G,
|
|
536
|
+
strokeWidth: Y,
|
|
537
|
+
showDots: Et,
|
|
538
|
+
language: dt,
|
|
539
539
|
showColorScale: d,
|
|
540
540
|
minHeight: y,
|
|
541
|
-
colorLegendTitle:
|
|
542
|
-
theme:
|
|
543
|
-
ariaLabel:
|
|
544
|
-
noOfYTicks:
|
|
545
|
-
maxDate:
|
|
541
|
+
colorLegendTitle: Gt,
|
|
542
|
+
theme: ht,
|
|
543
|
+
ariaLabel: et,
|
|
544
|
+
noOfYTicks: Yt,
|
|
545
|
+
maxDate: N,
|
|
546
546
|
minDate: Ot,
|
|
547
|
-
curveType:
|
|
547
|
+
curveType: yt,
|
|
548
548
|
styles: p,
|
|
549
|
-
classNames:
|
|
550
|
-
precision:
|
|
551
|
-
customLayers:
|
|
549
|
+
classNames: m,
|
|
550
|
+
precision: Rt,
|
|
551
|
+
customLayers: it,
|
|
552
552
|
showAxisLabels: St
|
|
553
|
-
} = e,
|
|
554
|
-
let
|
|
555
|
-
t[0] !==
|
|
556
|
-
const
|
|
553
|
+
} = e, nt = Qt === void 0 ? "yyyy" : Qt, h = Zt === void 0 ? !1 : Zt;
|
|
554
|
+
let R;
|
|
555
|
+
t[0] !== Q ? (R = Q === void 0 ? [Le.light.categoricalColors.colors[0], Le.light.categoricalColors.colors[1]] : Q, t[0] = Q, t[1] = R) : R = t[1];
|
|
556
|
+
const D = R, a = Lt === void 0 ? !1 : Lt, ot = ft === void 0 ? !1 : ft, gt = Nt === void 0 ? 80 : Nt, u = Dt === void 0 ? 80 : Dt, l = o === void 0 ? 20 : o, Bt = X === void 0 ? 25 : X;
|
|
557
557
|
let Tt;
|
|
558
|
-
t[2] !==
|
|
559
|
-
const
|
|
560
|
-
let
|
|
561
|
-
t[4] !==
|
|
562
|
-
const
|
|
563
|
-
let
|
|
564
|
-
t[6] !==
|
|
565
|
-
const Vt =
|
|
566
|
-
let
|
|
567
|
-
t[8] !==
|
|
568
|
-
const
|
|
569
|
-
let
|
|
570
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
571
|
-
const
|
|
572
|
-
|
|
558
|
+
t[2] !== xt ? (Tt = xt === void 0 ? ["", ""] : xt, t[2] = xt, t[3] = Tt) : Tt = t[3];
|
|
559
|
+
const vt = Tt;
|
|
560
|
+
let st;
|
|
561
|
+
t[4] !== E ? (st = E === void 0 ? ["", ""] : E, t[4] = E, t[5] = st) : st = t[5];
|
|
562
|
+
const at = st;
|
|
563
|
+
let B;
|
|
564
|
+
t[6] !== pt ? (B = pt === void 0 ? [] : pt, t[6] = pt, t[7] = B) : B = t[7];
|
|
565
|
+
const Vt = B, z = c === void 0 ? !1 : c, f = tt === void 0 ? !1 : tt, L = G === void 0 ? !1 : G, g = Y === void 0 ? 2 : Y, It = Et === void 0 ? !0 : Et, At = dt === void 0 ? "en" : dt, zt = d === void 0 ? !0 : d, Ut = y === void 0 ? 0 : y, $t = ht === void 0 ? "light" : ht, lt = Yt === void 0 ? 5 : Yt, wt = yt === void 0 ? "curve" : yt, $ = Rt === void 0 ? 2 : Rt;
|
|
566
|
+
let M;
|
|
567
|
+
t[8] !== it ? (M = it === void 0 ? [] : it, t[8] = it, t[9] = M) : M = t[9];
|
|
568
|
+
const C = M, rt = St === void 0 ? !0 : St, [P, qt] = Wt(0), [ct, Jt] = Wt(0), F = xe(null), U = xe(null);
|
|
569
|
+
let O, q;
|
|
570
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (O = () => {
|
|
571
|
+
const _t = new ResizeObserver((Pt) => {
|
|
572
|
+
qt(Pt[0].target.clientWidth || 620), Jt(Pt[0].target.clientHeight || 480);
|
|
573
573
|
});
|
|
574
|
-
return
|
|
575
|
-
},
|
|
576
|
-
const
|
|
577
|
-
let
|
|
578
|
-
t[12] !==
|
|
574
|
+
return F.current && _t.observe(F.current), () => _t.disconnect();
|
|
575
|
+
}, q = [], t[10] = O, t[11] = q) : (O = t[10], q = t[11]), Ae(O, q);
|
|
576
|
+
const mt = m?.graphContainer, jt = p?.graphContainer;
|
|
577
|
+
let H;
|
|
578
|
+
t[12] !== m?.description || t[13] !== m?.title || t[14] !== v || t[15] !== f || t[16] !== s || t[17] !== z || t[18] !== J || t[19] !== p?.description || t[20] !== p?.title || t[21] !== w ? (H = J || s || z || f ? /* @__PURE__ */ n.jsx(Ye, { styles: {
|
|
579
579
|
title: p?.title,
|
|
580
580
|
description: p?.description
|
|
581
581
|
}, classNames: {
|
|
582
|
-
title:
|
|
583
|
-
description:
|
|
584
|
-
}, graphTitle:
|
|
585
|
-
let
|
|
586
|
-
t[23] !==
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
582
|
+
title: m?.title,
|
|
583
|
+
description: m?.description
|
|
584
|
+
}, graphTitle: J, graphDescription: s, width: w, graphDownload: z ? U : void 0, dataDownload: f ? v.map(Vi).filter(Ti).length > 0 ? v.map(Si).filter(Oi) : v.filter(Mi) : null }) : null, t[12] = m?.description, t[13] = m?.title, t[14] = v, t[15] = f, t[16] = s, t[17] = z, t[18] = J, t[19] = p?.description, t[20] = p?.title, t[21] = w, t[22] = H) : H = t[22];
|
|
585
|
+
let j;
|
|
586
|
+
t[23] !== m?.colorLegend || t[24] !== Gt || t[25] !== I || t[26] !== D || t[27] !== zt ? (j = zt && I.length > 0 ? /* @__PURE__ */ n.jsx(Re, { colorDomain: I, colorLegendTitle: Gt, colors: D, showNAColor: !1, className: m?.colorLegend }) : null, t[23] = m?.colorLegend, t[24] = Gt, t[25] = I, t[26] = D, t[27] = zt, t[28] = j) : j = t[28];
|
|
587
|
+
let W;
|
|
588
|
+
t[29] !== v.length ? (W = v.length === 0 && /* @__PURE__ */ n.jsx(Be, {}), t[29] = v.length, t[30] = W) : W = t[30];
|
|
589
|
+
let b;
|
|
590
|
+
t[31] !== L || t[32] !== Bt || t[33] !== m || t[34] !== wt || t[35] !== C || t[36] !== v || t[37] !== nt || t[38] !== Vt || t[39] !== I || t[40] !== gt || t[41] !== D || t[42] !== at || t[43] !== vt || t[44] !== N || t[45] !== Ot || t[46] !== kt || t[47] !== lt || t[48] !== _ || t[49] !== $ || t[50] !== u || t[51] !== a || t[52] !== rt || t[53] !== It || t[54] !== h || t[55] !== g || t[56] !== p || t[57] !== ct || t[58] !== P || t[59] !== Z || t[60] !== l ? (b = P && ct && v.length > 0 ? /* @__PURE__ */ n.jsx(Je, { data: v, sameAxes: a, lineColors: D, width: P, height: ct, dateFormat: nt, showValues: h, noOfXTicks: kt ?? qe(P), leftMargin: gt, rightMargin: u, topMargin: l, bottomMargin: Bt, labels: I, highlightAreaSettings: Vt, tooltip: Z, onSeriesMouseOver: _, animate: L === !0 ? {
|
|
591
|
+
duration: 0.5,
|
|
592
|
+
once: !0,
|
|
593
|
+
amount: 0.5
|
|
594
|
+
} : L || {
|
|
595
|
+
duration: 0,
|
|
596
|
+
once: !0,
|
|
597
|
+
amount: 0
|
|
598
|
+
}, strokeWidth: g, showDots: It, noOfYTicks: lt, lineSuffixes: vt, linePrefixes: at, minDate: Ot, maxDate: N, curveType: wt, styles: p, classNames: m, precision: $, customLayers: C, showAxisLabels: rt }) : null, t[31] = L, t[32] = Bt, t[33] = m, t[34] = wt, t[35] = C, t[36] = v, t[37] = nt, t[38] = Vt, t[39] = I, t[40] = gt, t[41] = D, t[42] = at, t[43] = vt, t[44] = N, t[45] = Ot, t[46] = kt, t[47] = lt, t[48] = _, t[49] = $, t[50] = u, t[51] = a, t[52] = rt, t[53] = It, t[54] = h, t[55] = g, t[56] = p, t[57] = ct, t[58] = P, t[59] = Z, t[60] = l, t[61] = b) : b = t[61];
|
|
599
|
+
let S;
|
|
600
|
+
t[62] !== W || t[63] !== b ? (S = /* @__PURE__ */ n.jsxs(ze, { ref: F, children: [
|
|
601
|
+
W,
|
|
602
|
+
b
|
|
603
|
+
] }), t[62] = W, t[63] = b, t[64] = S) : S = t[64];
|
|
604
|
+
let T;
|
|
605
|
+
t[65] !== m?.footnote || t[66] !== m?.source || t[67] !== x || t[68] !== K || t[69] !== p?.footnote || t[70] !== p?.source || t[71] !== w ? (T = K || x ? /* @__PURE__ */ n.jsx(Ge, { styles: {
|
|
600
606
|
footnote: p?.footnote,
|
|
601
607
|
source: p?.source
|
|
602
608
|
}, classNames: {
|
|
603
|
-
footnote:
|
|
604
|
-
source:
|
|
605
|
-
}, sources:
|
|
606
|
-
let
|
|
607
|
-
return t[
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
609
|
+
footnote: m?.footnote,
|
|
610
|
+
source: m?.source
|
|
611
|
+
}, sources: K, footNote: x, width: w }) : null, t[65] = m?.footnote, t[66] = m?.source, t[67] = x, t[68] = K, t[69] = p?.footnote, t[70] = p?.source, t[71] = w, t[72] = T) : T = t[72];
|
|
612
|
+
let Ct;
|
|
613
|
+
return t[73] !== et || t[74] !== ot || t[75] !== r || t[76] !== A || t[77] !== At || t[78] !== Ut || t[79] !== Xt || t[80] !== Mt || t[81] !== mt || t[82] !== jt || t[83] !== H || t[84] !== j || t[85] !== S || t[86] !== T || t[87] !== $t || t[88] !== w ? (Ct = /* @__PURE__ */ n.jsxs(Ue, { className: mt, style: jt, id: r, ref: U, "aria-label": et, backgroundColor: ot, theme: $t, language: At, minHeight: Ut, width: w, height: A, relativeHeight: Mt, padding: Xt, children: [
|
|
614
|
+
H,
|
|
615
|
+
j,
|
|
616
|
+
S,
|
|
617
|
+
T
|
|
618
|
+
] }), t[73] = et, t[74] = ot, t[75] = r, t[76] = A, t[77] = At, t[78] = Ut, t[79] = Xt, t[80] = Mt, t[81] = mt, t[82] = jt, t[83] = H, t[84] = j, t[85] = S, t[86] = T, t[87] = $t, t[88] = w, t[89] = Ct) : Ct = t[89], Ct;
|
|
612
619
|
}
|
|
613
620
|
function Mi(e) {
|
|
614
621
|
return e !== void 0;
|
|
@@ -626,6 +633,6 @@ function Vi(e) {
|
|
|
626
633
|
return e.data;
|
|
627
634
|
}
|
|
628
635
|
export {
|
|
629
|
-
|
|
636
|
+
ln as DualAxisLineChart
|
|
630
637
|
};
|
|
631
638
|
//# sourceMappingURL=DualAxisLineChart.js.map
|