@undp/data-viz 2.0.8 → 2.1.0
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.d.ts +2 -0
- package/dist/AreaChart.js +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 +1188 -1213
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.d.ts +2 -0
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +2 -0
- package/dist/BeeSwarmChart.js +258 -267
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +2 -0
- package/dist/BiVariateChoroplethMap.js +126 -131
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +2 -0
- package/dist/BulletChart.js +404 -413
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +2 -0
- package/dist/ButterflyChart.js +179 -184
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +2 -0
- package/dist/ChoroplethMap.js +268 -273
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +2 -0
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.d.ts +2 -0
- package/dist/DataCards.js +2 -2
- package/dist/DataTable.d.ts +2 -0
- package/dist/DetailsModal-0Ry5nXiC.js +32 -0
- package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
- package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
- package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.d.ts +2 -0
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +2 -0
- package/dist/DonutChart.js +185 -190
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +2 -0
- package/dist/DotDensityMap.js +198 -203
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.d.ts +2 -0
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +364 -373
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.d.ts +2 -0
- package/dist/GeoHubMap.d.ts +2 -0
- package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
- package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
- package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
- package/dist/{GraphEl-CGq1EWRn.js → GraphEl-ebgfxefq.js} +3 -3
- package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.js.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.cjs.map +1 -1
- package/dist/GriddedGraphs.d.ts +3 -0
- package/dist/GriddedGraphs.js +158 -146
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +3 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +2 -0
- package/dist/HeatMap.js +111 -116
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +2 -0
- package/dist/HybridMap.js +202 -207
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
- package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +3 -0
- package/dist/MultiGraphDashboard.js +90 -85
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +3 -0
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.d.ts +2 -0
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +2 -0
- package/dist/ParetoChart.js +187 -192
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +3 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +76 -72
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +3 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +2 -0
- package/dist/RadarChart.js +158 -163
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +2 -0
- package/dist/SankeyChart.js +172 -177
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +222 -227
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +2 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.d.ts +2 -0
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.d.ts +3 -0
- package/dist/SingleGraphDashboard.js +131 -128
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +3 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +3 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +145 -141
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +3 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.d.ts +2 -0
- package/dist/SlopeChart.js +182 -187
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +2 -0
- package/dist/SparkLine.js +1 -1
- package/dist/StatCardFromData.d.ts +2 -0
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +2 -0
- package/dist/StripChart.js +249 -258
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +2 -0
- package/dist/ThreeDGlobe.js +142 -147
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/Tooltip-Dj5eVppQ.js +45 -0
- package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
- package/dist/Tooltip-uUdw6wJL.cjs +2 -0
- package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +2 -0
- package/dist/TreeMapGraph.js +159 -164
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +3 -0
- package/dist/UnitChart.d.ts +2 -0
- package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
- package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
- package/dist/getUniqValue-DsqSii6M.js +11 -0
- package/dist/getUniqValue-DsqSii6M.js.map +1 -0
- package/dist/getUniqValue-NX8DgwND.cjs +2 -0
- package/dist/getUniqValue-NX8DgwND.cjs.map +1 -0
- package/dist/index-BBV4tAeA.js +330 -0
- package/dist/index-BBV4tAeA.js.map +1 -0
- package/dist/index-CF5hnGvG.cjs +2 -0
- package/dist/index-CF5hnGvG.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/Tooltip-4dJo4_AF.cjs +0 -2
- package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
- package/dist/Tooltip-CwWUegPB.js +0 -43
- package/dist/Tooltip-CwWUegPB.js.map +0 -1
- package/dist/getUniqValue-BKHCm3zE.js +0 -11
- package/dist/getUniqValue-BKHCm3zE.js.map +0 -1
- package/dist/getUniqValue-RViz8tTw.cjs +0 -2
- package/dist/getUniqValue-RViz8tTw.cjs.map +0 -1
- package/dist/index-B2LQV7Tk.js +0 -335
- package/dist/index-B2LQV7Tk.js.map +0 -1
- package/dist/index-xRHRLDIp.cjs +0 -2
- package/dist/index-xRHRLDIp.cjs.map +0 -1
package/dist/DumbbellChart.js
CHANGED
|
@@ -1,140 +1,139 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as be, j as i, m as de } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
2
|
import { o as we } from "./index-BZQYSqar.js";
|
|
3
|
-
import { p as
|
|
4
|
-
import { useRef as me, useState as
|
|
5
|
-
import { g as
|
|
3
|
+
import { p as Te, f as Ae } from "./parse-DlCRUFh_.js";
|
|
4
|
+
import { useRef as me, useState as bt, useEffect as ke } from "react";
|
|
5
|
+
import { g as Se, N as Pe } from "./getSliderMarks-HIDJ0_Cd.js";
|
|
6
6
|
import { i as Ce } from "./index-Bwrro8-q.js";
|
|
7
|
-
import { l as Me } from "./Modal-DGcuAHyK.js";
|
|
8
7
|
import { n as ge } from "./numberFormattingFunction-14YCbkN2.js";
|
|
9
|
-
import { T as
|
|
10
|
-
import { c as
|
|
11
|
-
import {
|
|
12
|
-
import { A as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { R as He, a as Xe } from "./ReferenceLine-2XCwHXQ4.js";
|
|
8
|
+
import { T as Me } from "./Tooltip-Dj5eVppQ.js";
|
|
9
|
+
import { c as $t } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
10
|
+
import { A as Oe } from "./AxisTitle-jeI7am8o.js";
|
|
11
|
+
import { A as Fe } from "./Axis-CRyfcLjc.js";
|
|
12
|
+
import { X as We } from "./XAxesLabels-Dy8E1SEo.js";
|
|
13
|
+
import { Y as $e } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
14
|
+
import { R as Be, a as Xe } from "./ReferenceLine-2XCwHXQ4.js";
|
|
17
15
|
import { X as Ye } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
18
16
|
import { Y as Ee } from "./YAxesLabels-a57ZRv-0.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
17
|
+
import { D as Ve } from "./DetailsModal-0Ry5nXiC.js";
|
|
18
|
+
import { a as Le } from "./linear-BwnDd9KF.js";
|
|
19
|
+
import { b as je } from "./band-CyHaVft5.js";
|
|
20
|
+
import { u as Ie } from "./use-in-view-Cxa7y1TH.js";
|
|
22
21
|
import { m as Ot } from "./proxy-BxkFHwUw.js";
|
|
23
|
-
import { A as
|
|
22
|
+
import { A as Ne } from "./index-BqfRwk1n.js";
|
|
24
23
|
import { e as ye } from "./ensureCompleteData-DNKEGRiP.js";
|
|
25
24
|
import { u as Ge } from "./uniqBy-BHy4I8PK.js";
|
|
26
|
-
import { a as
|
|
27
|
-
import { GraphHeader as
|
|
28
|
-
import { P as
|
|
29
|
-
import { GraphFooter as
|
|
30
|
-
import { ColorLegendWithMouseOver as
|
|
31
|
-
import { E as
|
|
32
|
-
import { Colors as
|
|
33
|
-
import { s as
|
|
34
|
-
import { a as
|
|
35
|
-
function
|
|
36
|
-
const t =
|
|
37
|
-
data:
|
|
25
|
+
import { a as He, G as Re } from "./GraphContainer-CRqzdKu2.js";
|
|
26
|
+
import { GraphHeader as ze } from "./GraphHeader.js";
|
|
27
|
+
import { P as qe, e as Ue } from "./index-D491FEn1.js";
|
|
28
|
+
import { GraphFooter as Je } from "./GraphFooter.js";
|
|
29
|
+
import { ColorLegendWithMouseOver as Ke } from "./ColorLegendWithMouseOver.js";
|
|
30
|
+
import { E as Qe } from "./EmptyState-BZo1BbAn.js";
|
|
31
|
+
import { Colors as Ze } from "./Colors.js";
|
|
32
|
+
import { s as _e } from "./sort-BIvMlUH1.js";
|
|
33
|
+
import { a as ti } from "./init-BJFW6EwE.js";
|
|
34
|
+
function ei(e) {
|
|
35
|
+
const t = be.c(140), {
|
|
36
|
+
data: p,
|
|
38
37
|
leftMargin: Ft,
|
|
39
38
|
rightMargin: ie,
|
|
40
39
|
topMargin: Wt,
|
|
41
40
|
bottomMargin: Bt,
|
|
42
41
|
dotColors: b,
|
|
43
|
-
barPadding:
|
|
44
|
-
showTicks:
|
|
45
|
-
truncateBy:
|
|
46
|
-
width:
|
|
42
|
+
barPadding: Vt,
|
|
43
|
+
showTicks: Xt,
|
|
44
|
+
truncateBy: Yt,
|
|
45
|
+
width: Lt,
|
|
47
46
|
height: jt,
|
|
48
|
-
radius:
|
|
47
|
+
radius: et,
|
|
49
48
|
showLabels: ct,
|
|
50
|
-
tooltip:
|
|
49
|
+
tooltip: y,
|
|
51
50
|
onSeriesMouseOver: P,
|
|
52
|
-
maxValue:
|
|
53
|
-
minValue:
|
|
54
|
-
onSeriesMouseClick:
|
|
55
|
-
showValues:
|
|
56
|
-
suffix:
|
|
51
|
+
maxValue: Et,
|
|
52
|
+
minValue: O,
|
|
53
|
+
onSeriesMouseClick: G,
|
|
54
|
+
showValues: Gt,
|
|
55
|
+
suffix: it,
|
|
57
56
|
prefix: F,
|
|
58
57
|
selectedColor: $,
|
|
59
|
-
arrowConnector:
|
|
58
|
+
arrowConnector: A,
|
|
60
59
|
connectorStrokeWidth: qt,
|
|
61
60
|
maxBarThickness: dt,
|
|
62
|
-
minBarThickness:
|
|
63
|
-
resetSelectionOnDoubleClick:
|
|
64
|
-
detailsOnClick:
|
|
61
|
+
minBarThickness: vt,
|
|
62
|
+
resetSelectionOnDoubleClick: Ht,
|
|
63
|
+
detailsOnClick: V,
|
|
65
64
|
axisTitle: W,
|
|
66
65
|
noOfTicks: Ut,
|
|
67
66
|
valueColor: wt,
|
|
68
|
-
styles:
|
|
69
|
-
classNames:
|
|
70
|
-
labelOrder:
|
|
67
|
+
styles: a,
|
|
68
|
+
classNames: n,
|
|
69
|
+
labelOrder: L,
|
|
71
70
|
refValues: At,
|
|
72
71
|
animate: u,
|
|
73
72
|
precision: d,
|
|
74
73
|
customLayers: I,
|
|
75
74
|
highlightedDataPoints: j,
|
|
76
75
|
dimmedOpacity: mt
|
|
77
|
-
} = e,
|
|
76
|
+
} = e, g = Ft === void 0 ? 20 : Ft, Jt = ie === void 0 ? 20 : ie, It = Wt === void 0 ? 20 : Wt, kt = Bt === void 0 ? 25 : Bt, ne = me(null);
|
|
78
77
|
let Kt;
|
|
79
78
|
t[0] !== u.amount || t[1] !== u.once ? (Kt = {
|
|
80
79
|
once: u.once,
|
|
81
80
|
amount: u.amount
|
|
82
81
|
}, t[0] = u.amount, t[1] = u.once, t[2] = Kt) : Kt = t[2];
|
|
83
|
-
const N =
|
|
82
|
+
const N = Ie(ne, Kt), H = W ? g + 30 : g;
|
|
84
83
|
let Nt;
|
|
85
|
-
t[3] !== kt || t[4] !== Jt || t[5] !==
|
|
84
|
+
t[3] !== kt || t[4] !== Jt || t[5] !== H || t[6] !== It ? (Nt = {
|
|
86
85
|
top: It,
|
|
87
86
|
bottom: kt,
|
|
88
|
-
left:
|
|
87
|
+
left: H,
|
|
89
88
|
right: Jt
|
|
90
|
-
}, t[3] = kt, t[4] = Jt, t[5] =
|
|
91
|
-
const
|
|
92
|
-
let pt, X,
|
|
93
|
-
if (t[8] !== u || t[9] !==
|
|
89
|
+
}, t[3] = kt, t[4] = Jt, t[5] = H, t[6] = It, t[7] = Nt) : Nt = t[7];
|
|
90
|
+
const l = Nt, o = Lt - l.left - l.right, nt = jt - l.top - l.bottom, [at, Dt] = bt(void 0), [ot, st] = bt(void 0), [Tt, ut] = bt(void 0), [xt, St] = bt(void 0);
|
|
91
|
+
let pt, B, X, R, k, D, C, z, q, U, J, v, w, K, Q;
|
|
92
|
+
if (t[8] !== u || t[9] !== A || t[10] !== W || t[11] !== Vt || t[12] !== n?.dataConnectors || t[13] !== n?.graphObjectValues || t[14] !== n?.xAxis?.axis || t[15] !== n?.xAxis?.labels || t[16] !== n?.yAxis?.gridLines || t[17] !== n?.yAxis?.labels || t[18] !== n?.yAxis?.title || t[19] !== qt || t[20] !== I || t[21] !== p || t[22] !== V || t[23] !== mt || t[24] !== b || t[25] !== nt || t[26] !== o || t[27] !== jt || t[28] !== j || t[29] !== N || t[30] !== L || t[31] !== g || t[32] !== l.bottom || t[33] !== l.left || t[34] !== l.right || t[35] !== l.top || t[36] !== dt || t[37] !== Et || t[38] !== vt || t[39] !== O || t[40] !== ot || t[41] !== Ut || t[42] !== G || t[43] !== P || t[44] !== d || t[45] !== F || t[46] !== et || t[47] !== At || t[48] !== Ht || t[49] !== $ || t[50] !== ct || t[51] !== Xt || t[52] !== Gt || t[53] !== a?.dataConnectors || t[54] !== a?.graphObjectValues || t[55] !== a?.xAxis?.axis || t[56] !== a?.xAxis?.labels || t[57] !== a?.yAxis?.gridLines || t[58] !== a?.yAxis?.labels || t[59] !== a?.yAxis?.title || t[60] !== it || t[61] !== Yt || t[62] !== wt || t[63] !== Lt) {
|
|
94
93
|
let ht;
|
|
95
|
-
t[79] !==
|
|
96
|
-
...
|
|
97
|
-
id:
|
|
98
|
-
}), t[79] =
|
|
99
|
-
const Ct =
|
|
100
|
-
|
|
101
|
-
const Zt =
|
|
102
|
-
let
|
|
103
|
-
t[83] !== d || t[84] !== F || t[85] !==
|
|
104
|
-
const Rt =
|
|
94
|
+
t[79] !== L ? (ht = (r, rt) => ({
|
|
95
|
+
...r,
|
|
96
|
+
id: L ? `${r.label}` : `${rt}`
|
|
97
|
+
}), t[79] = L, t[80] = ht) : ht = t[80];
|
|
98
|
+
const Ct = p.map(ht), Qt = L || Ct.map(ui), Y = Le().domain([O, Et]).range([nt, 0]).nice(), f = je().domain(Qt).range([0, vt ? Math.max(o, vt * Ct.length) : dt ? Math.min(o, dt * Ct.length) : o]).paddingInner(Vt), yt = Y.ticks(Ut);
|
|
99
|
+
B = Ot.svg, C = `${Lt}px`, z = `${jt}px`, q = `0 0 ${Lt} ${jt}`, U = "ltr", J = ne, t[81] !== A ? (v = A ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[81] = A, t[82] = v) : v = t[82], Q = `translate(${l.left},${l.top})`;
|
|
100
|
+
const Zt = Y(O < 0 ? 0 : O), ae = Y(O < 0 ? 0 : O), _t = O < 0 ? 0 : O;
|
|
101
|
+
let x;
|
|
102
|
+
t[83] !== d || t[84] !== F || t[85] !== it || t[86] !== _t ? (x = ge(_t, "NA", d, F, it), t[83] = d, t[84] = F, t[85] = it, t[86] = _t, t[87] = x) : x = t[87];
|
|
103
|
+
const Rt = n?.xAxis?.axis, te = n?.yAxis?.labels;
|
|
105
104
|
let Mt;
|
|
106
105
|
t[88] !== Rt || t[89] !== te ? (Mt = {
|
|
107
106
|
axis: Rt,
|
|
108
107
|
label: te
|
|
109
108
|
}, t[88] = Rt, t[89] = te, t[90] = Mt) : Mt = t[90];
|
|
110
|
-
const ee =
|
|
109
|
+
const ee = a?.xAxis?.axis, lt = a?.yAxis?.labels;
|
|
111
110
|
let s;
|
|
112
|
-
t[91] !== ee || t[92] !==
|
|
111
|
+
t[91] !== ee || t[92] !== lt ? (s = {
|
|
113
112
|
axis: ee,
|
|
114
|
-
label:
|
|
115
|
-
}, t[91] = ee, t[92] =
|
|
116
|
-
x: 0 -
|
|
113
|
+
label: lt
|
|
114
|
+
}, t[91] = ee, t[92] = lt, t[93] = s) : s = t[93], X = /* @__PURE__ */ i.jsx(Fe, { y1: Zt, y2: ae, x1: 0 - g, x2: o + l.right, label: x, labelPos: {
|
|
115
|
+
x: 0 - g,
|
|
117
116
|
dx: 0,
|
|
118
|
-
dy:
|
|
119
|
-
y:
|
|
120
|
-
}, classNames: Mt, styles: s }),
|
|
121
|
-
gridLines: n?.yAxis?.gridLines,
|
|
122
|
-
labels: n?.yAxis?.labels
|
|
123
|
-
}, classNames: {
|
|
117
|
+
dy: Et < 0 ? "1em" : -5,
|
|
118
|
+
y: Y(O < 0 ? 0 : O)
|
|
119
|
+
}, classNames: Mt, styles: s }), R = Xt ? /* @__PURE__ */ i.jsx($e, { values: yt.filter(mi), y: yt.filter(di).map((r) => Y(r)), x1: 0 - g, x2: o + l.right, styles: {
|
|
124
120
|
gridLines: a?.yAxis?.gridLines,
|
|
125
121
|
labels: a?.yAxis?.labels
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
}, classNames: {
|
|
123
|
+
gridLines: n?.yAxis?.gridLines,
|
|
124
|
+
labels: n?.yAxis?.labels
|
|
125
|
+
}, suffix: it, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
|
|
126
|
+
const m = 0 - g - 15, h = nt / 2, gt = a?.yAxis?.title, le = n?.yAxis?.title;
|
|
127
|
+
t[94] !== W || t[95] !== m || t[96] !== h || t[97] !== gt || t[98] !== le ? (k = /* @__PURE__ */ i.jsx(Oe, { x: m, y: h, style: gt, className: le, text: W, rotate90: !0 }), t[94] = W, t[95] = m, t[96] = h, t[97] = gt, t[98] = le, t[99] = k) : k = t[99], t[100] !== I ? (D = I.filter(ci).map(ri), t[100] = I, t[101] = D) : D = t[101], pt = Ne, w = Ct.map((r) => /* @__PURE__ */ i.jsxs(Ot.g, { className: "undp-viz-g-with-hover", variants: {
|
|
129
128
|
initial: {
|
|
130
|
-
x:
|
|
129
|
+
x: f(`${r.id}`) + f.bandwidth() / 2,
|
|
131
130
|
y: 0,
|
|
132
|
-
opacity: j.length !== 0 ? j.indexOf(
|
|
131
|
+
opacity: j.length !== 0 ? j.indexOf(r.label) !== -1 ? 0.85 : mt : 0.85
|
|
133
132
|
},
|
|
134
133
|
whileInView: {
|
|
135
|
-
x:
|
|
134
|
+
x: f(`${r.id}`) + f.bandwidth() / 2,
|
|
136
135
|
y: 0,
|
|
137
|
-
opacity: j.length !== 0 ? j.indexOf(
|
|
136
|
+
opacity: j.length !== 0 ? j.indexOf(r.label) !== -1 ? 0.85 : mt : 0.85,
|
|
138
137
|
transition: {
|
|
139
138
|
duration: u.duration
|
|
140
139
|
}
|
|
@@ -145,12 +144,12 @@ function ii(e) {
|
|
|
145
144
|
duration: u.duration
|
|
146
145
|
}
|
|
147
146
|
}, children: [
|
|
148
|
-
ct ? /* @__PURE__ */ i.jsx(
|
|
147
|
+
ct ? /* @__PURE__ */ i.jsx(We, { value: `${r.label}`.length < Yt ? `${r.label}` : `${`${r.label}`.substring(0, Yt)}...`, y: nt + 5, x: 0 - f.bandwidth() / 2, width: f.bandwidth(), height: l.bottom, style: a?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: u, isInView: N }) : null,
|
|
149
148
|
/* @__PURE__ */ i.jsx(Ot.line, { x1: 0, x2: 0, style: {
|
|
150
149
|
strokeWidth: qt,
|
|
151
|
-
...
|
|
150
|
+
...a?.dataConnectors || {},
|
|
152
151
|
opacity: $ ? 0.3 : 1
|
|
153
|
-
}, className: de("stroke-primary-gray-600 dark:stroke-primary-gray-300",
|
|
152
|
+
}, className: de("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: A && r.x.indexOf(Math.min(...r.x.filter(li))) === 0 ? "url(#arrow)" : "", markerStart: A && r.x.indexOf(Math.min(...r.x.filter(si))) === r.x.length - 1 ? "url(#arrow)" : "", exit: {
|
|
154
153
|
opacity: 0,
|
|
155
154
|
transition: {
|
|
156
155
|
duration: u.duration
|
|
@@ -161,39 +160,39 @@ function ii(e) {
|
|
|
161
160
|
y2: 0
|
|
162
161
|
},
|
|
163
162
|
whileInView: {
|
|
164
|
-
y1:
|
|
165
|
-
y2:
|
|
163
|
+
y1: Y(Math.min(...r.x.filter(oi))) + et,
|
|
164
|
+
y2: Y(Math.max(...r.x.filter(ai))) - et,
|
|
166
165
|
transition: {
|
|
167
166
|
duration: u.duration
|
|
168
167
|
}
|
|
169
168
|
}
|
|
170
169
|
}, initial: "initial", animate: N ? "whileInView" : "initial" }),
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
...
|
|
174
|
-
xIndex:
|
|
170
|
+
r.x.map((rt, E) => /* @__PURE__ */ i.jsx(Ot.g, { onMouseEnter: (zt) => {
|
|
171
|
+
Dt({
|
|
172
|
+
...r,
|
|
173
|
+
xIndex: E
|
|
175
174
|
}), St(zt.clientY), ut(zt.clientX), P?.({
|
|
176
|
-
...
|
|
177
|
-
xIndex:
|
|
175
|
+
...r,
|
|
176
|
+
xIndex: E
|
|
178
177
|
});
|
|
179
178
|
}, onClick: () => {
|
|
180
|
-
(
|
|
181
|
-
...
|
|
182
|
-
xIndex:
|
|
183
|
-
}) &&
|
|
184
|
-
...
|
|
185
|
-
xIndex:
|
|
186
|
-
}),
|
|
187
|
-
...
|
|
188
|
-
xIndex:
|
|
179
|
+
(G || V) && (Ce(ot, {
|
|
180
|
+
...r,
|
|
181
|
+
xIndex: E
|
|
182
|
+
}) && Ht ? (st(void 0), G?.(void 0)) : (st({
|
|
183
|
+
...r,
|
|
184
|
+
xIndex: E
|
|
185
|
+
}), G && G({
|
|
186
|
+
...r,
|
|
187
|
+
xIndex: E
|
|
189
188
|
})));
|
|
190
189
|
}, onMouseMove: (zt) => {
|
|
191
|
-
|
|
192
|
-
...
|
|
193
|
-
xIndex:
|
|
190
|
+
Dt({
|
|
191
|
+
...r,
|
|
192
|
+
xIndex: E
|
|
194
193
|
}), St(zt.clientY), ut(zt.clientX);
|
|
195
194
|
}, onMouseLeave: () => {
|
|
196
|
-
|
|
195
|
+
Dt(void 0), ut(void 0), St(void 0), P?.(void 0);
|
|
197
196
|
}, exit: {
|
|
198
197
|
opacity: 0,
|
|
199
198
|
transition: {
|
|
@@ -201,19 +200,19 @@ function ii(e) {
|
|
|
201
200
|
}
|
|
202
201
|
}, variants: {
|
|
203
202
|
initial: {
|
|
204
|
-
opacity: $ ? b[
|
|
203
|
+
opacity: $ ? b[E] === $ ? 1 : 0.3 : 1
|
|
205
204
|
},
|
|
206
205
|
whileInView: {
|
|
207
|
-
opacity: $ ? b[
|
|
206
|
+
opacity: $ ? b[E] === $ ? 1 : 0.3 : 1,
|
|
208
207
|
transition: {
|
|
209
208
|
duration: u.duration
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
|
-
}, initial: "initial", animate: N ? "whileInView" : "initial", children:
|
|
213
|
-
/* @__PURE__ */ i.jsx(Ot.circle, { cx: 0, r:
|
|
214
|
-
fill: b[
|
|
211
|
+
}, initial: "initial", animate: N ? "whileInView" : "initial", children: $t(rt) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
212
|
+
/* @__PURE__ */ i.jsx(Ot.circle, { cx: 0, r: et, style: {
|
|
213
|
+
fill: b[E],
|
|
215
214
|
fillOpacity: 0.85,
|
|
216
|
-
stroke: b[
|
|
215
|
+
stroke: b[E],
|
|
217
216
|
strokeWidth: 1
|
|
218
217
|
}, exit: {
|
|
219
218
|
opacity: 0,
|
|
@@ -222,223 +221,219 @@ function ii(e) {
|
|
|
222
221
|
}
|
|
223
222
|
}, variants: {
|
|
224
223
|
initial: {
|
|
225
|
-
cy:
|
|
224
|
+
cy: Y(0),
|
|
226
225
|
opacity: 0
|
|
227
226
|
},
|
|
228
227
|
whileInView: {
|
|
229
|
-
cy:
|
|
230
|
-
opacity:
|
|
228
|
+
cy: Y(rt || 0),
|
|
229
|
+
opacity: $t(rt) ? 0 : 1,
|
|
231
230
|
transition: {
|
|
232
231
|
duration: u.duration
|
|
233
232
|
}
|
|
234
233
|
}
|
|
235
234
|
}, initial: "initial", animate: N ? "whileInView" : "initial" }),
|
|
236
|
-
|
|
235
|
+
Gt ? /* @__PURE__ */ i.jsx(Ot.text, { x: 0, style: {
|
|
237
236
|
textAnchor: "start",
|
|
238
|
-
...
|
|
239
|
-
}, className: de("graph-value text-sm font-bold",
|
|
237
|
+
...a?.graphObjectValues || {}
|
|
238
|
+
}, className: de("graph-value text-sm font-bold", $t(rt) ? "opacity-0" : "opacity-100", n?.graphObjectValues), dx: et + 3, dy: "0.33em", exit: {
|
|
240
239
|
opacity: 0,
|
|
241
240
|
transition: {
|
|
242
241
|
duration: u.duration
|
|
243
242
|
}
|
|
244
243
|
}, variants: {
|
|
245
244
|
initial: {
|
|
246
|
-
y:
|
|
245
|
+
y: Y(0),
|
|
247
246
|
opacity: 0,
|
|
248
|
-
fill: wt || b[
|
|
247
|
+
fill: wt || b[E]
|
|
249
248
|
},
|
|
250
249
|
whileInView: {
|
|
251
|
-
y:
|
|
252
|
-
fill: wt || b[
|
|
250
|
+
y: Y(rt || 0),
|
|
251
|
+
fill: wt || b[E],
|
|
253
252
|
opacity: 1,
|
|
254
253
|
transition: {
|
|
255
254
|
duration: u.duration
|
|
256
255
|
}
|
|
257
256
|
}
|
|
258
|
-
}, initial: "initial", animate: N ? "whileInView" : "initial", children: ge(
|
|
259
|
-
] }) },
|
|
260
|
-
] },
|
|
257
|
+
}, initial: "initial", animate: N ? "whileInView" : "initial", children: ge(rt, "NA", d, F, it) }) : null
|
|
258
|
+
] }) }, E))
|
|
259
|
+
] }, r.label)), K = At ? /* @__PURE__ */ i.jsx(i.Fragment, { children: At.map((r, rt) => /* @__PURE__ */ i.jsx(Xe, { text: r.text, color: r.color, y: Y(r.value), x1: 0 - g, x2: o + l.right, classNames: r.classNames, styles: r.styles, animate: u, isInView: N }, rt)) }) : null, t[8] = u, t[9] = A, t[10] = W, t[11] = Vt, t[12] = n?.dataConnectors, t[13] = n?.graphObjectValues, t[14] = n?.xAxis?.axis, t[15] = n?.xAxis?.labels, t[16] = n?.yAxis?.gridLines, t[17] = n?.yAxis?.labels, t[18] = n?.yAxis?.title, t[19] = qt, t[20] = I, t[21] = p, t[22] = V, t[23] = mt, t[24] = b, t[25] = nt, t[26] = o, t[27] = jt, t[28] = j, t[29] = N, t[30] = L, t[31] = g, t[32] = l.bottom, t[33] = l.left, t[34] = l.right, t[35] = l.top, t[36] = dt, t[37] = Et, t[38] = vt, t[39] = O, t[40] = ot, t[41] = Ut, t[42] = G, t[43] = P, t[44] = d, t[45] = F, t[46] = et, t[47] = At, t[48] = Ht, t[49] = $, t[50] = ct, t[51] = Xt, t[52] = Gt, t[53] = a?.dataConnectors, t[54] = a?.graphObjectValues, t[55] = a?.xAxis?.axis, t[56] = a?.xAxis?.labels, t[57] = a?.yAxis?.gridLines, t[58] = a?.yAxis?.labels, t[59] = a?.yAxis?.title, t[60] = it, t[61] = Yt, t[62] = wt, t[63] = Lt, t[64] = pt, t[65] = B, t[66] = X, t[67] = R, t[68] = k, t[69] = D, t[70] = C, t[71] = z, t[72] = q, t[73] = U, t[74] = J, t[75] = v, t[76] = w, t[77] = K, t[78] = Q;
|
|
261
260
|
} else
|
|
262
|
-
pt = t[64],
|
|
263
|
-
let
|
|
264
|
-
t[102] !== pt || t[103] !==
|
|
265
|
-
A,
|
|
266
|
-
Z
|
|
267
|
-
] }), t[102] = pt, t[103] = A, t[104] = Z, t[105] = tt) : tt = t[105];
|
|
268
|
-
let O;
|
|
269
|
-
t[106] !== I ? (O = I.filter(ai).map(ni), t[106] = I, t[107] = O) : O = t[107];
|
|
270
|
-
let D;
|
|
271
|
-
t[108] !== Y || t[109] !== q || t[110] !== C || t[111] !== T || t[112] !== tt || t[113] !== O || t[114] !== _ ? (D = /* @__PURE__ */ i.jsxs("g", { transform: _, children: [
|
|
272
|
-
Y,
|
|
273
|
-
q,
|
|
274
|
-
C,
|
|
275
|
-
T,
|
|
276
|
-
tt,
|
|
277
|
-
O
|
|
278
|
-
] }), t[108] = Y, t[109] = q, t[110] = C, t[111] = T, t[112] = tt, t[113] = O, t[114] = _, t[115] = D) : D = t[115];
|
|
279
|
-
let S;
|
|
280
|
-
t[116] !== X || t[117] !== M || t[118] !== U || t[119] !== J || t[120] !== K || t[121] !== Q || t[122] !== w || t[123] !== D ? (S = /* @__PURE__ */ i.jsxs(X, { width: M, height: U, viewBox: J, direction: K, ref: Q, children: [
|
|
261
|
+
pt = t[64], B = t[65], X = t[66], R = t[67], k = t[68], D = t[69], C = t[70], z = t[71], q = t[72], U = t[73], J = t[74], v = t[75], w = t[76], K = t[77], Q = t[78];
|
|
262
|
+
let Z;
|
|
263
|
+
t[102] !== pt || t[103] !== w || t[104] !== K ? (Z = /* @__PURE__ */ i.jsxs(pt, { children: [
|
|
281
264
|
w,
|
|
282
|
-
|
|
283
|
-
] }), t[
|
|
284
|
-
let
|
|
285
|
-
t[
|
|
286
|
-
let
|
|
287
|
-
t[
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
265
|
+
K
|
|
266
|
+
] }), t[102] = pt, t[103] = w, t[104] = K, t[105] = Z) : Z = t[105];
|
|
267
|
+
let M;
|
|
268
|
+
t[106] !== I ? (M = I.filter(ni).map(ii), t[106] = I, t[107] = M) : M = t[107];
|
|
269
|
+
let T;
|
|
270
|
+
t[108] !== X || t[109] !== R || t[110] !== k || t[111] !== D || t[112] !== Z || t[113] !== M || t[114] !== Q ? (T = /* @__PURE__ */ i.jsxs("g", { transform: Q, children: [
|
|
271
|
+
X,
|
|
272
|
+
R,
|
|
273
|
+
k,
|
|
274
|
+
D,
|
|
275
|
+
Z,
|
|
276
|
+
M
|
|
277
|
+
] }), t[108] = X, t[109] = R, t[110] = k, t[111] = D, t[112] = Z, t[113] = M, t[114] = Q, t[115] = T) : T = t[115];
|
|
278
|
+
let S;
|
|
279
|
+
t[116] !== B || t[117] !== C || t[118] !== z || t[119] !== q || t[120] !== U || t[121] !== J || t[122] !== v || t[123] !== T ? (S = /* @__PURE__ */ i.jsxs(B, { width: C, height: z, viewBox: q, direction: U, ref: J, children: [
|
|
280
|
+
v,
|
|
281
|
+
T
|
|
282
|
+
] }), t[116] = B, t[117] = C, t[118] = z, t[119] = q, t[120] = U, t[121] = J, t[122] = v, t[123] = T, t[124] = S) : S = t[124];
|
|
283
|
+
let _;
|
|
284
|
+
t[125] !== n?.tooltip || t[126] !== Tt || t[127] !== xt || t[128] !== at || t[129] !== a?.tooltip || t[130] !== y ? (_ = at && y && Tt && xt ? /* @__PURE__ */ i.jsx(Me, { data: at, body: y, xPos: Tt, yPos: xt, backgroundStyle: a?.tooltip, className: n?.tooltip }) : null, t[125] = n?.tooltip, t[126] = Tt, t[127] = xt, t[128] = at, t[129] = a?.tooltip, t[130] = y, t[131] = _) : _ = t[131];
|
|
285
|
+
let tt;
|
|
286
|
+
t[132] !== n?.modal || t[133] !== V || t[134] !== ot ? (tt = V && ot !== void 0 ? /* @__PURE__ */ i.jsx(Ve, { body: V, data: ot, setData: st, className: n?.modal }) : null, t[132] = n?.modal, t[133] = V, t[134] = ot, t[135] = tt) : tt = t[135];
|
|
292
287
|
let ft;
|
|
293
|
-
return t[
|
|
288
|
+
return t[136] !== S || t[137] !== _ || t[138] !== tt ? (ft = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
294
289
|
S,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
] }), t[
|
|
290
|
+
_,
|
|
291
|
+
tt
|
|
292
|
+
] }), t[136] = S, t[137] = _, t[138] = tt, t[139] = ft) : ft = t[139], ft;
|
|
298
293
|
}
|
|
299
|
-
function
|
|
294
|
+
function ii(e) {
|
|
300
295
|
return e.layer;
|
|
301
296
|
}
|
|
302
|
-
function
|
|
297
|
+
function ni(e) {
|
|
303
298
|
return e.position === "after";
|
|
304
299
|
}
|
|
305
|
-
function
|
|
300
|
+
function ai(e) {
|
|
306
301
|
return e !== null;
|
|
307
302
|
}
|
|
308
|
-
function
|
|
303
|
+
function oi(e) {
|
|
309
304
|
return e !== null;
|
|
310
305
|
}
|
|
311
|
-
function
|
|
306
|
+
function si(e) {
|
|
312
307
|
return e !== null;
|
|
313
308
|
}
|
|
314
309
|
function li(e) {
|
|
315
310
|
return e !== null;
|
|
316
311
|
}
|
|
317
|
-
function
|
|
312
|
+
function ri(e) {
|
|
318
313
|
return e.layer;
|
|
319
314
|
}
|
|
320
|
-
function
|
|
315
|
+
function ci(e) {
|
|
321
316
|
return e.position === "before";
|
|
322
317
|
}
|
|
323
|
-
function
|
|
318
|
+
function di(e) {
|
|
324
319
|
return e !== 0;
|
|
325
320
|
}
|
|
326
|
-
function
|
|
321
|
+
function mi(e) {
|
|
327
322
|
return e !== 0;
|
|
328
323
|
}
|
|
329
|
-
function
|
|
324
|
+
function ui(e) {
|
|
330
325
|
return `${e.id}`;
|
|
331
326
|
}
|
|
332
|
-
function
|
|
333
|
-
const t =
|
|
334
|
-
data:
|
|
327
|
+
function xi(e) {
|
|
328
|
+
const t = be.c(133), {
|
|
329
|
+
data: p,
|
|
335
330
|
leftMargin: Ft,
|
|
336
331
|
rightMargin: ie,
|
|
337
332
|
topMargin: Wt,
|
|
338
333
|
bottomMargin: Bt,
|
|
339
334
|
dotColors: b,
|
|
340
|
-
suffix:
|
|
341
|
-
prefix:
|
|
342
|
-
barPadding:
|
|
343
|
-
showValues:
|
|
335
|
+
suffix: Vt,
|
|
336
|
+
prefix: Xt,
|
|
337
|
+
barPadding: Yt,
|
|
338
|
+
showValues: Lt,
|
|
344
339
|
showTicks: jt,
|
|
345
|
-
truncateBy:
|
|
340
|
+
truncateBy: et,
|
|
346
341
|
width: ct,
|
|
347
|
-
height:
|
|
342
|
+
height: y,
|
|
348
343
|
radius: P,
|
|
349
|
-
showLabels:
|
|
350
|
-
tooltip:
|
|
351
|
-
onSeriesMouseOver:
|
|
352
|
-
maxValue:
|
|
353
|
-
minValue:
|
|
344
|
+
showLabels: Et,
|
|
345
|
+
tooltip: O,
|
|
346
|
+
onSeriesMouseOver: G,
|
|
347
|
+
maxValue: Gt,
|
|
348
|
+
minValue: it,
|
|
354
349
|
onSeriesMouseClick: F,
|
|
355
350
|
selectedColor: $,
|
|
356
|
-
arrowConnector:
|
|
351
|
+
arrowConnector: A,
|
|
357
352
|
connectorStrokeWidth: qt,
|
|
358
353
|
maxBarThickness: dt,
|
|
359
|
-
minBarThickness:
|
|
360
|
-
resetSelectionOnDoubleClick:
|
|
361
|
-
detailsOnClick:
|
|
354
|
+
minBarThickness: vt,
|
|
355
|
+
resetSelectionOnDoubleClick: Ht,
|
|
356
|
+
detailsOnClick: V,
|
|
362
357
|
axisTitle: W,
|
|
363
358
|
noOfTicks: Ut,
|
|
364
359
|
valueColor: wt,
|
|
365
|
-
styles:
|
|
366
|
-
classNames:
|
|
367
|
-
labelOrder:
|
|
360
|
+
styles: a,
|
|
361
|
+
classNames: n,
|
|
362
|
+
labelOrder: L,
|
|
368
363
|
refValues: At,
|
|
369
364
|
rtl: u,
|
|
370
365
|
animate: d,
|
|
371
366
|
precision: I,
|
|
372
367
|
customLayers: j,
|
|
373
368
|
highlightedDataPoints: mt,
|
|
374
|
-
dimmedOpacity:
|
|
369
|
+
dimmedOpacity: g
|
|
375
370
|
} = e, Jt = Ft === void 0 ? 100 : Ft, It = ie === void 0 ? 40 : ie, kt = Wt === void 0 ? 20 : Wt, ne = Bt === void 0 ? 10 : Bt, Kt = me(null);
|
|
376
371
|
let N;
|
|
377
372
|
t[0] !== d.amount || t[1] !== d.once ? (N = {
|
|
378
373
|
once: d.once,
|
|
379
374
|
amount: d.amount
|
|
380
375
|
}, t[0] = d.amount, t[1] = d.once, t[2] = N) : N = t[2];
|
|
381
|
-
const
|
|
382
|
-
let
|
|
383
|
-
t[3] !== ne || t[4] !== Jt || t[5] !== It || t[6] !== Nt ? (
|
|
376
|
+
const H = Ie(Kt, N), Nt = W ? kt + 25 : kt;
|
|
377
|
+
let l;
|
|
378
|
+
t[3] !== ne || t[4] !== Jt || t[5] !== It || t[6] !== Nt ? (l = {
|
|
384
379
|
top: Nt,
|
|
385
380
|
bottom: ne,
|
|
386
381
|
left: Jt,
|
|
387
382
|
right: It
|
|
388
|
-
}, t[3] = ne, t[4] = Jt, t[5] = It, t[6] = Nt, t[7] =
|
|
389
|
-
const o =
|
|
390
|
-
let X,
|
|
391
|
-
if (t[8] !== d || t[9] !==
|
|
383
|
+
}, t[3] = ne, t[4] = Jt, t[5] = It, t[6] = Nt, t[7] = l) : l = t[7];
|
|
384
|
+
const o = l, nt = ct - o.left - o.right, at = y - o.top - o.bottom, [Dt, ot] = bt(void 0), [st, Tt] = bt(void 0), [ut, xt] = bt(void 0), [St, pt] = bt(void 0);
|
|
385
|
+
let B, X, R, k, D, C, z, q, U, J, v, w, K, Q, Z;
|
|
386
|
+
if (t[8] !== d || t[9] !== A || t[10] !== W || t[11] !== Yt || t[12] !== n?.dataConnectors || t[13] !== n?.graphObjectValues || t[14] !== n?.xAxis?.gridLines || t[15] !== n?.xAxis?.labels || t[16] !== n?.xAxis?.title || t[17] !== n?.yAxis?.gridLines || t[18] !== n?.yAxis?.labels || t[19] !== qt || t[20] !== j || t[21] !== p || t[22] !== V || t[23] !== g || t[24] !== b || t[25] !== at || t[26] !== nt || t[27] !== y || t[28] !== mt || t[29] !== H || t[30] !== L || t[31] !== o.bottom || t[32] !== o.left || t[33] !== o.top || t[34] !== dt || t[35] !== Gt || t[36] !== vt || t[37] !== it || t[38] !== st || t[39] !== Ut || t[40] !== F || t[41] !== G || t[42] !== I || t[43] !== Xt || t[44] !== P || t[45] !== At || t[46] !== Ht || t[47] !== u || t[48] !== $ || t[49] !== Et || t[50] !== jt || t[51] !== Lt || t[52] !== a?.dataConnectors || t[53] !== a?.graphObjectValues || t[54] !== a?.xAxis?.gridLines || t[55] !== a?.xAxis?.labels || t[56] !== a?.xAxis?.title || t[57] !== a?.yAxis?.gridLines || t[58] !== a?.yAxis?.labels || t[59] !== Vt || t[60] !== kt || t[61] !== et || t[62] !== wt || t[63] !== ct) {
|
|
392
387
|
let Ct;
|
|
393
|
-
t[79] !==
|
|
388
|
+
t[79] !== L ? (Ct = (s, m) => ({
|
|
394
389
|
...s,
|
|
395
|
-
id:
|
|
396
|
-
}), t[79] =
|
|
397
|
-
const Qt =
|
|
398
|
-
|
|
399
|
-
gridLines: n?.xAxis?.gridLines,
|
|
400
|
-
labels: n?.xAxis?.labels
|
|
401
|
-
}, classNames: {
|
|
390
|
+
id: L ? `${s.label}` : `${m}`
|
|
391
|
+
}), t[79] = L, t[80] = Ct) : Ct = t[80];
|
|
392
|
+
const Qt = p.map(Ct), Y = L || Qt.map(Ci), f = Le().domain([it, Gt]).range([0, nt]).nice(), yt = je().domain(Y).range([0, vt ? Math.max(at, vt * Qt.length) : dt ? Math.min(at, dt * Qt.length) : at]).paddingInner(Yt), Zt = f.ticks(Ut);
|
|
393
|
+
X = Ot.svg, z = `${ct}px`, q = `${y}px`, U = `0 0 ${ct} ${y}`, J = "ltr", v = Kt, t[81] !== A ? (w = A ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[81] = A, t[82] = w) : w = t[82], Z = `translate(${o.left},${o.top})`, R = jt ? /* @__PURE__ */ i.jsx(Ye, { values: Zt.filter(ki), x: Zt.filter(Ai).map((s) => f(s)), y1: 0 - kt, y2: at + o.bottom, styles: {
|
|
402
394
|
gridLines: a?.xAxis?.gridLines,
|
|
403
395
|
labels: a?.xAxis?.labels
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
396
|
+
}, classNames: {
|
|
397
|
+
gridLines: n?.xAxis?.gridLines,
|
|
398
|
+
labels: n?.xAxis?.labels
|
|
399
|
+
}, suffix: Vt, prefix: Xt, labelType: "secondary", showGridLines: !0, precision: I }) : null;
|
|
400
|
+
const ae = nt / 2, _t = 0 - o.top + 15, x = a?.xAxis?.title, Rt = n?.xAxis?.title;
|
|
401
|
+
t[83] !== W || t[84] !== ae || t[85] !== _t || t[86] !== x || t[87] !== Rt ? (k = /* @__PURE__ */ i.jsx(Oe, { x: ae, y: _t, style: x, className: Rt, text: W }), t[83] = W, t[84] = ae, t[85] = _t, t[86] = x, t[87] = Rt, t[88] = k) : k = t[88];
|
|
402
|
+
const te = a?.yAxis?.gridLines;
|
|
408
403
|
let Mt;
|
|
409
404
|
t[89] !== te ? (Mt = {
|
|
410
405
|
gridLines: te
|
|
411
406
|
}, t[89] = te, t[90] = Mt) : Mt = t[90];
|
|
412
|
-
const ee =
|
|
413
|
-
let
|
|
414
|
-
t[91] !== ee ? (
|
|
407
|
+
const ee = n?.yAxis?.gridLines;
|
|
408
|
+
let lt;
|
|
409
|
+
t[91] !== ee ? (lt = {
|
|
415
410
|
gridLines: ee
|
|
416
|
-
}, t[91] = ee, t[92] =
|
|
411
|
+
}, t[91] = ee, t[92] = lt) : lt = t[92], D = /* @__PURE__ */ i.jsx($e, { y: Qt.map((s) => yt(`${s.id}`) + yt.bandwidth() / 2), x1: 0, x2: nt, styles: Mt, classNames: lt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: I }), t[93] !== j ? (C = j.filter(wi).map(vi), t[93] = j, t[94] = C) : C = t[94], B = Ne, K = Qt.map((s) => /* @__PURE__ */ i.jsxs(Ot.g, { className: "undp-viz-g-with-hover", variants: {
|
|
417
412
|
initial: {
|
|
418
413
|
x: 0,
|
|
419
414
|
y: yt(`${s.id}`) + yt.bandwidth() / 2,
|
|
420
|
-
opacity: mt.length !== 0 ? mt.indexOf(s.label) !== -1 ? 0.85 :
|
|
415
|
+
opacity: mt.length !== 0 ? mt.indexOf(s.label) !== -1 ? 0.85 : g : 0.85
|
|
421
416
|
},
|
|
422
417
|
whileInView: {
|
|
423
418
|
x: 0,
|
|
424
419
|
y: yt(`${s.id}`) + yt.bandwidth() / 2,
|
|
425
|
-
opacity: mt.length !== 0 ? mt.indexOf(s.label) !== -1 ? 0.85 :
|
|
420
|
+
opacity: mt.length !== 0 ? mt.indexOf(s.label) !== -1 ? 0.85 : g : 0.85,
|
|
426
421
|
transition: {
|
|
427
422
|
duration: d.duration
|
|
428
423
|
}
|
|
429
424
|
}
|
|
430
|
-
}, initial: "initial", animate:
|
|
425
|
+
}, initial: "initial", animate: H ? "whileInView" : "initial", exit: {
|
|
431
426
|
opacity: 0,
|
|
432
427
|
transition: {
|
|
433
428
|
duration: d.duration
|
|
434
429
|
}
|
|
435
430
|
}, children: [
|
|
436
|
-
|
|
431
|
+
Et ? /* @__PURE__ */ i.jsx(Ee, { value: `${s.label}`.length < et ? `${s.label}` : `${`${s.label}`.substring(0, et)}...`, y: 0 - yt.bandwidth() / 2, x: 0 - o.left, width: o.left, height: yt.bandwidth(), alignment: "right", style: a?.yAxis?.labels, className: n?.yAxis?.labels, animate: d, isInView: H }) : null,
|
|
437
432
|
/* @__PURE__ */ i.jsx(Ot.line, { y1: 0, y2: 0, style: {
|
|
438
433
|
strokeWidth: qt,
|
|
439
|
-
...
|
|
434
|
+
...a?.dataConnectors || {},
|
|
440
435
|
opacity: $ ? 0.3 : 1
|
|
441
|
-
}, className: de("stroke-primary-gray-600 dark:stroke-primary-gray-300",
|
|
436
|
+
}, className: de("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: A && s.x.indexOf(Math.min(...s.x.filter(bi))) === 0 ? "url(#arrow)" : "", markerStart: A && s.x.indexOf(Math.min(...s.x.filter(gi))) === s.x.length - 1 ? "url(#arrow)" : "", exit: {
|
|
442
437
|
opacity: 0,
|
|
443
438
|
transition: {
|
|
444
439
|
duration: d.duration
|
|
@@ -449,39 +444,39 @@ function pi(e) {
|
|
|
449
444
|
x2: 0
|
|
450
445
|
},
|
|
451
446
|
whileInView: {
|
|
452
|
-
x1:
|
|
453
|
-
x2:
|
|
447
|
+
x1: f(Math.min(...s.x.filter(yi))) + P,
|
|
448
|
+
x2: f(Math.max(...s.x.filter(hi))) - P,
|
|
454
449
|
transition: {
|
|
455
450
|
duration: d.duration
|
|
456
451
|
}
|
|
457
452
|
}
|
|
458
|
-
}, initial: "initial", animate:
|
|
459
|
-
s.x.map((m,
|
|
460
|
-
|
|
453
|
+
}, initial: "initial", animate: H ? "whileInView" : "initial" }),
|
|
454
|
+
s.x.map((m, h) => /* @__PURE__ */ i.jsx(Ot.g, { onMouseEnter: (gt) => {
|
|
455
|
+
ot({
|
|
461
456
|
...s,
|
|
462
|
-
xIndex:
|
|
463
|
-
}), pt(gt.clientY), xt(gt.clientX),
|
|
457
|
+
xIndex: h
|
|
458
|
+
}), pt(gt.clientY), xt(gt.clientX), G?.({
|
|
464
459
|
...s,
|
|
465
|
-
xIndex:
|
|
460
|
+
xIndex: h
|
|
466
461
|
});
|
|
467
462
|
}, onClick: () => {
|
|
468
|
-
(F ||
|
|
463
|
+
(F || V) && (Ce(st, {
|
|
469
464
|
...s,
|
|
470
|
-
xIndex:
|
|
471
|
-
}) &&
|
|
465
|
+
xIndex: h
|
|
466
|
+
}) && Ht ? (Tt(void 0), F?.(void 0)) : (Tt({
|
|
472
467
|
...s,
|
|
473
|
-
xIndex:
|
|
468
|
+
xIndex: h
|
|
474
469
|
}), F && F({
|
|
475
470
|
...s,
|
|
476
|
-
xIndex:
|
|
471
|
+
xIndex: h
|
|
477
472
|
})));
|
|
478
473
|
}, onMouseMove: (gt) => {
|
|
479
|
-
|
|
474
|
+
ot({
|
|
480
475
|
...s,
|
|
481
|
-
xIndex:
|
|
476
|
+
xIndex: h
|
|
482
477
|
}), pt(gt.clientY), xt(gt.clientX);
|
|
483
478
|
}, onMouseLeave: () => {
|
|
484
|
-
|
|
479
|
+
ot(void 0), xt(void 0), pt(void 0), G?.(void 0);
|
|
485
480
|
}, exit: {
|
|
486
481
|
opacity: 0,
|
|
487
482
|
transition: {
|
|
@@ -489,21 +484,21 @@ function pi(e) {
|
|
|
489
484
|
}
|
|
490
485
|
}, variants: {
|
|
491
486
|
initial: {
|
|
492
|
-
opacity: $ ? b[
|
|
487
|
+
opacity: $ ? b[h] === $ ? 1 : 0.3 : 1
|
|
493
488
|
},
|
|
494
489
|
whileInView: {
|
|
495
|
-
opacity: $ ? b[
|
|
490
|
+
opacity: $ ? b[h] === $ ? 1 : 0.3 : 1,
|
|
496
491
|
transition: {
|
|
497
492
|
duration: d.duration
|
|
498
493
|
}
|
|
499
494
|
}
|
|
500
|
-
}, initial: "initial", animate:
|
|
495
|
+
}, initial: "initial", animate: H ? "whileInView" : "initial", children: $t(m) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
501
496
|
/* @__PURE__ */ i.jsx(Ot.circle, { cy: 0, r: P, style: {
|
|
502
|
-
fill: b[
|
|
497
|
+
fill: b[h],
|
|
503
498
|
fillOpacity: 0.85,
|
|
504
|
-
stroke: b[
|
|
499
|
+
stroke: b[h],
|
|
505
500
|
strokeWidth: 1,
|
|
506
|
-
opacity:
|
|
501
|
+
opacity: $t(m) ? 0 : 1
|
|
507
502
|
}, exit: {
|
|
508
503
|
opacity: 0,
|
|
509
504
|
transition: {
|
|
@@ -511,221 +506,217 @@ function pi(e) {
|
|
|
511
506
|
}
|
|
512
507
|
}, variants: {
|
|
513
508
|
initial: {
|
|
514
|
-
cx:
|
|
509
|
+
cx: f(0),
|
|
515
510
|
opacity: 0
|
|
516
511
|
},
|
|
517
512
|
whileInView: {
|
|
518
|
-
cx:
|
|
519
|
-
opacity:
|
|
513
|
+
cx: f(m || 0),
|
|
514
|
+
opacity: $t(m) ? 0 : 1,
|
|
520
515
|
transition: {
|
|
521
516
|
duration: d.duration
|
|
522
517
|
}
|
|
523
518
|
}
|
|
524
|
-
}, initial: "initial", animate:
|
|
525
|
-
|
|
519
|
+
}, initial: "initial", animate: H ? "whileInView" : "initial" }),
|
|
520
|
+
Lt ? /* @__PURE__ */ i.jsx(Ot.text, { y: 0, style: {
|
|
526
521
|
textAnchor: "middle",
|
|
527
|
-
...
|
|
528
|
-
}, dx: 0, dy: 0 - P - 3, className: de("graph-value text-sm font-bold",
|
|
522
|
+
...a?.graphObjectValues || {}
|
|
523
|
+
}, dx: 0, dy: 0 - P - 3, className: de("graph-value text-sm font-bold", $t(m) ? "0opacity-0" : "opacity-100", n?.graphObjectValues), exit: {
|
|
529
524
|
opacity: 0,
|
|
530
525
|
transition: {
|
|
531
526
|
duration: d.duration
|
|
532
527
|
}
|
|
533
528
|
}, variants: {
|
|
534
529
|
initial: {
|
|
535
|
-
x:
|
|
530
|
+
x: f(0),
|
|
536
531
|
opacity: 0,
|
|
537
|
-
fill: wt || b[
|
|
532
|
+
fill: wt || b[h]
|
|
538
533
|
},
|
|
539
534
|
whileInView: {
|
|
540
|
-
x:
|
|
541
|
-
fill: wt || b[
|
|
535
|
+
x: f(m || 0),
|
|
536
|
+
fill: wt || b[h],
|
|
542
537
|
opacity: 1,
|
|
543
538
|
transition: {
|
|
544
539
|
duration: d.duration
|
|
545
540
|
}
|
|
546
541
|
}
|
|
547
|
-
}, initial: "initial", animate:
|
|
548
|
-
] }) },
|
|
549
|
-
] }, s.label)),
|
|
542
|
+
}, initial: "initial", animate: H ? "whileInView" : "initial", children: ge(m, "NA", I, Xt, Vt) }) : null
|
|
543
|
+
] }) }, h))
|
|
544
|
+
] }, s.label)), Q = At ? /* @__PURE__ */ i.jsx(i.Fragment, { children: At.map((s, m) => /* @__PURE__ */ i.jsx(Be, { text: s.text, color: s.color, x: f(s.value), y1: 0 - o.top, y2: at + o.bottom, textSide: f(s.value) > nt * 0.75 || u ? "left" : "right", classNames: s.classNames, styles: s.styles, animate: d, isInView: H }, m)) }) : null, t[8] = d, t[9] = A, t[10] = W, t[11] = Yt, t[12] = n?.dataConnectors, t[13] = n?.graphObjectValues, t[14] = n?.xAxis?.gridLines, t[15] = n?.xAxis?.labels, t[16] = n?.xAxis?.title, t[17] = n?.yAxis?.gridLines, t[18] = n?.yAxis?.labels, t[19] = qt, t[20] = j, t[21] = p, t[22] = V, t[23] = g, t[24] = b, t[25] = at, t[26] = nt, t[27] = y, t[28] = mt, t[29] = H, t[30] = L, t[31] = o.bottom, t[32] = o.left, t[33] = o.top, t[34] = dt, t[35] = Gt, t[36] = vt, t[37] = it, t[38] = st, t[39] = Ut, t[40] = F, t[41] = G, t[42] = I, t[43] = Xt, t[44] = P, t[45] = At, t[46] = Ht, t[47] = u, t[48] = $, t[49] = Et, t[50] = jt, t[51] = Lt, t[52] = a?.dataConnectors, t[53] = a?.graphObjectValues, t[54] = a?.xAxis?.gridLines, t[55] = a?.xAxis?.labels, t[56] = a?.xAxis?.title, t[57] = a?.yAxis?.gridLines, t[58] = a?.yAxis?.labels, t[59] = Vt, t[60] = kt, t[61] = et, t[62] = wt, t[63] = ct, t[64] = B, t[65] = X, t[66] = R, t[67] = k, t[68] = D, t[69] = C, t[70] = z, t[71] = q, t[72] = U, t[73] = J, t[74] = v, t[75] = w, t[76] = K, t[77] = Q, t[78] = Z;
|
|
550
545
|
} else
|
|
551
|
-
|
|
552
|
-
let
|
|
553
|
-
t[95] !==
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
] }), t[95] =
|
|
557
|
-
let
|
|
558
|
-
t[99] !== j ? (
|
|
546
|
+
B = t[64], X = t[65], R = t[66], k = t[67], D = t[68], C = t[69], z = t[70], q = t[71], U = t[72], J = t[73], v = t[74], w = t[75], K = t[76], Q = t[77], Z = t[78];
|
|
547
|
+
let M;
|
|
548
|
+
t[95] !== B || t[96] !== K || t[97] !== Q ? (M = /* @__PURE__ */ i.jsxs(B, { children: [
|
|
549
|
+
K,
|
|
550
|
+
Q
|
|
551
|
+
] }), t[95] = B, t[96] = K, t[97] = Q, t[98] = M) : M = t[98];
|
|
552
|
+
let T;
|
|
553
|
+
t[99] !== j ? (T = j.filter(fi).map(pi), t[99] = j, t[100] = T) : T = t[100];
|
|
559
554
|
let S;
|
|
560
|
-
t[101] !==
|
|
561
|
-
|
|
555
|
+
t[101] !== R || t[102] !== k || t[103] !== D || t[104] !== C || t[105] !== M || t[106] !== T || t[107] !== Z ? (S = /* @__PURE__ */ i.jsxs("g", { transform: Z, children: [
|
|
556
|
+
R,
|
|
557
|
+
k,
|
|
558
|
+
D,
|
|
562
559
|
C,
|
|
563
|
-
T,
|
|
564
560
|
M,
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
A,
|
|
561
|
+
T
|
|
562
|
+
] }), t[101] = R, t[102] = k, t[103] = D, t[104] = C, t[105] = M, t[106] = T, t[107] = Z, t[108] = S) : S = t[108];
|
|
563
|
+
let _;
|
|
564
|
+
t[109] !== X || t[110] !== z || t[111] !== q || t[112] !== U || t[113] !== J || t[114] !== v || t[115] !== w || t[116] !== S ? (_ = /* @__PURE__ */ i.jsxs(X, { width: z, height: q, viewBox: U, direction: J, ref: v, children: [
|
|
565
|
+
w,
|
|
571
566
|
S
|
|
572
|
-
] }), t[109] =
|
|
573
|
-
let
|
|
574
|
-
t[118] !==
|
|
567
|
+
] }), t[109] = X, t[110] = z, t[111] = q, t[112] = U, t[113] = J, t[114] = v, t[115] = w, t[116] = S, t[117] = _) : _ = t[117];
|
|
568
|
+
let tt;
|
|
569
|
+
t[118] !== n?.tooltip || t[119] !== ut || t[120] !== St || t[121] !== Dt || t[122] !== a?.tooltip || t[123] !== O ? (tt = Dt && O && ut && St ? /* @__PURE__ */ i.jsx(Me, { data: Dt, body: O, xPos: ut, yPos: St, backgroundStyle: a?.tooltip, className: n?.tooltip }) : null, t[118] = n?.tooltip, t[119] = ut, t[120] = St, t[121] = Dt, t[122] = a?.tooltip, t[123] = O, t[124] = tt) : tt = t[124];
|
|
575
570
|
let ft;
|
|
576
|
-
t[125] !==
|
|
577
|
-
Dt(void 0);
|
|
578
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof x == "string" ? {
|
|
579
|
-
__html: Le(x, H)
|
|
580
|
-
} : void 0, children: typeof x == "function" ? x(H) : null }) }) : null, t[125] = x, t[126] = H, t[127] = ft) : ft = t[127];
|
|
571
|
+
t[125] !== n?.modal || t[126] !== V || t[127] !== st ? (ft = V && st !== void 0 ? /* @__PURE__ */ i.jsx(Ve, { body: V, data: st, setData: Tt, className: n?.modal }) : null, t[125] = n?.modal, t[126] = V, t[127] = st, t[128] = ft) : ft = t[128];
|
|
581
572
|
let ht;
|
|
582
|
-
return t[
|
|
583
|
-
|
|
584
|
-
|
|
573
|
+
return t[129] !== _ || t[130] !== tt || t[131] !== ft ? (ht = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
574
|
+
_,
|
|
575
|
+
tt,
|
|
585
576
|
ft
|
|
586
|
-
] }), t[
|
|
577
|
+
] }), t[129] = _, t[130] = tt, t[131] = ft, t[132] = ht) : ht = t[132], ht;
|
|
587
578
|
}
|
|
588
|
-
function
|
|
579
|
+
function pi(e) {
|
|
589
580
|
return e.layer;
|
|
590
581
|
}
|
|
591
|
-
function
|
|
582
|
+
function fi(e) {
|
|
592
583
|
return e.position === "after";
|
|
593
584
|
}
|
|
594
|
-
function
|
|
585
|
+
function hi(e) {
|
|
595
586
|
return e !== null;
|
|
596
587
|
}
|
|
597
|
-
function
|
|
588
|
+
function yi(e) {
|
|
598
589
|
return e !== null;
|
|
599
590
|
}
|
|
600
|
-
function
|
|
591
|
+
function gi(e) {
|
|
601
592
|
return e !== null;
|
|
602
593
|
}
|
|
603
594
|
function bi(e) {
|
|
604
595
|
return e !== null;
|
|
605
596
|
}
|
|
606
|
-
function
|
|
597
|
+
function vi(e) {
|
|
607
598
|
return e.layer;
|
|
608
599
|
}
|
|
609
|
-
function
|
|
600
|
+
function wi(e) {
|
|
610
601
|
return e.position === "before";
|
|
611
602
|
}
|
|
612
|
-
function
|
|
603
|
+
function Ai(e, t) {
|
|
613
604
|
return t !== 0;
|
|
614
605
|
}
|
|
615
|
-
function
|
|
606
|
+
function ki(e, t) {
|
|
616
607
|
return t !== 0;
|
|
617
608
|
}
|
|
618
|
-
function
|
|
609
|
+
function Ci(e) {
|
|
619
610
|
return `${e.id}`;
|
|
620
611
|
}
|
|
621
|
-
function
|
|
622
|
-
const t =
|
|
623
|
-
data:
|
|
612
|
+
function kn(e) {
|
|
613
|
+
const t = be.c(43), {
|
|
614
|
+
data: p,
|
|
624
615
|
graphTitle: Ft,
|
|
625
616
|
colors: ie,
|
|
626
617
|
sources: Wt,
|
|
627
618
|
graphDescription: Bt,
|
|
628
619
|
barPadding: b,
|
|
629
|
-
showTicks:
|
|
630
|
-
leftMargin:
|
|
631
|
-
rightMargin:
|
|
632
|
-
topMargin:
|
|
620
|
+
showTicks: Vt,
|
|
621
|
+
leftMargin: Xt,
|
|
622
|
+
rightMargin: Yt,
|
|
623
|
+
topMargin: Lt,
|
|
633
624
|
bottomMargin: jt,
|
|
634
|
-
truncateBy:
|
|
625
|
+
truncateBy: et,
|
|
635
626
|
height: ct,
|
|
636
|
-
width:
|
|
627
|
+
width: y,
|
|
637
628
|
footNote: P,
|
|
638
|
-
colorDomain:
|
|
639
|
-
colorLegendTitle:
|
|
640
|
-
padding:
|
|
641
|
-
backgroundColor:
|
|
642
|
-
radius:
|
|
629
|
+
colorDomain: Et,
|
|
630
|
+
colorLegendTitle: O,
|
|
631
|
+
padding: G,
|
|
632
|
+
backgroundColor: Gt,
|
|
633
|
+
radius: it,
|
|
643
634
|
tooltip: F,
|
|
644
635
|
showLabels: $,
|
|
645
|
-
relativeHeight:
|
|
636
|
+
relativeHeight: A,
|
|
646
637
|
onSeriesMouseOver: qt,
|
|
647
638
|
graphID: dt,
|
|
648
|
-
suffix:
|
|
649
|
-
prefix:
|
|
650
|
-
maxValue:
|
|
639
|
+
suffix: vt,
|
|
640
|
+
prefix: Ht,
|
|
641
|
+
maxValue: V,
|
|
651
642
|
minValue: W,
|
|
652
643
|
onSeriesMouseClick: Ut,
|
|
653
644
|
graphDownload: wt,
|
|
654
|
-
dataDownload:
|
|
655
|
-
showValues:
|
|
656
|
-
sortParameter:
|
|
645
|
+
dataDownload: a,
|
|
646
|
+
showValues: n,
|
|
647
|
+
sortParameter: L,
|
|
657
648
|
arrowConnector: At,
|
|
658
649
|
connectorStrokeWidth: u,
|
|
659
650
|
language: d,
|
|
660
651
|
minHeight: I,
|
|
661
652
|
theme: j,
|
|
662
653
|
maxBarThickness: mt,
|
|
663
|
-
maxNumberOfBars:
|
|
654
|
+
maxNumberOfBars: g,
|
|
664
655
|
minBarThickness: Jt,
|
|
665
656
|
ariaLabel: It,
|
|
666
657
|
resetSelectionOnDoubleClick: kt,
|
|
667
658
|
detailsOnClick: ne,
|
|
668
659
|
axisTitle: Kt,
|
|
669
660
|
noOfTicks: N,
|
|
670
|
-
valueColor:
|
|
661
|
+
valueColor: H,
|
|
671
662
|
orientation: Nt,
|
|
672
|
-
styles:
|
|
663
|
+
styles: l,
|
|
673
664
|
classNames: o,
|
|
674
|
-
labelOrder:
|
|
675
|
-
refValues:
|
|
676
|
-
filterNA:
|
|
677
|
-
animate:
|
|
678
|
-
precision:
|
|
679
|
-
showColorScale:
|
|
665
|
+
labelOrder: nt,
|
|
666
|
+
refValues: at,
|
|
667
|
+
filterNA: Dt,
|
|
668
|
+
animate: ot,
|
|
669
|
+
precision: st,
|
|
670
|
+
showColorScale: Tt,
|
|
680
671
|
customLayers: ut,
|
|
681
672
|
highlightedDataPoints: xt,
|
|
682
673
|
dimmedOpacity: St,
|
|
683
674
|
timeline: pt,
|
|
684
|
-
sortData:
|
|
685
|
-
} = e,
|
|
686
|
-
let
|
|
687
|
-
t[0] !== ut ? (
|
|
688
|
-
const yt =
|
|
675
|
+
sortData: B
|
|
676
|
+
} = e, X = ie === void 0 ? Ze.light.categoricalColors.colors : ie, R = b === void 0 ? 0.25 : b, k = Vt === void 0 ? !0 : Vt, D = et === void 0 ? 999 : et, C = Gt === void 0 ? !0 : Gt, z = it === void 0 ? 3 : it, q = $ === void 0 ? !0 : $, U = vt === void 0 ? "" : vt, J = Ht === void 0 ? "" : Ht, v = wt === void 0 ? !1 : wt, w = a === void 0 ? !1 : a, K = n === void 0 ? !0 : n, Q = At === void 0 ? !1 : At, Z = u === void 0 ? 2 : u, M = d === void 0 ? "en" : d, T = I === void 0 ? 0 : I, S = j === void 0 ? "light" : j, _ = kt === void 0 ? !0 : kt, tt = N === void 0 ? 5 : N, ft = Nt === void 0 ? "vertical" : Nt, ht = Dt === void 0 ? !0 : Dt, Ct = ot === void 0 ? !1 : ot, Qt = st === void 0 ? 2 : st, Y = Tt === void 0 ? !0 : Tt;
|
|
677
|
+
let f;
|
|
678
|
+
t[0] !== ut ? (f = ut === void 0 ? [] : ut, t[0] = ut, t[1] = f) : f = t[1];
|
|
679
|
+
const yt = f;
|
|
689
680
|
let Zt;
|
|
690
681
|
t[2] !== xt ? (Zt = xt === void 0 ? [] : xt, t[2] = xt, t[3] = Zt) : Zt = t[3];
|
|
691
|
-
const ae = Zt, _t = St === void 0 ? 0.3 : St,
|
|
682
|
+
const ae = Zt, _t = St === void 0 ? 0.3 : St, x = pt === void 0 ? {
|
|
692
683
|
enabled: !1,
|
|
693
684
|
autoplay: !1,
|
|
694
685
|
showOnlyActiveDate: !0
|
|
695
|
-
} : pt, [Rt, te] =
|
|
696
|
-
let zt,
|
|
686
|
+
} : pt, [Rt, te] = bt(0), [Mt, ee] = bt(0), [lt, s] = bt(x.autoplay), m = _e(Ge(p, "date", !0).map((c) => Te(`${c}`, x.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Ei), [h, gt] = bt(x.autoplay ? 0 : m.length - 1), [le, r] = bt(void 0), rt = me(null), E = me(null);
|
|
687
|
+
let zt, re;
|
|
697
688
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (zt = () => {
|
|
698
689
|
const c = new ResizeObserver((Pt) => {
|
|
699
690
|
te(Pt[0].target.clientWidth || 620), ee(Pt[0].target.clientHeight || 480);
|
|
700
691
|
});
|
|
701
|
-
return
|
|
702
|
-
},
|
|
692
|
+
return rt.current && c.observe(rt.current), () => c.disconnect();
|
|
693
|
+
}, re = [], t[4] = zt, t[5] = re) : (zt = t[4], re = t[5]), ke(zt, re), ke(() => {
|
|
703
694
|
const c = setInterval(() => {
|
|
704
695
|
gt((Pt) => Pt < m.length - 1 ? Pt + 1 : 0);
|
|
705
|
-
}, (
|
|
706
|
-
return
|
|
707
|
-
}, [m,
|
|
708
|
-
const
|
|
696
|
+
}, (x.speed || 2) * 1e3);
|
|
697
|
+
return lt || clearInterval(c), () => clearInterval(c);
|
|
698
|
+
}, [m, lt, x.speed]);
|
|
699
|
+
const ve = Se(m, h, x.showOnlyActiveDate, x.dateFormat || "yyyy"), De = ft === "horizontal" ? xi : ei, ue = Re, xe = o?.graphContainer, pe = l?.graphContainer;
|
|
709
700
|
let oe;
|
|
710
|
-
t[6] !== o?.description || t[7] !== o?.title || t[8] !==
|
|
711
|
-
title:
|
|
712
|
-
description:
|
|
701
|
+
t[6] !== o?.description || t[7] !== o?.title || t[8] !== p || t[9] !== w || t[10] !== Bt || t[11] !== v || t[12] !== Ft || t[13] !== l?.description || t[14] !== l?.title || t[15] !== y ? (oe = Ft || Bt || v || w ? /* @__PURE__ */ i.jsx(ze, { styles: {
|
|
702
|
+
title: l?.title,
|
|
703
|
+
description: l?.description
|
|
713
704
|
}, classNames: {
|
|
714
705
|
title: o?.title,
|
|
715
706
|
description: o?.description
|
|
716
|
-
}, graphTitle: Ft, graphDescription: Bt, width:
|
|
717
|
-
const fe =
|
|
707
|
+
}, graphTitle: Ft, graphDescription: Bt, width: y, graphDownload: v ? E : void 0, dataDownload: w ? p.map(Yi).filter(Xi).length > 0 ? p.map(Bi).filter(Wi) : p.filter(Fi) : null }) : null, t[6] = o?.description, t[7] = o?.title, t[8] = p, t[9] = w, t[10] = Bt, t[11] = v, t[12] = Ft, t[13] = l?.description, t[14] = l?.title, t[15] = y, t[16] = oe) : oe = t[16];
|
|
708
|
+
const fe = x.enabled && m.length > 0 && ve ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
718
709
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
719
|
-
s(!
|
|
720
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
721
|
-
/* @__PURE__ */ i.jsx(
|
|
710
|
+
s(!lt);
|
|
711
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": lt ? "Click to pause animation" : "Click to play animation", children: lt ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
|
|
712
|
+
/* @__PURE__ */ i.jsx(Pe, { min: m[0], max: m[m.length - 1], marks: ve, step: null, defaultValue: m[m.length - 1], value: m[h], onChangeComplete: (c) => {
|
|
722
713
|
gt(m.indexOf(c));
|
|
723
714
|
}, onChange: (c) => {
|
|
724
715
|
gt(m.indexOf(c));
|
|
725
716
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
726
|
-
] }) : null, he =
|
|
727
|
-
|
|
728
|
-
/* @__PURE__ */ i.jsx(
|
|
717
|
+
] }) : null, he = p.length === 0 ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
718
|
+
Y ? /* @__PURE__ */ i.jsx(Ke, { width: y, colorDomain: Et, colors: X, colorLegendTitle: O, setSelectedColor: r, showNAColor: !1, className: o?.colorLegend }) : null,
|
|
719
|
+
/* @__PURE__ */ i.jsx(He, { ref: rt, children: Rt && Mt ? /* @__PURE__ */ i.jsx(De, { data: L !== void 0 ? L === "diff" ? we(ye(p, x.dateFormat || "yyyy").filter((c) => x.enabled ? c.date === Ae(new Date(m[h]), x.dateFormat || "yyyy") : c).filter((c) => ht ? !c.x.every(Pi) : c), Si, [B || "asc"]).filter((c, Pt) => g ? Pt < g : !0) : we(ye(p, x.dateFormat || "yyyy").filter((c) => x.enabled ? c.date === Ae(new Date(m[h]), x.dateFormat || "yyyy") : c).filter((c) => ht ? !c.x.every(Ti) : c), (c) => $t(c.x[L]) ? -1 / 0 : c.x[L], [B || "asc"]).filter((c, Pt) => g ? Pt < g : !0) : ye(p, x.dateFormat || "yyyy").filter((c) => ht ? !c.x.every(Di) : c).filter((c, Pt) => g ? Pt < g : !0), dotColors: X, width: Rt, height: Mt, radius: z, barPadding: R, showTicks: k, leftMargin: Xt, rightMargin: Yt, topMargin: Lt, bottomMargin: jt, truncateBy: D, showLabels: q, showValues: K, tooltip: F, suffix: U, prefix: J, onSeriesMouseOver: qt, maxValue: $t(V) ? Math.max(...p.map(Ii)) < 0 ? 0 : Math.max(...p.map(Li)) : V, minValue: $t(W) ? Math.min(...p.map($i)) > 0 ? 0 : Math.min(...p.map(Mi)) : W, onSeriesMouseClick: Ut, selectedColor: le, arrowConnector: Q, connectorStrokeWidth: Z, maxBarThickness: mt, minBarThickness: Jt, resetSelectionOnDoubleClick: _, detailsOnClick: ne, axisTitle: Kt, noOfTicks: tt, valueColor: H, styles: l, classNames: o, labelOrder: nt, refValues: at, animate: Ct === !0 ? {
|
|
729
720
|
duration: 0.5,
|
|
730
721
|
once: !0,
|
|
731
722
|
amount: 0.5
|
|
@@ -733,28 +724,28 @@ function Mn(e) {
|
|
|
733
724
|
duration: 0,
|
|
734
725
|
once: !0,
|
|
735
726
|
amount: 0
|
|
736
|
-
}, precision: Qt, customLayers: yt, highlightedDataPoints: ae, dimmedOpacity: _t, rtl:
|
|
727
|
+
}, precision: Qt, customLayers: yt, highlightedDataPoints: ae, dimmedOpacity: _t, rtl: M === "ar" || M === "he" }) : null })
|
|
737
728
|
] });
|
|
738
729
|
let se;
|
|
739
|
-
t[17] !== o?.footnote || t[18] !== o?.source || t[19] !== P || t[20] !== Wt || t[21] !==
|
|
740
|
-
footnote:
|
|
741
|
-
source:
|
|
730
|
+
t[17] !== o?.footnote || t[18] !== o?.source || t[19] !== P || t[20] !== Wt || t[21] !== l?.footnote || t[22] !== l?.source || t[23] !== y ? (se = Wt || P ? /* @__PURE__ */ i.jsx(Je, { styles: {
|
|
731
|
+
footnote: l?.footnote,
|
|
732
|
+
source: l?.source
|
|
742
733
|
}, classNames: {
|
|
743
734
|
footnote: o?.footnote,
|
|
744
735
|
source: o?.source
|
|
745
|
-
}, sources: Wt, footNote: P, width:
|
|
736
|
+
}, sources: Wt, footNote: P, width: y }) : null, t[17] = o?.footnote, t[18] = o?.source, t[19] = P, t[20] = Wt, t[21] = l?.footnote, t[22] = l?.source, t[23] = y, t[24] = se) : se = t[24];
|
|
746
737
|
let ce;
|
|
747
|
-
return t[25] !== ue || t[26] !== It || t[27] !==
|
|
738
|
+
return t[25] !== ue || t[26] !== It || t[27] !== C || t[28] !== dt || t[29] !== ct || t[30] !== M || t[31] !== T || t[32] !== G || t[33] !== A || t[34] !== xe || t[35] !== pe || t[36] !== oe || t[37] !== fe || t[38] !== he || t[39] !== se || t[40] !== S || t[41] !== y ? (ce = /* @__PURE__ */ i.jsxs(ue, { className: xe, style: pe, id: dt, ref: E, "aria-label": It, backgroundColor: C, theme: S, language: M, minHeight: T, width: y, height: ct, relativeHeight: A, padding: G, children: [
|
|
748
739
|
oe,
|
|
749
740
|
fe,
|
|
750
741
|
he,
|
|
751
742
|
se
|
|
752
|
-
] }), t[25] = ue, t[26] = It, t[27] =
|
|
743
|
+
] }), t[25] = ue, t[26] = It, t[27] = C, t[28] = dt, t[29] = ct, t[30] = M, t[31] = T, t[32] = G, t[33] = A, t[34] = xe, t[35] = pe, t[36] = oe, t[37] = fe, t[38] = he, t[39] = se, t[40] = S, t[41] = y, t[42] = ce) : ce = t[42], ce;
|
|
753
744
|
}
|
|
754
|
-
function
|
|
755
|
-
return Math.min(...e.x.filter(
|
|
745
|
+
function Mi(e) {
|
|
746
|
+
return Math.min(...e.x.filter(Oi));
|
|
756
747
|
}
|
|
757
|
-
function
|
|
748
|
+
function Oi(e) {
|
|
758
749
|
return e !== null;
|
|
759
750
|
}
|
|
760
751
|
function $i(e) {
|
|
@@ -763,37 +754,37 @@ function $i(e) {
|
|
|
763
754
|
function Vi(e) {
|
|
764
755
|
return e !== null;
|
|
765
756
|
}
|
|
757
|
+
function Li(e) {
|
|
758
|
+
return Math.max(...e.x.filter(ji));
|
|
759
|
+
}
|
|
766
760
|
function ji(e) {
|
|
767
|
-
return
|
|
761
|
+
return e !== null;
|
|
768
762
|
}
|
|
769
763
|
function Ii(e) {
|
|
770
|
-
return e
|
|
764
|
+
return Math.max(...e.x.filter(Ni));
|
|
771
765
|
}
|
|
772
766
|
function Ni(e) {
|
|
773
|
-
return Math.max(...e.x.filter(Ti));
|
|
774
|
-
}
|
|
775
|
-
function Ti(e) {
|
|
776
767
|
return e !== null;
|
|
777
768
|
}
|
|
778
769
|
function Di(e) {
|
|
779
770
|
return e == null;
|
|
780
771
|
}
|
|
781
|
-
function
|
|
772
|
+
function Ti(e) {
|
|
782
773
|
return e == null;
|
|
783
774
|
}
|
|
775
|
+
function Si(e) {
|
|
776
|
+
return $t(e.x[e.x.length - 1]) || $t(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
|
|
777
|
+
}
|
|
784
778
|
function Pi(e) {
|
|
785
|
-
return
|
|
779
|
+
return e == null;
|
|
786
780
|
}
|
|
787
781
|
function Fi(e) {
|
|
788
|
-
return e
|
|
782
|
+
return e !== void 0;
|
|
789
783
|
}
|
|
790
784
|
function Wi(e) {
|
|
791
785
|
return e !== void 0;
|
|
792
786
|
}
|
|
793
787
|
function Bi(e) {
|
|
794
|
-
return e !== void 0;
|
|
795
|
-
}
|
|
796
|
-
function Hi(e) {
|
|
797
788
|
return e.data;
|
|
798
789
|
}
|
|
799
790
|
function Xi(e) {
|
|
@@ -803,9 +794,9 @@ function Yi(e) {
|
|
|
803
794
|
return e.data;
|
|
804
795
|
}
|
|
805
796
|
function Ei(e, t) {
|
|
806
|
-
return
|
|
797
|
+
return ti(e, t);
|
|
807
798
|
}
|
|
808
799
|
export {
|
|
809
|
-
|
|
800
|
+
kn as DumbbellChart
|
|
810
801
|
};
|
|
811
802
|
//# sourceMappingURL=DumbbellChart.js.map
|