@undp/data-viz 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +957 -957
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.js +45 -47
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +76 -56
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +157 -157
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +185 -185
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -4
- package/dist/CirclePackingGraph.js.map +1 -1
- package/dist/Data/barChart.json +70 -0
- package/dist/Data/basic.csv +20 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +224 -223
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +156 -156
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +326 -325
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.cjs.map +1 -1
- package/dist/GeoHubCompareMaps.js +183 -183
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
- package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
- package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
- package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +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 +133 -132
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.js +52 -50
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
- package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +149 -148
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +182 -181
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +123 -122
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.js +83 -79
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
- package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.js +44 -46
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.js +134 -134
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
- package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
- package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
- package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
- package/dist/index-C6LorfZ-.cjs +2 -0
- package/dist/index-C6LorfZ-.cjs.map +1 -0
- package/dist/index-Ceppbd8C.js +342 -0
- package/dist/index-Ceppbd8C.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-DoY3Ga3W.cjs +0 -2
- package/dist/index-DoY3Ga3W.cjs.map +0 -1
- package/dist/index-leTnKT2q.js +0 -329
- package/dist/index-leTnKT2q.js.map +0 -1
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { c as He, j as n, m as Pe } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as ze, useState as ee, useEffect as Re } from "react";
|
|
3
|
+
import { o as Be } from "./index-BZQYSqar.js";
|
|
4
|
+
import { l as Te } from "./Modal-DGcuAHyK.js";
|
|
5
|
+
import { w as We } from "./Spinner-D7rnnwnA.js";
|
|
6
|
+
import { T as Ge } from "./Tooltip-CwWUegPB.js";
|
|
7
|
+
import { n as Ae } from "./numberFormattingFunction-14YCbkN2.js";
|
|
8
|
+
import { g as Ee } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
9
|
+
import { Colors as $e } from "./Colors.js";
|
|
10
|
+
import { c as Ve } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
|
+
import { s as Fe } from "./string2HTML-DhG75NqA.js";
|
|
12
|
+
import { s as Xe } from "./pow-DE4c7dbW.js";
|
|
13
|
+
import { f as Ye, b as Ie, a as qe, c as Ue, d as Je } from "./y-BqfogMAB.js";
|
|
14
|
+
import { GraphFooter as Ke } from "./GraphFooter.js";
|
|
15
|
+
import { GraphHeader as Qe } from "./GraphHeader.js";
|
|
16
|
+
import { ColorLegendWithMouseOver as Ze } from "./ColorLegendWithMouseOver.js";
|
|
17
|
+
import { E as _e } from "./EmptyState-BZo1BbAn.js";
|
|
18
|
+
import { u as Le } from "./uniqBy-BHy4I8PK.js";
|
|
19
|
+
import { a as et, G as tt } from "./GraphContainer-CRqzdKu2.js";
|
|
20
|
+
function ke(t, e) {
|
|
21
|
+
let o, r;
|
|
22
|
+
if (e === void 0)
|
|
23
|
+
for (const s of t)
|
|
24
|
+
s != null && (o === void 0 ? s >= s && (o = r = s) : (o > s && (o = s), r < s && (r = s)));
|
|
25
|
+
else {
|
|
26
|
+
let s = -1;
|
|
27
|
+
for (let d of t)
|
|
28
|
+
(d = e(d, ++s, t)) != null && (o === void 0 ? d >= d && (o = r = d) : (o > d && (o = d), r < d && (r = d)));
|
|
29
|
+
}
|
|
30
|
+
return [o, r];
|
|
31
|
+
}
|
|
32
|
+
const ot = (t) => {
|
|
33
|
+
const e = He.c(104), {
|
|
34
|
+
data: o,
|
|
35
|
+
colors: r,
|
|
36
|
+
leftMargin: s,
|
|
37
|
+
width: d,
|
|
38
|
+
height: w,
|
|
39
|
+
colorDomain: k,
|
|
40
|
+
selectedColor: $,
|
|
41
|
+
rightMargin: x,
|
|
42
|
+
topMargin: te,
|
|
43
|
+
bottomMargin: xe,
|
|
44
|
+
showLabels: m,
|
|
45
|
+
tooltip: G,
|
|
46
|
+
onSeriesMouseOver: z,
|
|
47
|
+
showValues: V,
|
|
48
|
+
suffix: A,
|
|
49
|
+
prefix: oe,
|
|
50
|
+
highlightedDataPoints: ve,
|
|
51
|
+
onSeriesMouseClick: ie,
|
|
52
|
+
maxRadiusValue: H,
|
|
53
|
+
radius: a,
|
|
54
|
+
resetSelectionOnDoubleClick: be,
|
|
55
|
+
detailsOnClick: M,
|
|
56
|
+
styles: N,
|
|
57
|
+
classNames: C,
|
|
58
|
+
dimmedOpacity: F,
|
|
59
|
+
precision: R
|
|
60
|
+
} = t, we = ze(null), [ye, Me] = ee(void 0), [D, X] = ee(void 0), [S, Se] = ee(void 0), [ne, le] = ee(void 0), [re, Ce] = ee(void 0), [se, p] = ee(null);
|
|
61
|
+
let c;
|
|
62
|
+
e[0] !== xe || e[1] !== s || e[2] !== x || e[3] !== te ? (c = {
|
|
63
|
+
top: te,
|
|
64
|
+
bottom: xe,
|
|
65
|
+
left: s,
|
|
66
|
+
right: x
|
|
67
|
+
}, e[0] = xe, e[1] = s, e[2] = x, e[3] = te, e[4] = c) : c = e[4];
|
|
68
|
+
const Y = c, I = d - Y.left - Y.right, P = w - Y.top - Y.bottom;
|
|
69
|
+
let ae;
|
|
70
|
+
e[5] !== o ? (ae = o.filter(it).length === 0 ? o : Be(o.filter(nt), "radius", "asc"), e[5] = o, e[6] = ae) : ae = e[6];
|
|
71
|
+
const B = ae;
|
|
72
|
+
let ce;
|
|
73
|
+
e[7] !== o || e[8] !== H || e[9] !== a ? (ce = o.filter(lt).length !== o.length ? Xe().domain([0, Ve(H) ? Math.max(...o.map(rt).filter(st)) : H]).range([0.25, a]).nice() : void 0, e[7] = o, e[8] = H, e[9] = a, e[10] = ce) : ce = e[10];
|
|
74
|
+
const l = ce;
|
|
75
|
+
let fe;
|
|
76
|
+
e[11] !== B || e[12] !== P || e[13] !== I || e[14] !== a || e[15] !== l ? (fe = () => {
|
|
77
|
+
(() => {
|
|
78
|
+
const f = B.map(at);
|
|
79
|
+
Ye(f).force("y", Ie((v) => P / 2).strength(1)).force("x", qe((v) => I / 2).strength(1)).force("collide", Ue((v) => l ? l(v.size || 0) + 1 : a + 1)).force("charge", Je().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
80
|
+
p(f);
|
|
81
|
+
}).on("end", () => {
|
|
82
|
+
p(f);
|
|
83
|
+
const v = ke(f, (u) => u.x - (l ? l(u.size || 0) + 1 : a + 1))[0] || 0, g = ke(f, (u) => u.y - (l ? l(u.size || 0) + 1 : a + 1))[0] || 0, E = ke(f, (u) => u.x + (l ? l(u.size || 0) + 1 : a + 1))[1] || 0, O = ke(f, (u) => u.y + (l ? l(u.size || 0) + 1 : a + 1))[1] || 0;
|
|
84
|
+
Se([v, g, v < 0 ? E - v : E, g < 0 ? O - g : O]);
|
|
85
|
+
});
|
|
86
|
+
})();
|
|
87
|
+
}, e[11] = B, e[12] = P, e[13] = I, e[14] = a, e[15] = l, e[16] = fe) : fe = e[16];
|
|
88
|
+
let ue;
|
|
89
|
+
e[17] !== o || e[18] !== B || e[19] !== P || e[20] !== I || e[21] !== H || e[22] !== a || e[23] !== l ? (ue = [o, a, P, I, H, B, l], e[17] = o, e[18] = B, e[19] = P, e[20] = I, e[21] = H, e[22] = a, e[23] = l, e[24] = ue) : ue = e[24], Re(fe, ue);
|
|
90
|
+
let de;
|
|
91
|
+
e[25] !== z ? (de = (i, f) => {
|
|
92
|
+
Me(f), Ce(i.clientY), le(i.clientX), z?.(f);
|
|
93
|
+
}, e[25] = z, e[26] = de) : de = e[26];
|
|
94
|
+
const q = de;
|
|
95
|
+
let U;
|
|
96
|
+
e[27] === Symbol.for("react.memo_cache_sentinel") ? (U = (i, f) => {
|
|
97
|
+
Me(f), Ce(i.clientY), le(i.clientX);
|
|
98
|
+
}, e[27] = U) : U = e[27];
|
|
99
|
+
const De = U;
|
|
100
|
+
let J;
|
|
101
|
+
e[28] !== M || e[29] !== D || e[30] !== ie || e[31] !== be ? (J = (i) => {
|
|
102
|
+
(ie || M) && (D === i.label && be ? (X(void 0), ie?.(void 0)) : (X(i.label), ie?.(i)));
|
|
103
|
+
}, e[28] = M, e[29] = D, e[30] = ie, e[31] = be, e[32] = J) : J = e[32];
|
|
104
|
+
const T = J;
|
|
105
|
+
let he;
|
|
106
|
+
e[33] !== z ? (he = () => {
|
|
107
|
+
Me(void 0), le(void 0), Ce(void 0), z?.(void 0);
|
|
108
|
+
}, e[33] = z, e[34] = he) : he = e[34];
|
|
109
|
+
const K = he;
|
|
110
|
+
let j;
|
|
111
|
+
e[35] !== k || e[36] !== r || e[37] !== o ? (j = (i) => o.filter(ct).length === 0 ? r[0] : i.color ? r[k.indexOf(i.color)] : $e.gray, e[35] = k, e[36] = r, e[37] = o, e[38] = j) : j = e[38];
|
|
112
|
+
const Q = j;
|
|
113
|
+
let me;
|
|
114
|
+
e[39] !== k || e[40] !== r || e[41] !== F || e[42] !== ve || e[43] !== $ ? (me = (i) => $ ? i.color && r[k.indexOf(i.color)] === $ ? 1 : F : ve.length !== 0 ? ve.indexOf(i.label) !== -1 ? 0.85 : F : 0.85, e[39] = k, e[40] = r, e[41] = F, e[42] = ve, e[43] = $, e[44] = me) : me = e[44];
|
|
115
|
+
const Z = me;
|
|
116
|
+
if (!se) {
|
|
117
|
+
const i = `${d}px`, f = `${w}px`;
|
|
118
|
+
let y;
|
|
119
|
+
e[45] !== i || e[46] !== f ? (y = {
|
|
120
|
+
width: i,
|
|
121
|
+
height: f
|
|
122
|
+
}, e[45] = i, e[46] = f, e[47] = y) : y = e[47];
|
|
123
|
+
let v;
|
|
124
|
+
e[48] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ n.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ n.jsx(We, {}) }), e[48] = v) : v = e[48];
|
|
125
|
+
let g;
|
|
126
|
+
return e[49] !== y ? (g = /* @__PURE__ */ n.jsx("div", { style: y, children: v }), e[49] = y, e[50] = g) : g = e[50], g;
|
|
127
|
+
}
|
|
128
|
+
if (S) {
|
|
129
|
+
const i = `${d}px`, f = `${w}px`, y = `${S[0] > 0 ? 0 : S[0]} ${S[1] > 0 ? 0 : S[1]} ${d < S[2] ? S[2] : d} ${w < S[3] ? S[3] : w}`, v = `translate(${Y.left},${Y.top})`;
|
|
130
|
+
let g;
|
|
131
|
+
if (e[51] !== C?.graphObjectValues || e[52] !== se || e[53] !== Q || e[54] !== Z || e[55] !== T || e[56] !== q || e[57] !== K || e[58] !== R || e[59] !== oe || e[60] !== a || e[61] !== l || e[62] !== m || e[63] !== V || e[64] !== N?.graphObjectValues || e[65] !== A) {
|
|
132
|
+
let pe;
|
|
133
|
+
e[67] !== C?.graphObjectValues || e[68] !== Q || e[69] !== Z || e[70] !== T || e[71] !== q || e[72] !== K || e[73] !== R || e[74] !== oe || e[75] !== a || e[76] !== l || e[77] !== m || e[78] !== V || e[79] !== N?.graphObjectValues || e[80] !== A ? (pe = (b) => {
|
|
134
|
+
const W = Q(b), ge = Z(b), h = l ? l(b.size || 0) : a, je = h > 20 && (m || V);
|
|
135
|
+
return /* @__PURE__ */ n.jsxs("g", { className: "undp-viz-g-with-hover", opacity: ge, transform: `translate(${b.x},${b.y})`, onMouseEnter: (Oe) => q(Oe, b), onMouseMove: (Oe) => De(Oe, b), onClick: () => T(b), onMouseLeave: K, children: [
|
|
136
|
+
/* @__PURE__ */ n.jsx("circle", { cx: 0, cy: 0, r: h, fill: W }),
|
|
137
|
+
(je || V) && b.size !== void 0 && b.size !== null && h >= 15 && /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("foreignObject", { y: 0 - h, x: 0 - h, width: 2 * h, height: 2 * h, children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col justify-center items-center h-full py-0 px-3", style: {
|
|
138
|
+
display: "flex",
|
|
139
|
+
flexDirection: "column",
|
|
140
|
+
justifyContent: "center",
|
|
141
|
+
alignItems: "center",
|
|
142
|
+
height: "100%",
|
|
143
|
+
padding: "0 0.75rem"
|
|
144
|
+
}, children: [
|
|
145
|
+
m && /* @__PURE__ */ n.jsx("p", { className: Pe("text-center leading-[1.25] overflow-hidden m-0 circle-packing-label", C?.graphObjectValues), style: {
|
|
146
|
+
fontSize: `${Math.min(Math.max(Math.round(h / 4), 12), Math.max(Math.round(h * 12 / `${b.label}`.length), 12), 14)}px`,
|
|
147
|
+
textAlign: "center",
|
|
148
|
+
margin: 0,
|
|
149
|
+
lineHeight: 1.25,
|
|
150
|
+
WebkitLineClamp: h * 2 < 60 ? 1 : h * 2 < 75 ? 2 : h * 2 < 100 ? 3 : void 0,
|
|
151
|
+
display: "-webkit-box",
|
|
152
|
+
WebkitBoxOrient: "vertical",
|
|
153
|
+
color: Ee(W),
|
|
154
|
+
hyphens: "auto",
|
|
155
|
+
...N?.graphObjectValues || {}
|
|
156
|
+
}, children: b.label }),
|
|
157
|
+
V && /* @__PURE__ */ n.jsx("p", { className: "text-center font-bold leading-[1.25] w-full m-0 circle-packing-value", style: {
|
|
158
|
+
fontSize: `${Math.min(Math.max(Math.round(h / 4), 14), 14)}px`,
|
|
159
|
+
textAlign: "center",
|
|
160
|
+
margin: 0,
|
|
161
|
+
lineHeight: 1.25,
|
|
162
|
+
width: "100%",
|
|
163
|
+
fontWeight: "bold",
|
|
164
|
+
color: Ee(W)
|
|
165
|
+
}, children: Ae(b.size, "NA", R, oe, A) })
|
|
166
|
+
] }) }) })
|
|
167
|
+
] }, b.label);
|
|
168
|
+
}, e[67] = C?.graphObjectValues, e[68] = Q, e[69] = Z, e[70] = T, e[71] = q, e[72] = K, e[73] = R, e[74] = oe, e[75] = a, e[76] = l, e[77] = m, e[78] = V, e[79] = N?.graphObjectValues, e[80] = A, e[81] = pe) : pe = e[81], g = se.map(pe), e[51] = C?.graphObjectValues, e[52] = se, e[53] = Q, e[54] = Z, e[55] = T, e[56] = q, e[57] = K, e[58] = R, e[59] = oe, e[60] = a, e[61] = l, e[62] = m, e[63] = V, e[64] = N?.graphObjectValues, e[65] = A, e[66] = g;
|
|
169
|
+
} else
|
|
170
|
+
g = e[66];
|
|
171
|
+
let E;
|
|
172
|
+
e[82] !== v || e[83] !== g ? (E = /* @__PURE__ */ n.jsx("g", { transform: v, children: g }), e[82] = v, e[83] = g, e[84] = E) : E = e[84];
|
|
173
|
+
let O;
|
|
174
|
+
e[85] !== i || e[86] !== f || e[87] !== y || e[88] !== E ? (O = /* @__PURE__ */ n.jsx("svg", { width: i, height: f, viewBox: y, direction: "ltr", ref: we, children: E }), e[85] = i, e[86] = f, e[87] = y, e[88] = E, e[89] = O) : O = e[89];
|
|
175
|
+
let u;
|
|
176
|
+
e[90] !== C?.tooltip || e[91] !== ne || e[92] !== re || e[93] !== ye || e[94] !== N?.tooltip || e[95] !== G ? (u = ye && G && ne && re && /* @__PURE__ */ n.jsx(Ge, { data: ye, body: G, xPos: ne, yPos: re, backgroundStyle: N?.tooltip, className: C?.tooltip }), e[90] = C?.tooltip, e[91] = ne, e[92] = re, e[93] = ye, e[94] = N?.tooltip, e[95] = G, e[96] = u) : u = e[96];
|
|
177
|
+
let L;
|
|
178
|
+
e[97] !== M || e[98] !== D ? (L = M && D !== void 0 ? /* @__PURE__ */ n.jsx(Te, { open: D !== void 0, onClose: () => {
|
|
179
|
+
X(void 0);
|
|
180
|
+
}, children: /* @__PURE__ */ n.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof M == "string" ? {
|
|
181
|
+
__html: Fe(M, D)
|
|
182
|
+
} : void 0, children: typeof M == "function" ? M(D) : null }) }) : null, e[97] = M, e[98] = D, e[99] = L) : L = e[99];
|
|
183
|
+
let _;
|
|
184
|
+
return e[100] !== O || e[101] !== u || e[102] !== L ? (_ = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
185
|
+
O,
|
|
186
|
+
u,
|
|
187
|
+
L
|
|
188
|
+
] }), e[100] = O, e[101] = u, e[102] = L, e[103] = _) : _ = e[103], _;
|
|
189
|
+
}
|
|
190
|
+
return null;
|
|
191
|
+
};
|
|
192
|
+
function it(t) {
|
|
193
|
+
return !Ve(t.size);
|
|
194
|
+
}
|
|
195
|
+
function nt(t) {
|
|
196
|
+
return !Ve(t.size);
|
|
197
|
+
}
|
|
198
|
+
function lt(t) {
|
|
199
|
+
return t.size === void 0 || t.size === null;
|
|
200
|
+
}
|
|
201
|
+
function rt(t) {
|
|
202
|
+
return t.size;
|
|
203
|
+
}
|
|
204
|
+
function st(t) {
|
|
205
|
+
return t != null;
|
|
206
|
+
}
|
|
207
|
+
function at(t) {
|
|
208
|
+
return {
|
|
209
|
+
...t,
|
|
210
|
+
...t.data && {
|
|
211
|
+
data: {
|
|
212
|
+
...t.data
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
function ct(t) {
|
|
218
|
+
return t.color;
|
|
219
|
+
}
|
|
220
|
+
function ft(t, e, o) {
|
|
221
|
+
const r = t.filter((x) => x != null), s = Math.min(e, o) / 2, d = r.reduce((x, te) => x + te, 0), w = Math.max(...r), k = (x) => x <= 5 ? 0.9 : x <= 10 ? 0.85 : x <= 20 ? 0.8 : 0.7, $ = (x) => x <= 200 ? 0.85 : x <= 250 ? 0.95 : 1;
|
|
222
|
+
return s * Math.sqrt(w / d) * $(s) * k(r.length);
|
|
223
|
+
}
|
|
224
|
+
function Wt(t) {
|
|
225
|
+
const e = He.c(71), {
|
|
226
|
+
data: o,
|
|
227
|
+
graphTitle: r,
|
|
228
|
+
colors: s,
|
|
229
|
+
suffix: d,
|
|
230
|
+
sources: w,
|
|
231
|
+
prefix: k,
|
|
232
|
+
graphDescription: $,
|
|
233
|
+
leftMargin: x,
|
|
234
|
+
rightMargin: te,
|
|
235
|
+
height: xe,
|
|
236
|
+
width: m,
|
|
237
|
+
footNote: G,
|
|
238
|
+
colorDomain: z,
|
|
239
|
+
colorLegendTitle: V,
|
|
240
|
+
padding: A,
|
|
241
|
+
backgroundColor: oe,
|
|
242
|
+
topMargin: ve,
|
|
243
|
+
bottomMargin: ie,
|
|
244
|
+
showLabels: H,
|
|
245
|
+
relativeHeight: a,
|
|
246
|
+
tooltip: be,
|
|
247
|
+
onSeriesMouseOver: M,
|
|
248
|
+
showColorScale: N,
|
|
249
|
+
showValues: C,
|
|
250
|
+
graphID: F,
|
|
251
|
+
highlightedDataPoints: R,
|
|
252
|
+
onSeriesMouseClick: we,
|
|
253
|
+
graphDownload: ye,
|
|
254
|
+
dataDownload: Me,
|
|
255
|
+
language: D,
|
|
256
|
+
showNAColor: X,
|
|
257
|
+
minHeight: S,
|
|
258
|
+
theme: Se,
|
|
259
|
+
ariaLabel: ne,
|
|
260
|
+
radius: le,
|
|
261
|
+
maxRadiusValue: re,
|
|
262
|
+
resetSelectionOnDoubleClick: Ce,
|
|
263
|
+
detailsOnClick: se,
|
|
264
|
+
styles: p,
|
|
265
|
+
classNames: c,
|
|
266
|
+
dimmedOpacity: Y,
|
|
267
|
+
precision: I
|
|
268
|
+
} = t, P = d === void 0 ? "" : d, ae = k === void 0 ? "" : k, B = x === void 0 ? 0 : x, ce = te === void 0 ? 0 : te, l = oe === void 0 ? !1 : oe, fe = ve === void 0 ? 0 : ve, ue = ie === void 0 ? 0 : ie, de = H === void 0 ? !0 : H, q = N === void 0 ? !0 : N;
|
|
269
|
+
let U;
|
|
270
|
+
e[0] !== R ? (U = R === void 0 ? [] : R, e[0] = R, e[1] = U) : U = e[1];
|
|
271
|
+
const De = U, J = ye === void 0 ? !1 : ye, T = Me === void 0 ? !1 : Me, he = D === void 0 ? "en" : D, K = S === void 0 ? 0 : S, j = Se === void 0 ? "light" : Se, Q = Ce === void 0 ? !0 : Ce, me = Y === void 0 ? 0.3 : Y, Z = I === void 0 ? 2 : I, [i, f] = ee(0), [y, v] = ee(0), [g, E] = ee(void 0), O = ze(null), u = ze(null);
|
|
272
|
+
let L, _;
|
|
273
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (L = () => {
|
|
274
|
+
const Oe = new ResizeObserver((Ne) => {
|
|
275
|
+
f(Ne[0].target.clientWidth || 620), v(Ne[0].target.clientHeight || 480);
|
|
276
|
+
});
|
|
277
|
+
return O.current && Oe.observe(O.current), () => Oe.disconnect();
|
|
278
|
+
}, _ = [], e[2] = L, e[3] = _) : (L = e[2], _ = e[3]), Re(L, _);
|
|
279
|
+
const pe = c?.graphContainer, b = p?.graphContainer;
|
|
280
|
+
let W;
|
|
281
|
+
e[4] !== c?.description || e[5] !== c?.title || e[6] !== o || e[7] !== T || e[8] !== $ || e[9] !== J || e[10] !== r || e[11] !== p?.description || e[12] !== p?.title || e[13] !== m ? (W = r || $ || J || T ? /* @__PURE__ */ n.jsx(Qe, { styles: {
|
|
282
|
+
title: p?.title,
|
|
283
|
+
description: p?.description
|
|
284
|
+
}, classNames: {
|
|
285
|
+
title: c?.title,
|
|
286
|
+
description: c?.description
|
|
287
|
+
}, graphTitle: r, graphDescription: $, width: m, graphDownload: J ? u : void 0, dataDownload: T ? o.map(yt).filter(bt).length > 0 ? o.map(vt).filter(xt) : o.filter(gt) : null }) : null, e[4] = c?.description, e[5] = c?.title, e[6] = o, e[7] = T, e[8] = $, e[9] = J, e[10] = r, e[11] = p?.description, e[12] = p?.title, e[13] = m, e[14] = W) : W = e[14];
|
|
288
|
+
let ge;
|
|
289
|
+
e[15] !== ue || e[16] !== c || e[17] !== z || e[18] !== V || e[19] !== s || e[20] !== o || e[21] !== se || e[22] !== me || e[23] !== De || e[24] !== B || e[25] !== re || e[26] !== we || e[27] !== M || e[28] !== Z || e[29] !== ae || e[30] !== le || e[31] !== Q || e[32] !== ce || e[33] !== g || e[34] !== q || e[35] !== de || e[36] !== X || e[37] !== C || e[38] !== p || e[39] !== P || e[40] !== y || e[41] !== i || e[42] !== j || e[43] !== be || e[44] !== fe || e[45] !== m ? (ge = o.length === 0 ? /* @__PURE__ */ n.jsx(_e, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
290
|
+
q && o.filter(pt).length !== 0 ? /* @__PURE__ */ n.jsx(Ze, { width: m, colorLegendTitle: V, colors: s || $e[j].categoricalColors.colors, colorDomain: z || Le(o, "color", !0), setSelectedColor: E, showNAColor: X ?? !0, isCenter: !0, className: c?.colorLegend }) : null,
|
|
291
|
+
/* @__PURE__ */ n.jsx(et, { ref: O, children: i && y ? /* @__PURE__ */ n.jsx(ot, { data: o, colors: o.filter(mt).length === 0 ? s ? [s] : [$e.primaryColors["blue-600"]] : s || $e[j].categoricalColors.colors, colorDomain: o.filter(ht).length === 0 ? [] : z || Le(o, "color", !0), width: i, height: y, leftMargin: B, rightMargin: ce, topMargin: fe, bottomMargin: ue, showLabels: de, showValues: C !== !1 ? o.filter(dt).length !== 0 : C, selectedColor: g, suffix: P, prefix: ae, tooltip: be, onSeriesMouseOver: M, highlightedDataPoints: De, onSeriesMouseClick: we, theme: j, radius: le || ft(o.map(ut), i, y), maxRadiusValue: re, resetSelectionOnDoubleClick: Q, detailsOnClick: se, styles: p, classNames: c, dimmedOpacity: me, precision: Z }) : null })
|
|
292
|
+
] }), e[15] = ue, e[16] = c, e[17] = z, e[18] = V, e[19] = s, e[20] = o, e[21] = se, e[22] = me, e[23] = De, e[24] = B, e[25] = re, e[26] = we, e[27] = M, e[28] = Z, e[29] = ae, e[30] = le, e[31] = Q, e[32] = ce, e[33] = g, e[34] = q, e[35] = de, e[36] = X, e[37] = C, e[38] = p, e[39] = P, e[40] = y, e[41] = i, e[42] = j, e[43] = be, e[44] = fe, e[45] = m, e[46] = ge) : ge = e[46];
|
|
293
|
+
let h;
|
|
294
|
+
e[47] !== c?.footnote || e[48] !== c?.source || e[49] !== G || e[50] !== w || e[51] !== p?.footnote || e[52] !== p?.source || e[53] !== m ? (h = w || G ? /* @__PURE__ */ n.jsx(Ke, { styles: {
|
|
295
|
+
footnote: p?.footnote,
|
|
296
|
+
source: p?.source
|
|
297
|
+
}, classNames: {
|
|
298
|
+
footnote: c?.footnote,
|
|
299
|
+
source: c?.source
|
|
300
|
+
}, sources: w, footNote: G, width: m }) : null, e[47] = c?.footnote, e[48] = c?.source, e[49] = G, e[50] = w, e[51] = p?.footnote, e[52] = p?.source, e[53] = m, e[54] = h) : h = e[54];
|
|
301
|
+
let je;
|
|
302
|
+
return e[55] !== ne || e[56] !== l || e[57] !== F || e[58] !== xe || e[59] !== he || e[60] !== K || e[61] !== A || e[62] !== a || e[63] !== pe || e[64] !== b || e[65] !== W || e[66] !== ge || e[67] !== h || e[68] !== j || e[69] !== m ? (je = /* @__PURE__ */ n.jsxs(tt, { className: pe, style: b, id: F, ref: u, "aria-label": ne, backgroundColor: l, theme: j, language: he, minHeight: K, width: m, height: xe, relativeHeight: a, padding: A, children: [
|
|
303
|
+
W,
|
|
304
|
+
ge,
|
|
305
|
+
h
|
|
306
|
+
] }), e[55] = ne, e[56] = l, e[57] = F, e[58] = xe, e[59] = he, e[60] = K, e[61] = A, e[62] = a, e[63] = pe, e[64] = b, e[65] = W, e[66] = ge, e[67] = h, e[68] = j, e[69] = m, e[70] = je) : je = e[70], je;
|
|
307
|
+
}
|
|
308
|
+
function ut(t) {
|
|
309
|
+
return t.size;
|
|
310
|
+
}
|
|
311
|
+
function dt(t) {
|
|
312
|
+
return t.size;
|
|
313
|
+
}
|
|
314
|
+
function ht(t) {
|
|
315
|
+
return t.color;
|
|
316
|
+
}
|
|
317
|
+
function mt(t) {
|
|
318
|
+
return t.color;
|
|
319
|
+
}
|
|
320
|
+
function pt(t) {
|
|
321
|
+
return t.color;
|
|
322
|
+
}
|
|
323
|
+
function gt(t) {
|
|
324
|
+
return t !== void 0;
|
|
325
|
+
}
|
|
326
|
+
function xt(t) {
|
|
327
|
+
return t !== void 0;
|
|
328
|
+
}
|
|
329
|
+
function vt(t) {
|
|
330
|
+
return t.data;
|
|
331
|
+
}
|
|
332
|
+
function bt(t) {
|
|
333
|
+
return t !== void 0;
|
|
334
|
+
}
|
|
335
|
+
function yt(t) {
|
|
336
|
+
return t.data;
|
|
337
|
+
}
|
|
338
|
+
export {
|
|
339
|
+
Wt as C,
|
|
340
|
+
ke as e
|
|
341
|
+
};
|
|
342
|
+
//# sourceMappingURL=index-Ceppbd8C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Ceppbd8C.js","sources":["../node_modules/d3-array/src/extent.js","../src/Components/Graphs/CirclePackingGraph/Graph.tsx","../src/Components/Graphs/CirclePackingGraph/getMaxCircleRadius.ts","../src/Components/Graphs/CirclePackingGraph/index.tsx"],"sourcesContent":["export default function extent(values, valueof) {\n let min;\n let max;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null) {\n if (min === undefined) {\n if (value >= value) min = max = value;\n } else {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null) {\n if (min === undefined) {\n if (value >= value) min = max = value;\n } else {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n return [min, max];\n}\n","import { useEffect, useState, useRef } from 'react';\r\nimport { forceCollide, forceManyBody, forceSimulation, forceX, forceY } from 'd3-force';\r\nimport orderBy from 'lodash.orderby';\r\nimport { scaleSqrt } from 'd3-scale';\r\nimport { extent } from 'd3-array';\r\nimport { Modal } from '@undp/design-system-react/Modal';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { Spinner } from '@undp/design-system-react/Spinner';\r\n\r\nimport { ClassNameObject, StyleObject, TreeMapDataType } from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { getTextColorBasedOnBgColor } from '@/Utils/getTextColorBasedOnBgColor';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { string2HTML } from '@/Utils/string2HTML';\r\n\r\ninterface Props {\r\n data: TreeMapDataType[];\r\n colors: string[];\r\n colorDomain: string[];\r\n leftMargin: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n showLabels: boolean;\r\n showValues: boolean;\r\n width: number;\r\n height: number;\r\n suffix: string;\r\n prefix: string;\r\n selectedColor?: string;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightedDataPoints: (string | number)[];\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n theme: 'light' | 'dark';\r\n maxRadiusValue?: number;\r\n radius: number;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n dimmedOpacity: number;\r\n precision: number;\r\n}\r\n\r\ninterface TreeMapDataTypeForBubbleChart extends TreeMapDataType {\r\n x: number;\r\n y: number;\r\n vx: number;\r\n vy: number;\r\n}\r\n\r\nexport const Graph = (props: Props) => {\r\n const {\r\n data,\r\n colors,\r\n leftMargin,\r\n width,\r\n height,\r\n colorDomain,\r\n selectedColor,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n showLabels,\r\n tooltip,\r\n onSeriesMouseOver,\r\n showValues,\r\n suffix,\r\n prefix,\r\n highlightedDataPoints,\r\n onSeriesMouseClick,\r\n maxRadiusValue,\r\n radius,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n dimmedOpacity,\r\n precision,\r\n } = props;\r\n const svgRef = useRef(null);\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [viewPortDimensions, setViewPortDimensions] = useState<\r\n [number, number, number, number] | undefined\r\n >(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const [finalData, setFinalData] = useState<TreeMapDataTypeForBubbleChart[] | null>(null);\r\n\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n\r\n // Memoize data ordering and radius scale\r\n const dataOrdered =\r\n data.filter(d => !checkIfNullOrUndefined(d.size)).length === 0\r\n ? data\r\n : orderBy(\r\n data.filter(d => !checkIfNullOrUndefined(d.size)),\r\n 'radius',\r\n 'asc',\r\n );\r\n\r\n const radiusScale =\r\n data.filter(d => d.size === undefined || d.size === null).length !== data.length\r\n ? scaleSqrt()\r\n .domain([\r\n 0,\r\n checkIfNullOrUndefined(maxRadiusValue)\r\n ? Math.max(...data.map(d => d.size).filter(d => d !== undefined && d !== null))\r\n : (maxRadiusValue as number),\r\n ])\r\n .range([0.25, radius])\r\n .nice()\r\n : undefined;\r\n\r\n // Memoize simulation setup\r\n useEffect(() => {\r\n const setupSimulation = () => {\r\n const dataTemp = dataOrdered.map(d => ({ ...d, ...(d.data && { data: { ...d.data } }) }));\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const simulation = forceSimulation(dataTemp as any)\r\n .force('y', forceY(_d => graphHeight / 2).strength(1))\r\n .force('x', forceX(_d => graphWidth / 2).strength(1))\r\n .force(\r\n 'collide',\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n forceCollide((d: any) => (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1)),\r\n )\r\n .force('charge', forceManyBody().strength(-15))\r\n .alphaDecay(0.05)\r\n .tick(10000);\r\n\r\n simulation\r\n .on('tick', () => {\r\n setFinalData(dataTemp as TreeMapDataTypeForBubbleChart[]);\r\n })\r\n .on('end', () => {\r\n setFinalData(dataTemp as TreeMapDataTypeForBubbleChart[]);\r\n const xMinExtent =\r\n extent(\r\n dataTemp as TreeMapDataTypeForBubbleChart[],\r\n d => d.x - (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1),\r\n )[0] || 0;\r\n const yMinExtent =\r\n extent(\r\n dataTemp as TreeMapDataTypeForBubbleChart[],\r\n d => d.y - (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1),\r\n )[0] || 0;\r\n const xMaxExtent =\r\n extent(\r\n dataTemp as TreeMapDataTypeForBubbleChart[],\r\n d => d.x + (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1),\r\n )[1] || 0;\r\n const yMaxExtent =\r\n extent(\r\n dataTemp as TreeMapDataTypeForBubbleChart[],\r\n d => d.y + (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1),\r\n )[1] || 0;\r\n setViewPortDimensions([\r\n xMinExtent,\r\n yMinExtent,\r\n xMinExtent < 0 ? xMaxExtent - xMinExtent : xMaxExtent,\r\n yMinExtent < 0 ? yMaxExtent - yMinExtent : yMaxExtent,\r\n ]);\r\n });\r\n };\r\n\r\n setupSimulation();\r\n }, [data, radius, graphHeight, graphWidth, maxRadiusValue, dataOrdered, radiusScale]);\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const handleMouseEnter = (event: any, d: any) => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n };\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const handleMouseMove = (event: any, d: any) => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n };\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const handleClick = (d: any) => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (mouseClickData === d.label && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d.label);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n };\r\n\r\n const handleMouseLeave = () => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n };\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const getCircleColor = (d: any) =>\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(d.color)];\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const getOpacity = (d: any) =>\r\n selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 0.85\r\n : dimmedOpacity\r\n : 0.85;\r\n\r\n // Render loading state\r\n if (!finalData) {\r\n return (\r\n <div style={{ width: `${width}px`, height: `${height}px` }}>\r\n <div className='flex m-auto items-center justify-center p-0 leading-none text-base h-40'>\r\n <Spinner />\r\n </div>\r\n </div>\r\n );\r\n }\r\n if (viewPortDimensions) {\r\n return (\r\n <>\r\n <svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`${viewPortDimensions[0] > 0 ? 0 : viewPortDimensions[0]} ${\r\n viewPortDimensions[1] > 0 ? 0 : viewPortDimensions[1]\r\n } ${width < viewPortDimensions[2] ? viewPortDimensions[2] : width} ${\r\n height < viewPortDimensions[3] ? viewPortDimensions[3] : height\r\n }`}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {finalData.map(d => {\r\n const circleColor = getCircleColor(d);\r\n const opacity = getOpacity(d);\r\n const bubbleRadius = radiusScale ? radiusScale(d.size || 0) : radius;\r\n const showLabel = bubbleRadius > 20 && (showLabels || showValues);\r\n return (\r\n <g\r\n className='undp-viz-g-with-hover'\r\n key={d.label}\r\n opacity={opacity}\r\n transform={`translate(${d.x},${d.y})`}\r\n onMouseEnter={event => handleMouseEnter(event, d)}\r\n onMouseMove={event => handleMouseMove(event, d)}\r\n onClick={() => handleClick(d)}\r\n onMouseLeave={handleMouseLeave}\r\n >\r\n <circle cx={0} cy={0} r={bubbleRadius} fill={circleColor} />\r\n {(showLabel || showValues) &&\r\n d.size !== undefined &&\r\n d.size !== null &&\r\n bubbleRadius >= 15 && (\r\n <g>\r\n <foreignObject\r\n y={0 - bubbleRadius}\r\n x={0 - bubbleRadius}\r\n width={2 * bubbleRadius}\r\n height={2 * bubbleRadius}\r\n >\r\n <div\r\n className='flex flex-col justify-center items-center h-full py-0 px-3'\r\n style={{\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n height: '100%',\r\n padding: '0 0.75rem',\r\n }}\r\n >\r\n {showLabels && (\r\n <p\r\n className={cn(\r\n 'text-center leading-[1.25] overflow-hidden m-0 circle-packing-label',\r\n classNames?.graphObjectValues,\r\n )}\r\n style={{\r\n fontSize: `${Math.min(\r\n Math.max(Math.round(bubbleRadius / 4), 12),\r\n Math.max(\r\n Math.round((bubbleRadius * 12) / `${d.label}`.length),\r\n 12,\r\n ),\r\n 14,\r\n )}px`,\r\n textAlign: 'center',\r\n margin: 0,\r\n lineHeight: 1.25,\r\n WebkitLineClamp:\r\n bubbleRadius * 2 < 60\r\n ? 1\r\n : bubbleRadius * 2 < 75\r\n ? 2\r\n : bubbleRadius * 2 < 100\r\n ? 3\r\n : undefined,\r\n display: '-webkit-box',\r\n WebkitBoxOrient: 'vertical',\r\n color: getTextColorBasedOnBgColor(circleColor),\r\n hyphens: 'auto',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n >\r\n {d.label}\r\n </p>\r\n )}\r\n {showValues && (\r\n <p\r\n className='text-center font-bold leading-[1.25] w-full m-0 circle-packing-value'\r\n style={{\r\n fontSize: `${Math.min(\r\n Math.max(Math.round(bubbleRadius / 4), 14),\r\n 14,\r\n )}px`,\r\n textAlign: 'center',\r\n margin: 0,\r\n lineHeight: 1.25,\r\n width: '100%',\r\n fontWeight: 'bold',\r\n color: getTextColorBasedOnBgColor(circleColor),\r\n }}\r\n >\r\n {numberFormattingFunction(d.size, 'NA', precision, prefix, suffix)}\r\n </p>\r\n )}\r\n </div>\r\n </foreignObject>\r\n </g>\r\n )}\r\n </g>\r\n );\r\n })}\r\n </g>\r\n </svg>\r\n {mouseOverData && tooltip && eventX && eventY && (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n )}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <Modal\r\n open={mouseClickData !== undefined}\r\n onClose={() => {\r\n setMouseClickData(undefined);\r\n }}\r\n >\r\n <div\r\n className='graph-modal-content m-0'\r\n dangerouslySetInnerHTML={\r\n typeof detailsOnClick === 'string'\r\n ? { __html: string2HTML(detailsOnClick, mouseClickData) }\r\n : undefined\r\n }\r\n >\r\n {typeof detailsOnClick === 'function' ? detailsOnClick(mouseClickData) : null}\r\n </div>\r\n </Modal>\r\n ) : null}\r\n </>\r\n );\r\n }\r\n return null;\r\n};\r\n","export function getMaxCircleRadius(\r\n values: (number | undefined | null)[],\r\n width: number,\r\n height: number,\r\n) {\r\n const filteredValues = values.filter(d => d !== undefined && d !== null);\r\n const containerRadius = Math.min(width, height) / 2;\r\n const totalValue = filteredValues.reduce((sum, v) => sum + v, 0);\r\n const maxValue = Math.max(...filteredValues);\r\n const getPackingEfficiency = (n: number) => {\r\n if (n <= 5) return 0.9;\r\n if (n <= 10) return 0.85;\r\n if (n <= 20) return 0.8;\r\n return 0.7;\r\n };\r\n const getEfficiencyBecauseOfContainerRadius = (r: number) => {\r\n if (r <= 200) return 0.85;\r\n if (r <= 250) return 0.95;\r\n return 1;\r\n };\r\n return (\r\n containerRadius *\r\n Math.sqrt(maxValue / totalValue) *\r\n getEfficiencyBecauseOfContainerRadius(containerRadius) *\r\n getPackingEfficiency(filteredValues.length)\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\nimport { getMaxCircleRadius } from './getMaxCircleRadius';\r\n\r\nimport { Languages, SourcesDataType, StyleObject, ClassNameObject, TreeMapDataType } from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: TreeMapDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for circle */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: string[];\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n\r\n // Values and Ticks\r\n /** Prefix for values */\r\n prefix?: string;\r\n /** Suffix for values */\r\n suffix?: string;\r\n /** Maximum value mapped to the radius chart */\r\n maxRadiusValue?: number;\r\n\r\n // Graph Parameters\r\n /** Maximum radius of the circle */\r\n radius?: number;\r\n /** Toggle visibility of labels */\r\n showLabels?: boolean;\r\n /** Toggle visibility of values */\r\n showValues?: boolean;\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedDataPoints?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** Details displayed on the modal when user clicks of a data point. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function CirclePackingGraph(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n suffix = '',\r\n sources,\r\n prefix = '',\r\n graphDescription,\r\n leftMargin = 0,\r\n rightMargin = 0,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n padding,\r\n backgroundColor = false,\r\n topMargin = 0,\r\n bottomMargin = 0,\r\n showLabels = true,\r\n relativeHeight,\r\n tooltip,\r\n onSeriesMouseOver,\r\n showColorScale = true,\r\n showValues,\r\n graphID,\r\n highlightedDataPoints = [],\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n language = 'en',\r\n showNAColor,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n radius,\r\n maxRadiusValue,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n dimmedOpacity = 0.3,\r\n precision = 2,\r\n } = props;\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {data.length === 0 ? (\r\n <EmptyState />\r\n ) : (\r\n <>\r\n {showColorScale && data.filter(el => el.color).length !== 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor === undefined || showNAColor === null ? true : showNAColor}\r\n isCenter\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {svgWidth && svgHeight ? (\r\n <Graph\r\n data={data}\r\n colors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n width={svgWidth}\r\n height={svgHeight}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n showLabels={showLabels}\r\n showValues={\r\n showValues !== false\r\n ? data.filter(el => el.size).length !== 0\r\n : (showValues as boolean)\r\n }\r\n selectedColor={selectedColor}\r\n suffix={suffix}\r\n prefix={prefix}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n highlightedDataPoints={highlightedDataPoints}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n theme={theme}\r\n radius={\r\n !radius\r\n ? getMaxCircleRadius(\r\n data.map(d => d.size),\r\n svgWidth,\r\n svgHeight,\r\n )\r\n : radius\r\n }\r\n maxRadiusValue={maxRadiusValue}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n dimmedOpacity={dimmedOpacity}\r\n precision={precision}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n </>\r\n )}\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["extent","values","valueof","min","max","value","index","Graph","props","$","_c","data","colors","leftMargin","width","height","colorDomain","selectedColor","rightMargin","topMargin","bottomMargin","showLabels","tooltip","onSeriesMouseOver","showValues","suffix","prefix","highlightedDataPoints","onSeriesMouseClick","maxRadiusValue","radius","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","dimmedOpacity","precision","svgRef","useRef","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","viewPortDimensions","setViewPortDimensions","eventX","setEventX","eventY","setEventY","finalData","setFinalData","t0","top","bottom","left","right","margin","graphWidth","graphHeight","t1","filter","_temp","length","orderBy","_temp2","dataOrdered","t2","_temp3","scaleSqrt","domain","checkIfNullOrUndefined","Math","map","_temp4","_temp5","range","nice","radiusScale","t3","setupSimulation","dataTemp","_temp6","simulation","forceSimulation","force","forceY","_d","strength","forceX","_d_0","forceCollide","d_5","d","size","forceManyBody","alphaDecay","tick","on","xMinExtent","d_6","x","yMinExtent","d_7","y","xMaxExtent","d_8","yMaxExtent","d_9","t4","useEffect","t5","event","d_10","clientY","clientX","handleMouseEnter","t6","Symbol","for","event_0","d_11","handleMouseMove","t7","d_12","label","handleClick","t8","handleMouseLeave","t9","d_13","_temp7","color","indexOf","Colors","gray","getCircleColor","t10","d_14","getOpacity","t11","t12","t13","t14","jsx","Spinner","t15","graphObjectValues","t16","d_15","circleColor","opacity","bubbleRadius","showLabel","jsxs","event_1","event_2","display","flexDirection","justifyContent","alignItems","padding","cn","fontSize","round","textAlign","lineHeight","WebkitLineClamp","WebkitBoxOrient","getTextColorBasedOnBgColor","hyphens","fontWeight","numberFormattingFunction","t17","t18","Tooltip","t19","Modal","__html","string2HTML","t20","Fragment","d_0","d_3","d_1","d_2","d_4","el","getMaxCircleRadius","filteredValues","containerRadius","totalValue","reduce","sum","v","maxValue","getPackingEfficiency","n","getEfficiencyBecauseOfContainerRadius","r","sqrt","CirclePackingGraph","graphTitle","sources","graphDescription","footNote","colorLegendTitle","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","language","showNAColor","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","t21","graphContainer","t22","t23","description","title","GraphHeader","t24","EmptyState","ColorLegendWithMouseOver","categoricalColors","uniqBy","colorLegend","GraphArea","primaryColors","_temp8","_temp9","_temp0","t25","footnote","source","GraphFooter","t26","GraphContainer","el_2","el_1","el_0"],"mappings":";;;;;;;;;;;;;;;;;;;AAAe,SAASA,GAAOC,GAAQC,GAAS;AAC9C,MAAIC,GACAC;AACJ,MAAIF,MAAY;AACd,eAAWG,KAASJ;AAClB,MAAII,KAAS,SACPF,MAAQ,SACNE,KAASA,MAAOF,IAAMC,IAAMC,MAE5BF,IAAME,MAAOF,IAAME,IACnBD,IAAMC,MAAOD,IAAMC;AAAA,OAIxB;AACL,QAAIC,IAAQ;AACZ,aAASD,KAASJ;AAChB,OAAKI,IAAQH,EAAQG,GAAO,EAAEC,GAAOL,CAAM,MAAM,SAC3CE,MAAQ,SACNE,KAASA,MAAOF,IAAMC,IAAMC,MAE5BF,IAAME,MAAOF,IAAME,IACnBD,IAAMC,MAAOD,IAAMC;AAAA,EAI/B;AACA,SAAO,CAACF,GAAKC,CAAG;AAClB;AC8BO,MAAMG,KAAQC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,GAAAA,EAAA,GAAA,GACnB;AAAA,IAAAC,MAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,YAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,aAAAA;AAAAA,IAAAC,eAAAA;AAAAA,IAAAC,aAAAA;AAAAA,IAAAC,WAAAA;AAAAA,IAAAC,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,GAAApP,QAAAgN,GAAAhN,QAAAK,GAAAL,QAAAwP,MAAAA,KAAAxP,EAAA,EAAA,GA3HjBwP;AA2HiB;AAxLd,SAAAL,GAAAjE,GAAA;AAAA,SA0J+B7F,EAACC;AAAK;AA1JrC,SAAA4J,GAAAQ,GAAA;AAAA,SA4IiCvE,EAAE7F;AAAK;AA5IxC,SAAA2J,GAAAU,GAAA;AAAA,SA+H6BxE,EAAEvD;AAAM;AA/HrC,SAAAD,GAAAiI,GAAA;AAAA,SAwH6BzE,EAAEvD;AAAM;AAxHrC,SAAAlD,GAAAyG,GAAA;AAAA,SAuGwCA,EAAEvD;AAAM;AAvGhD,SAAAzD,GAAA6G,GAAA;AAAA,SA8F4B3F,MAAMpD;AAAS;AA9F3C,SAAAiC,GAAA4G,GAAA;AAAA,SA6F6CzF,MAAMpD;AAAS;AA7F5D,SAAA2B,GAAAyB,GAAA;AAAA,SA6FyBA,EAACnF;AAAK;AA7F/B,SAAAuD,GAAAsH,GAAA;AAAA,SA4F2C1F,MAAMpD;AAAS;AA5F1D,SAAAqB,GAAA2H,GAAA;AAAA,SA4FuB5F,EAACnF;AAAK;","x_google_ignoreList":[0]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./BarGraph.cjs"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./BarGraph.cjs"),i=require("./index-C6LorfZ-.cjs"),h=require("./DonutChart.cjs"),s=require("./DumbbellChart.cjs"),l=require("./BeeSwarmChart.cjs"),c=require("./DualAxisLineChart.cjs"),u=require("./LineChartWithConfidenceInterval.cjs"),d=require("./SimpleLineChart.cjs"),g=require("./MultiLineChart.cjs"),p=require("./MultiLineAltChart.cjs"),C=require("./DifferenceLineChart.cjs"),m=require("./SparkLine.cjs"),S=require("./BiVariateChoroplethMap.cjs"),D=require("./ChoroplethMap.cjs"),G=require("./DotDensityMap.cjs"),q=require("./ThreeDGlobe.cjs"),f=require("./GeoHubMap.cjs"),b=require("./GeoHubCompareMaps.cjs"),F=require("./GeoHubMapWithLayerSelection.cjs"),M=require("./ScatterPlot.cjs"),L=require("./SlopeChart.cjs"),B=require("./BulletChart.cjs"),T=require("./AreaChart.cjs"),v=require("./BasicStatCard.cjs"),P=require("./StatCardFromData.cjs"),y=require("./TreeMapGraph.cjs"),A=require("./UnitChart.cjs"),H=require("./HeatMap.cjs"),O=require("./DataTable.cjs"),w=require("./DataCards.cjs"),I=require("./StripChart.cjs"),k=require("./ParetoChart.cjs"),W=require("./ButterflyChart.cjs"),x=require("./Histogram.cjs"),N=require("./SankeyChart.cjs"),V=require("./RadarChart.cjs"),J=require("./MultiGraphDashboard.cjs"),U=require("./PerformanceIntensiveMultiGraphDashboard.cjs"),E=require("./MultiGraphDashboardWideToLongFormat.cjs"),R=require("./SingleGraphDashboard.cjs"),Q=require("./SingleGraphDashboardGeoHubMaps.cjs"),j=require("./SingleGraphDashboardThreeDGraphs.cjs"),z=require("./GriddedGraphs.cjs"),K=require("./ScrollStory.cjs"),X=require("./PerformanceIntensiveScrollStory.cjs"),Y=require("./MultiGraphDashboardFromConfig.cjs"),Z=require("./PerformanceIntensiveMultiGraphDashboardFromConfig.cjs"),_=require("./MultiGraphDashboardWideToLongFormatFromConfig.cjs"),$=require("./SingleGraphDashboardFromConfig.cjs"),ee=require("./SingleGraphDashboardGeoHubMapsFromConfig.cjs"),re=require("./SingleGraphDashboardThreeDGraphsFromConfig.cjs"),ae=require("./GriddedGraphsFromConfig.cjs"),te=require("./ExcelDownloadButton.cjs"),oe=require("./ImageDownloadButton.cjs"),ne=require("./SVGDownloadButton.cjs"),ie=require("./CsvDownloadButton.cjs"),he=require("./CopyTextButton.cjs"),se=require("./Colors.cjs"),le=require("./ColorLegend.cjs"),ce=require("./ColorLegendWithMouseOver.cjs"),ue=require("./LinearColorLegend.cjs"),de=require("./ThresholdColorLegendWithMouseOver.cjs"),ge=require("./GraphFooter.cjs"),pe=require("./GraphHeader.cjs"),Ce=require("./FootNote.cjs"),me=require("./GraphDescription.cjs"),Se=require("./GraphTitle.cjs"),De=require("./Source-DYMJRrsq.cjs"),Ge=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),a=require("./removeOutliers-WELHHqiI.cjs"),qe=require("./numberFormattingFunction-02t-wJta.cjs"),fe=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),be=require("./getJenks-GYmdwBqm.cjs"),Fe=require("./imageDownload-CgDcm1Sj.cjs"),Me=require("./svgDownload-D9zEGjTF.cjs"),Le=require("./excelDownload-BQpsCa62.cjs"),Be=require("./getUniqValue-RViz8tTw.cjs"),Te=require("./getCentroidCoordinates-Dng1HVjO.cjs"),r=require("./fetchAndParseData-l5HGMAEs.cjs"),n=require("./transformDataForAggregation-KXGm6flX.cjs"),ve=require("./transformDataForGraphFromFile-DaJHQCsL.cjs"),o=require("./validateSchema.cjs"),e=require("./getSchema.cjs"),Pe=require("./getGraphList-gf02xgT2.cjs");exports.GroupedBarGraph=t.GroupedBarGraph;exports.SimpleBarGraph=t.SimpleBarGraph;exports.StackedBarGraph=t.StackedBarGraph;exports.CirclePackingGraph=i.CirclePackingGraph;exports.DonutChart=h.DonutChart;exports.DumbbellChart=s.DumbbellChart;exports.BeeSwarmChart=l.BeeSwarmChart;exports.DualAxisLineChart=c.DualAxisLineChart;exports.LineChartWithConfidenceInterval=u.LineChartWithConfidenceInterval;exports.SimpleLineChart=d.SimpleLineChart;exports.MultiLineChart=g.MultiLineChart;exports.MultiLineAltChart=p.MultiLineAltChart;exports.DifferenceLineChart=C.DifferenceLineChart;exports.SparkLine=m.SparkLine;exports.BiVariateChoroplethMap=S.BiVariateChoroplethMap;exports.ChoroplethMap=D.ChoroplethMap;exports.DotDensityMap=G.DotDensityMap;exports.ThreeDGlobe=q.ThreeDGlobe;exports.GeoHubMap=f.GeoHubMap;exports.GeoHubCompareMaps=b.GeoHubCompareMaps;exports.GeoHubMapWithLayerSelection=F.GeoHubMapWithLayerSelection;exports.ScatterPlot=M.ScatterPlot;exports.SlopeChart=L.SlopeChart;exports.BulletChart=B.BulletChart;exports.AreaChart=T.AreaChart;exports.BasicStatCard=v.BasicStatCard;exports.StatCardFromData=P.StatCardFromData;exports.TreeMapGraph=y.TreeMapGraph;exports.UnitChart=A.UnitChart;exports.HeatMap=H.HeatMap;exports.DataTable=O.DataTable;exports.DataCards=w.DataCards;exports.StripChart=I.StripChart;exports.ParetoChart=k.ParetoChart;exports.ButterflyChart=W.ButterflyChart;exports.Histogram=x.Histogram;exports.SankeyChart=N.SankeyChart;exports.RadarChart=V.RadarChart;exports.MultiGraphDashboard=J.MultiGraphDashboard;exports.PerformanceIntensiveMultiGraphDashboard=U.PerformanceIntensiveMultiGraphDashboard;exports.MultiGraphDashboardWideToLongFormat=E.MultiGraphDashboardWideToLongFormat;exports.SingleGraphDashboard=R.SingleGraphDashboard;exports.SingleGraphDashboardGeoHubMaps=Q.SingleGraphDashboardGeoHubMaps;exports.SingleGraphDashboardThreeDGraphs=j.SingleGraphDashboardThreeDGraphs;exports.GriddedGraphs=z.GriddedGraphs;exports.ScrollStory=K.ScrollStory;exports.PerformanceIntensiveScrollStory=X.PerformanceIntensiveScrollStory;exports.MultiGraphDashboardFromConfig=Y.MultiGraphDashboardFromConfig;exports.PerformanceIntensiveMultiGraphDashboardFromConfig=Z.PerformanceIntensiveMultiGraphDashboardFromConfig;exports.MultiGraphDashboardWideToLongFormatFromConfig=_.MultiGraphDashboardWideToLongFormatFromConfig;exports.SingleGraphDashboardFromConfig=$.SingleGraphDashboardFromConfig;exports.SingleGraphDashboardGeoHubMapsFromConfig=ee.SingleGraphDashboardGeoHubMapsFromConfig;exports.SingleGraphDashboardThreeDGraphsFromConfig=re.SingleGraphDashboardThreeDGraphsFromConfig;exports.GriddedGraphsFromConfig=ae.GriddedGraphsFromConfig;exports.ExcelDownloadButton=te.ExcelDownloadButton;exports.ImageDownloadButton=oe.ImageDownloadButton;exports.SVGDownloadButton=ne.SVGDownloadButton;exports.CsvDownloadButton=ie.CsvDownloadButton;exports.CopyTextButton=he.CopyTextButton;exports.Colors=se.Colors;exports.ColorLegend=le.ColorLegend;exports.ColorLegendWithMouseOver=ce.ColorLegendWithMouseOver;exports.LinearColorLegend=ue.LinearColorLegend;exports.ThresholdColorLegendWithMouseOver=de.ThresholdColorLegendWithMouseOver;exports.GraphFooter=ge.GraphFooter;exports.GraphHeader=pe.GraphHeader;exports.FootNote=Ce.FootNote;exports.GraphDescription=me.GraphDescription;exports.GraphTitle=Se.GraphTitle;exports.Source=De.Source;exports.checkIfNullOrUndefined=Ge.checkIfNullOrUndefined;exports.generateEmbedLink=a.generateEmbedLink;exports.generateIframeCode=a.generateIframeCode;exports.getPercentileValue=a.getPercentileValue;exports.getQueryParamsFromLink=a.getQueryParamsFromLink;exports.removeOutliers=a.removeOutliers;exports.numberFormattingFunction=qe.numberFormattingFunction;exports.getTextColorBasedOnBgColor=fe.getTextColorBasedOnBgColor;exports.getJenks=be.getJenks;exports.imageDownload=Fe.imageDownload;exports.svgDownload=Me.svgDownload;exports.excelDownload=Le.excelDownload;exports.getUniqValue=Be.getUniqValue;exports.getCentroidCoordinates=Te.getCentroidCoordinates;exports.fetchAndParseCSV=r.fetchAndParseCSV;exports.fetchAndParseCSVFromTextBlob=r.fetchAndParseCSVFromTextBlob;exports.fetchAndParseJSON=r.fetchAndParseJSON;exports.fetchAndParseMultipleDataSources=r.fetchAndParseMultipleDataSources;exports.fetchAndTransformDataFromAPI=r.fetchAndTransformDataFromAPI;exports.transformColumnsToArray=r.transformColumnsToArray;exports.transformDataForAggregation=n.transformDataForAggregation;exports.transformDataForGraph=n.transformDataForGraph;exports.transformDataForGraphFromFile=ve.transformDataForGraphFromFile;exports.validateConfigSchema=o.validateConfigSchema;exports.validateDataSchema=o.validateDataSchema;exports.validateSettingsSchema=o.validateSettingsSchema;exports.getDashboardJSONSchema=e.getDashboardJSONSchema;exports.getDashboardWideToLongFormatJSONSchema=e.getDashboardWideToLongFormatJSONSchema;exports.getDataFiltersSchema=e.getDataFiltersSchema;exports.getDataSchema=e.getDataSchema;exports.getDataSelectionSchema=e.getDataSelectionSchema;exports.getDataSettingsSchema=e.getDataSettingsSchema;exports.getDataTransformSchema=e.getDataTransformSchema;exports.getFiltersSchema=e.getFiltersSchema;exports.getGraphDataConfigurationSchema=e.getGraphDataConfigurationSchema;exports.getGriddedGraphJSONSchema=e.getGriddedGraphJSONSchema;exports.getReadableHeaderSchema=e.getReadableHeaderSchema;exports.getSettingsSchema=e.getSettingsSchema;exports.getSingleGraphJSONSchema=e.getSingleGraphJSONSchema;exports.graphList=Pe.graphList;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GroupedBarGraph as e, SimpleBarGraph as a, StackedBarGraph as t } from "./BarGraph.js";
|
|
2
|
-
import { C as p } from "./index-
|
|
2
|
+
import { C as p } from "./index-Ceppbd8C.js";
|
|
3
3
|
import { DonutChart as h } from "./DonutChart.js";
|
|
4
4
|
import { DumbbellChart as x } from "./DumbbellChart.js";
|
|
5
5
|
import { BeeSwarmChart as s } from "./BeeSwarmChart.js";
|
package/package.json
CHANGED
package/dist/index-DoY3Ga3W.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),M=require("react"),Le=require("./index-CSNtgibC.cjs"),Be=require("./index-Cno4Q0YE.cjs"),He=require("./Modal-JW_IExO3.cjs"),Ge=require("./Spinner-DRMBUsX7.cjs"),Pe=require("./Tooltip-4dJo4_AF.cjs"),Te=require("./numberFormattingFunction-02t-wJta.cjs"),$e=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),ze=require("./Colors.cjs"),ke=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Fe=require("./string2HTML-CPGr_I5E.cjs"),Ie=require("./pow-DgrUorRi.cjs"),Se=require("./y-QcCbqrzx.cjs"),We=require("./GraphFooter.cjs"),Ue=require("./GraphHeader.cjs"),Xe=require("./ColorLegendWithMouseOver.cjs"),Ye=require("./EmptyState-sAEZ_5rU.cjs"),Ne=require("./uniqBy-O05lp2S5.cjs"),Ve=require("./GraphContainer-d8A46BK2.cjs");function we(t,e){let o,d;if(e===void 0)for(const u of t)u!=null&&(o===void 0?u>=u&&(o=d=u):(o>u&&(o=u),d<u&&(d=u)));else{let u=-1;for(let x of t)(x=e(x,++u,t))!=null&&(o===void 0?x>=x&&(o=d=x):(o>x&&(o=x),d<x&&(d=x)))}return[o,d]}const _e=t=>{const e=n.compilerRuntimeExports.c(104),{data:o,colors:d,leftMargin:u,width:x,height:$,colorDomain:T,selectedColor:F,rightMargin:je,topMargin:be,bottomMargin:N,showLabels:l,tooltip:I,onSeriesMouseOver:w,showValues:k,suffix:W,prefix:te,highlightedDataPoints:xe,onSeriesMouseClick:oe,maxRadiusValue:V,radius:s,resetSelectionOnDoubleClick:ge,detailsOnClick:b,styles:D,classNames:y,dimmedOpacity:U,precision:L}=t,Ee=M.useRef(null),[ve,Ce]=M.useState(void 0),[R,X]=M.useState(void 0),[S,De]=M.useState(void 0),[ie,ne]=M.useState(void 0),[se,Me]=M.useState(void 0),[re,h]=M.useState(null);let c;e[0]!==N||e[1]!==u||e[2]!==je||e[3]!==be?(c={top:be,bottom:N,left:u,right:je},e[0]=N,e[1]=u,e[2]=je,e[3]=be,e[4]=c):c=e[4];const Y=c,_=x-Y.left-Y.right,B=$-Y.top-Y.bottom;let le;e[5]!==o?(le=o.filter(Ae).length===0?o:Be.orderBy(o.filter(Je),"radius","asc"),e[5]=o,e[6]=le):le=e[6];const H=le;let ce;e[7]!==o||e[8]!==V||e[9]!==s?(ce=o.filter(Ke).length!==o.length?Ie.sqrt().domain([0,ke.checkIfNullOrUndefined(V)?Math.max(...o.map(Qe).filter(Ze)):V]).range([.25,s]).nice():void 0,e[7]=o,e[8]=V,e[9]=s,e[10]=ce):ce=e[10];const r=ce;let ae;e[11]!==H||e[12]!==B||e[13]!==_||e[14]!==s||e[15]!==r?(ae=()=>{(()=>{const a=[...H];Se.forceSimulation(a).force("y",Se.forceY(g=>B/2).strength(1)).force("x",Se.forceX(g=>_/2).strength(1)).force("collide",Se.forceCollide(g=>r?r(g.size||0)+1:s+1)).force("charge",Se.forceManyBody().strength(-15)).alphaDecay(.05).tick(1e4).on("tick",()=>{h(a)}).on("end",()=>{h(a);const g=we(a,f=>f.x-(r?r(f.size||0)+1:s+1))[0]||0,p=we(a,f=>f.y-(r?r(f.size||0)+1:s+1))[0]||0,z=we(a,f=>f.x+(r?r(f.size||0)+1:s+1))[1]||0,E=we(a,f=>f.y+(r?r(f.size||0)+1:s+1))[1]||0;De([g,p,g<0?z-g:z,p<0?E-p:E])})})()},e[11]=H,e[12]=B,e[13]=_,e[14]=s,e[15]=r,e[16]=ae):ae=e[16];let ue;e[17]!==o||e[18]!==H||e[19]!==B||e[20]!==_||e[21]!==V||e[22]!==s||e[23]!==r?(ue=[o,s,B,_,V,H,r],e[17]=o,e[18]=H,e[19]=B,e[20]=_,e[21]=V,e[22]=s,e[23]=r,e[24]=ue):ue=e[24],M.useEffect(ae,ue);let fe;e[25]!==w?(fe=(i,a)=>{Ce(a),Me(i.clientY),ne(i.clientX),w?.(a)},e[25]=w,e[26]=fe):fe=e[26];const A=fe;let J;e[27]===Symbol.for("react.memo_cache_sentinel")?(J=(i,a)=>{Ce(a),Me(i.clientY),ne(i.clientX)},e[27]=J):J=e[27];const Re=J;let K;e[28]!==b||e[29]!==R||e[30]!==oe||e[31]!==ge?(K=i=>{(oe||b)&&(R===i.label&&ge?(X(void 0),oe?.(void 0)):(X(i.label),oe?.(i)))},e[28]=b,e[29]=R,e[30]=oe,e[31]=ge,e[32]=K):K=e[32];const G=K;let de;e[33]!==w?(de=()=>{Ce(void 0),ne(void 0),Me(void 0),w?.(void 0)},e[33]=w,e[34]=de):de=e[34];const C=de;let O;e[35]!==T||e[36]!==d||e[37]!==o?(O=i=>o.filter(et).length===0?d[0]:i.color?d[T.indexOf(i.color)]:ze.Colors.gray,e[35]=T,e[36]=d,e[37]=o,e[38]=O):O=e[38];const Q=O;let he;e[39]!==T||e[40]!==d||e[41]!==U||e[42]!==xe||e[43]!==F?(he=i=>F?i.color&&d[T.indexOf(i.color)]===F?1:U:xe.length!==0?xe.indexOf(i.label)!==-1?.85:U:.85,e[39]=T,e[40]=d,e[41]=U,e[42]=xe,e[43]=F,e[44]=he):he=e[44];const Z=he;if(!re){const i=`${x}px`,a=`${$}px`;let j;e[45]!==i||e[46]!==a?(j={width:i,height:a},e[45]=i,e[46]=a,e[47]=j):j=e[47];let g;e[48]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsxRuntimeExports.jsx("div",{className:"flex m-auto items-center justify-center p-0 leading-none text-base h-40",children:n.jsxRuntimeExports.jsx(Ge.w,{})}),e[48]=g):g=e[48];let p;return e[49]!==j?(p=n.jsxRuntimeExports.jsx("div",{style:j,children:g}),e[49]=j,e[50]=p):p=e[50],p}if(S){const i=`${x}px`,a=`${$}px`,j=`${S[0]>0?0:S[0]} ${S[1]>0?0:S[1]} ${x<S[2]?S[2]:x} ${$<S[3]?S[3]:$}`,g=`translate(${Y.left},${Y.top})`;let p;if(e[51]!==y?.graphObjectValues||e[52]!==re||e[53]!==Q||e[54]!==Z||e[55]!==G||e[56]!==A||e[57]!==C||e[58]!==L||e[59]!==te||e[60]!==s||e[61]!==r||e[62]!==l||e[63]!==k||e[64]!==D?.graphObjectValues||e[65]!==W){let pe;e[67]!==y?.graphObjectValues||e[68]!==Q||e[69]!==Z||e[70]!==G||e[71]!==A||e[72]!==C||e[73]!==L||e[74]!==te||e[75]!==s||e[76]!==r||e[77]!==l||e[78]!==k||e[79]!==D?.graphObjectValues||e[80]!==W?(pe=v=>{const P=Q(v),me=Z(v),m=r?r(v.size||0):s,ye=m>20&&(l||k);return n.jsxRuntimeExports.jsxs("g",{className:"undp-viz-g-with-hover",opacity:me,transform:`translate(${v.x},${v.y})`,onMouseEnter:Oe=>A(Oe,v),onMouseMove:Oe=>Re(Oe,v),onClick:()=>G(v),onMouseLeave:C,children:[n.jsxRuntimeExports.jsx("circle",{cx:0,cy:0,r:m,fill:P}),(ye||k)&&v.size!==void 0&&v.size!==null&&n.jsxRuntimeExports.jsx("g",{children:n.jsxRuntimeExports.jsx("foreignObject",{y:0-m,x:0-m,width:2*m,height:2*m,children:n.jsxRuntimeExports.jsxs("div",{className:"flex flex-col justify-center items-center h-full py-0 px-3",children:[l&&n.jsxRuntimeExports.jsx("p",{className:n.mo("text-center leading-[1.25] overflow-hidden m-0 circle-packing-label",y?.graphObjectValues),style:{fontSize:`${Math.min(Math.max(Math.round(m/4),12),Math.max(Math.round(m*12/`${v.label}`.length),12),14)}px`,WebkitLineClamp:m*2<60?1:m*2<75?2:m*2<100?3:void 0,display:"-webkit-box",WebkitBoxOrient:"vertical",color:$e.getTextColorBasedOnBgColor(P),hyphens:"auto",...D?.graphObjectValues||{}},children:v.label}),k&&n.jsxRuntimeExports.jsx("p",{className:"text-center font-bold leading-[1.25] w-full m-0 circle-packing-value",style:{fontSize:`${Math.min(Math.max(Math.round(m/4),14),14)}px`,color:$e.getTextColorBasedOnBgColor(P)},children:Te.numberFormattingFunction(v.size,"NA",L,te,W)})]})})})]},v.label)},e[67]=y?.graphObjectValues,e[68]=Q,e[69]=Z,e[70]=G,e[71]=A,e[72]=C,e[73]=L,e[74]=te,e[75]=s,e[76]=r,e[77]=l,e[78]=k,e[79]=D?.graphObjectValues,e[80]=W,e[81]=pe):pe=e[81],p=re.map(pe),e[51]=y?.graphObjectValues,e[52]=re,e[53]=Q,e[54]=Z,e[55]=G,e[56]=A,e[57]=C,e[58]=L,e[59]=te,e[60]=s,e[61]=r,e[62]=l,e[63]=k,e[64]=D?.graphObjectValues,e[65]=W,e[66]=p}else p=e[66];let z;e[82]!==g||e[83]!==p?(z=n.jsxRuntimeExports.jsx("g",{transform:g,children:p}),e[82]=g,e[83]=p,e[84]=z):z=e[84];let E;e[85]!==i||e[86]!==a||e[87]!==j||e[88]!==z?(E=n.jsxRuntimeExports.jsx("svg",{width:i,height:a,viewBox:j,direction:"ltr",ref:Ee,children:z}),e[85]=i,e[86]=a,e[87]=j,e[88]=z,e[89]=E):E=e[89];let f;e[90]!==y?.tooltip||e[91]!==ie||e[92]!==se||e[93]!==ve||e[94]!==D?.tooltip||e[95]!==I?(f=ve&&I&&ie&&se&&n.jsxRuntimeExports.jsx(Pe.Tooltip,{data:ve,body:I,xPos:ie,yPos:se,backgroundStyle:D?.tooltip,className:y?.tooltip}),e[90]=y?.tooltip,e[91]=ie,e[92]=se,e[93]=ve,e[94]=D?.tooltip,e[95]=I,e[96]=f):f=e[96];let q;e[97]!==b||e[98]!==R?(q=b&&R!==void 0?n.jsxRuntimeExports.jsx(He.le,{open:R!==void 0,onClose:()=>{X(void 0)},children:n.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof b=="string"?{__html:Fe.string2HTML(b,R)}:void 0,children:typeof b=="function"?b(R):null})}):null,e[97]=b,e[98]=R,e[99]=q):q=e[99];let ee;return e[100]!==E||e[101]!==f||e[102]!==q?(ee=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[E,f,q]}),e[100]=E,e[101]=f,e[102]=q,e[103]=ee):ee=e[103],ee}return null};function Ae(t){return!ke.checkIfNullOrUndefined(t.size)}function Je(t){return!ke.checkIfNullOrUndefined(t.size)}function Ke(t){return t.size===void 0||t.size===null}function Qe(t){return t.size}function Ze(t){return t!=null}function et(t){return t.color}function tt(t){const e=n.compilerRuntimeExports.c(74),{data:o,graphTitle:d,colors:u,suffix:x,sources:$,prefix:T,graphDescription:F,leftMargin:je,rightMargin:be,height:N,width:l,footNote:I,colorDomain:w,colorLegendTitle:k,padding:W,backgroundColor:te,topMargin:xe,bottomMargin:oe,showLabels:V,relativeHeight:s,tooltip:ge,onSeriesMouseOver:b,showColorScale:D,showValues:y,graphID:U,highlightedDataPoints:L,onSeriesMouseClick:Ee,graphDownload:ve,dataDownload:Ce,language:R,showNAColor:X,minHeight:S,theme:De,ariaLabel:ie,radius:ne,maxRadiusValue:se,resetSelectionOnDoubleClick:Me,detailsOnClick:re,styles:h,classNames:c,dimmedOpacity:Y,precision:_}=t,B=x===void 0?"":x,le=T===void 0?"":T,H=je===void 0?0:je,ce=be===void 0?0:be,r=te===void 0?!1:te,ae=xe===void 0?0:xe,ue=oe===void 0?0:oe,fe=V===void 0?!0:V,A=D===void 0?!0:D;let J;e[0]!==L?(J=L===void 0?[]:L,e[0]=L,e[1]=J):J=e[1];const Re=J,K=ve===void 0?!1:ve,G=Ce===void 0?!1:Ce,de=R===void 0?"en":R,C=S===void 0?0:S,O=De===void 0?"light":De,Q=Me===void 0?!0:Me,he=Y===void 0?.3:Y,Z=_===void 0?2:_,[i,a]=M.useState(0),[j,g]=M.useState(0),[p,z]=M.useState(void 0),E=M.useRef(null),f=M.useRef(null);let q,ee;e[2]===Symbol.for("react.memo_cache_sentinel")?(q=()=>{const Oe=new ResizeObserver(qe=>{a(qe[0].target.clientWidth||620),g(qe[0].target.clientHeight||480)});return E.current&&Oe.observe(E.current),()=>Oe.disconnect()},ee=[],e[2]=q,e[3]=ee):(q=e[2],ee=e[3]),M.useEffect(q,ee);const pe=c?.graphContainer,v=h?.graphContainer;let P;e[4]!==c?.description||e[5]!==c?.title||e[6]!==o||e[7]!==G||e[8]!==F||e[9]!==K||e[10]!==d||e[11]!==h?.description||e[12]!==h?.title||e[13]!==l?(P=d||F||K||G?n.jsxRuntimeExports.jsx(Ue.GraphHeader,{styles:{title:h?.title,description:h?.description},classNames:{title:c?.title,description:c?.description},graphTitle:d,graphDescription:F,width:l,graphDownload:K?f:void 0,dataDownload:G?o.map(xt).filter(mt).length>0?o.map(pt).filter(ht):o.filter(dt):null}):null,e[4]=c?.description,e[5]=c?.title,e[6]=o,e[7]=G,e[8]=F,e[9]=K,e[10]=d,e[11]=h?.description,e[12]=h?.title,e[13]=l,e[14]=P):P=e[14];let me;e[15]!==ue||e[16]!==c||e[17]!==w||e[18]!==k||e[19]!==u||e[20]!==o||e[21]!==re||e[22]!==he||e[23]!==N||e[24]!==Re||e[25]!==H||e[26]!==se||e[27]!==C||e[28]!==Ee||e[29]!==b||e[30]!==Z||e[31]!==le||e[32]!==ne||e[33]!==s||e[34]!==Q||e[35]!==ce||e[36]!==p||e[37]!==A||e[38]!==fe||e[39]!==X||e[40]!==y||e[41]!==h||e[42]!==B||e[43]!==j||e[44]!==i||e[45]!==O||e[46]!==ge||e[47]!==ae||e[48]!==l?(me=o.length===0?n.jsxRuntimeExports.jsx(Ye.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[A&&o.filter(ft).length!==0?n.jsxRuntimeExports.jsx(Xe.ColorLegendWithMouseOver,{width:l,colorLegendTitle:k,colors:u||ze.Colors[O].categoricalColors.colors,colorDomain:w||Ne.uniqBy(o,"color",!0),setSelectedColor:z,showNAColor:X??!0,isCenter:!0,className:c?.colorLegend}):null,n.jsxRuntimeExports.jsx(Ve.GraphArea,{ref:E,children:i&&j?n.jsxRuntimeExports.jsx(_e,{data:o,colors:o.filter(ut).length===0?u?[u]:[ze.Colors.primaryColors["blue-600"]]:u||ze.Colors[O].categoricalColors.colors,colorDomain:o.filter(at).length===0?[]:w||Ne.uniqBy(o,"color",!0),width:i,height:j,leftMargin:H,rightMargin:ce,topMargin:ae,bottomMargin:ue,showLabels:fe,showValues:y!==!1?o.filter(ct).length!==0:y,selectedColor:p,suffix:B,prefix:le,tooltip:ge,onSeriesMouseOver:b,highlightedDataPoints:Re,onSeriesMouseClick:Ee,theme:O,radius:ne||Math.min(l||i,N||(s?C?(l||i)*s>C?(l||i)*s:C:(l||i)*s:j))*(o.filter(lt).length===0?1:Math.max(...o.map(rt).filter(st)))/(o.filter(nt).length===0?o.length:Le.sum(o.filter(it).map(ot))*1.25),maxRadiusValue:se,resetSelectionOnDoubleClick:Q,detailsOnClick:re,styles:h,classNames:c,dimmedOpacity:he,precision:Z}):null})]}),e[15]=ue,e[16]=c,e[17]=w,e[18]=k,e[19]=u,e[20]=o,e[21]=re,e[22]=he,e[23]=N,e[24]=Re,e[25]=H,e[26]=se,e[27]=C,e[28]=Ee,e[29]=b,e[30]=Z,e[31]=le,e[32]=ne,e[33]=s,e[34]=Q,e[35]=ce,e[36]=p,e[37]=A,e[38]=fe,e[39]=X,e[40]=y,e[41]=h,e[42]=B,e[43]=j,e[44]=i,e[45]=O,e[46]=ge,e[47]=ae,e[48]=l,e[49]=me):me=e[49];let m;e[50]!==c?.footnote||e[51]!==c?.source||e[52]!==I||e[53]!==$||e[54]!==h?.footnote||e[55]!==h?.source||e[56]!==l?(m=$||I?n.jsxRuntimeExports.jsx(We.GraphFooter,{styles:{footnote:h?.footnote,source:h?.source},classNames:{footnote:c?.footnote,source:c?.source},sources:$,footNote:I,width:l}):null,e[50]=c?.footnote,e[51]=c?.source,e[52]=I,e[53]=$,e[54]=h?.footnote,e[55]=h?.source,e[56]=l,e[57]=m):m=e[57];let ye;return e[58]!==ie||e[59]!==r||e[60]!==U||e[61]!==N||e[62]!==de||e[63]!==C||e[64]!==W||e[65]!==s||e[66]!==pe||e[67]!==v||e[68]!==P||e[69]!==me||e[70]!==m||e[71]!==O||e[72]!==l?(ye=n.jsxRuntimeExports.jsxs(Ve.GraphContainer,{className:pe,style:v,id:U,ref:f,"aria-label":ie,backgroundColor:r,theme:O,language:de,minHeight:C,width:l,height:N,relativeHeight:s,padding:W,children:[P,me,m]}),e[58]=ie,e[59]=r,e[60]=U,e[61]=N,e[62]=de,e[63]=C,e[64]=W,e[65]=s,e[66]=pe,e[67]=v,e[68]=P,e[69]=me,e[70]=m,e[71]=O,e[72]=l,e[73]=ye):ye=e[73],ye}function ot(t){return t.size}function it(t){return t.size}function nt(t){return!ke.checkIfNullOrUndefined(t.size)}function st(t){return t!=null}function rt(t){return t.size}function lt(t){return!ke.checkIfNullOrUndefined(t.size)}function ct(t){return t.size}function at(t){return t.color}function ut(t){return t.color}function ft(t){return t.color}function dt(t){return t!==void 0}function ht(t){return t!==void 0}function pt(t){return t.data}function mt(t){return t!==void 0}function xt(t){return t.data}exports.CirclePackingGraph=tt;exports.extent=we;
|
|
2
|
-
//# sourceMappingURL=index-DoY3Ga3W.cjs.map
|