@undp/data-viz 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.js +281 -274
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +367 -356
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +406 -399
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +10 -0
- package/dist/DonutChart.js +232 -263
- package/dist/DonutChart.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
- package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
- package/dist/{GraphEl-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
- package/dist/GraphEl-oZwZiTHI.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +370 -363
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +328 -321
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +375 -368
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +385 -378
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +35 -34
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +176 -169
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +367 -360
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +286 -279
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +243 -236
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
- package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
- package/dist/area-C1gxfNGD.cjs +2 -0
- package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
- package/dist/array-DMyR1sql.cjs +2 -0
- package/dist/array-DMyR1sql.cjs.map +1 -0
- package/dist/array-USo-Szhp.js +13 -0
- package/dist/array-USo-Szhp.js.map +1 -0
- package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
- package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
- package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
- package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
- package/dist/index-Blvf-Q3U.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
- package/dist/index-D1RrKgK6.js +337 -0
- package/dist/index-D1RrKgK6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/line-DFlZsxI1.js +144 -0
- package/dist/line-DFlZsxI1.js.map +1 -0
- package/dist/line-DaEMhXmx.cjs +2 -0
- package/dist/line-DaEMhXmx.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-YKUlz-37.cjs +0 -2
- package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
- package/dist/GraphEl-sVZvlyWe.js.map +0 -1
- package/dist/area-D3Qx7k7K.cjs +0 -2
- package/dist/array-B7TkkRH0.js +0 -89
- package/dist/array-B7TkkRH0.js.map +0 -1
- package/dist/array-DKbXV8lR.cjs +0 -2
- package/dist/array-DKbXV8lR.cjs.map +0 -1
- package/dist/index-CF5hnGvG.cjs +0 -2
- package/dist/index-DPGq3eIL.js +0 -330
- package/dist/index-DPGq3eIL.js.map +0 -1
- package/dist/line-CPfhohvF.js +0 -68
- package/dist/line-CPfhohvF.js.map +0 -1
- package/dist/line-DHV4JwCR.cjs +0 -2
- package/dist/line-DHV4JwCR.cjs.map +0 -1
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { c as Ge, j as a, m as Te } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as Ne, useState as te, useEffect as We } from "react";
|
|
3
|
+
import { o as Fe } from "./index-BZQYSqar.js";
|
|
4
|
+
import { w as Xe } from "./Spinner-D7rnnwnA.js";
|
|
5
|
+
import { j as Be } from "./Typography-PxtFcnJb.js";
|
|
6
|
+
import { T as Ye } from "./Tooltip-Dj5eVppQ.js";
|
|
7
|
+
import { n as Ae } from "./numberFormattingFunction-14YCbkN2.js";
|
|
8
|
+
import { g as Pe } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
9
|
+
import { Colors as Ve } from "./Colors.js";
|
|
10
|
+
import { c as Ee } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
|
+
import { D as qe } from "./DetailsModal-0Ry5nXiC.js";
|
|
12
|
+
import { s as Ie } from "./pow-CM2aze4M.js";
|
|
13
|
+
import { f as Ue, b as Je, a as Ke, c as Qe, d as Ze } from "./y-BqfogMAB.js";
|
|
14
|
+
import { GraphFooter as _e } from "./GraphFooter.js";
|
|
15
|
+
import { GraphHeader as et } from "./GraphHeader.js";
|
|
16
|
+
import { ColorLegendWithMouseOver as tt } from "./ColorLegendWithMouseOver.js";
|
|
17
|
+
import { E as ot } from "./EmptyState-C7ZXkZWd.js";
|
|
18
|
+
import { u as He } from "./uniqBy-BHy4I8PK.js";
|
|
19
|
+
import { a as it, G as nt } from "./GraphContainer-CRqzdKu2.js";
|
|
20
|
+
function ze(o, e) {
|
|
21
|
+
let t, s;
|
|
22
|
+
if (e === void 0)
|
|
23
|
+
for (const n of o)
|
|
24
|
+
n != null && (t === void 0 ? n >= n && (t = s = n) : (t > n && (t = n), s < n && (s = n)));
|
|
25
|
+
else {
|
|
26
|
+
let n = -1;
|
|
27
|
+
for (let d of o)
|
|
28
|
+
(d = e(d, ++n, o)) != null && (t === void 0 ? d >= d && (t = s = d) : (t > d && (t = d), s < d && (s = d)));
|
|
29
|
+
}
|
|
30
|
+
return [t, s];
|
|
31
|
+
}
|
|
32
|
+
const lt = (o) => {
|
|
33
|
+
const e = Ge.c(105), {
|
|
34
|
+
data: t,
|
|
35
|
+
colors: s,
|
|
36
|
+
leftMargin: n,
|
|
37
|
+
width: d,
|
|
38
|
+
height: D,
|
|
39
|
+
colorDomain: k,
|
|
40
|
+
selectedColor: S,
|
|
41
|
+
rightMargin: x,
|
|
42
|
+
topMargin: oe,
|
|
43
|
+
bottomMargin: be,
|
|
44
|
+
showLabels: h,
|
|
45
|
+
tooltip: F,
|
|
46
|
+
onSeriesMouseOver: j,
|
|
47
|
+
showValues: $,
|
|
48
|
+
suffix: X,
|
|
49
|
+
prefix: ie,
|
|
50
|
+
highlightedDataPoints: ye,
|
|
51
|
+
onSeriesMouseClick: ne,
|
|
52
|
+
maxRadiusValue: L,
|
|
53
|
+
radius: c,
|
|
54
|
+
resetSelectionOnDoubleClick: Me,
|
|
55
|
+
detailsOnClick: z,
|
|
56
|
+
styles: V,
|
|
57
|
+
classNames: M,
|
|
58
|
+
dimmedOpacity: Y,
|
|
59
|
+
precision: R
|
|
60
|
+
} = o, we = Ne(null), [Ce, je] = te(void 0), [B, A] = te(void 0), [w, Se] = te(void 0), [le, se] = te(void 0), [re, Oe] = te(void 0), [ae, g] = te(null);
|
|
61
|
+
let r;
|
|
62
|
+
e[0] !== be || e[1] !== n || e[2] !== x || e[3] !== oe ? (r = {
|
|
63
|
+
top: oe,
|
|
64
|
+
bottom: be,
|
|
65
|
+
left: n,
|
|
66
|
+
right: x
|
|
67
|
+
}, e[0] = be, e[1] = n, e[2] = x, e[3] = oe, e[4] = r) : r = e[4];
|
|
68
|
+
const q = r, I = d - q.left - q.right, P = D - q.top - q.bottom;
|
|
69
|
+
let ce;
|
|
70
|
+
e[5] !== t ? (ce = t.filter(st).length === 0 ? t : Fe(t.filter(rt), "radius", "asc"), e[5] = t, e[6] = ce) : ce = e[6];
|
|
71
|
+
const H = ce;
|
|
72
|
+
let fe;
|
|
73
|
+
e[7] !== t || e[8] !== L || e[9] !== c ? (fe = t.filter(at).length !== t.length ? Ie().domain([0, Ee(L) ? Math.max(...t.map(ct).filter(ft)) : L]).range([0.25, c]).nice() : void 0, e[7] = t, e[8] = L, e[9] = c, e[10] = fe) : fe = e[10];
|
|
74
|
+
const l = fe;
|
|
75
|
+
let ue;
|
|
76
|
+
e[11] !== H || e[12] !== P || e[13] !== I || e[14] !== c || e[15] !== l ? (ue = () => {
|
|
77
|
+
(() => {
|
|
78
|
+
const f = H.map(ut);
|
|
79
|
+
Ue(f).force("y", Je((v) => P / 2).strength(1)).force("x", Ke((v) => I / 2).strength(1)).force("collide", Qe((v) => l ? l(v.size || 0) + 1 : c + 1)).force("charge", Ze().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
80
|
+
g(f);
|
|
81
|
+
}).on("end", () => {
|
|
82
|
+
g(f);
|
|
83
|
+
const v = ze(f, (u) => u.x - (l ? l(u.size || 0) + 1 : c + 1))[0] || 0, p = ze(f, (u) => u.y - (l ? l(u.size || 0) + 1 : c + 1))[0] || 0, N = ze(f, (u) => u.x + (l ? l(u.size || 0) + 1 : c + 1))[1] || 0, O = ze(f, (u) => u.y + (l ? l(u.size || 0) + 1 : c + 1))[1] || 0;
|
|
84
|
+
Se([v, p, v < 0 ? N - v : N, p < 0 ? O - p : O]);
|
|
85
|
+
});
|
|
86
|
+
})();
|
|
87
|
+
}, e[11] = H, e[12] = P, e[13] = I, e[14] = c, e[15] = l, e[16] = ue) : ue = e[16];
|
|
88
|
+
let de;
|
|
89
|
+
e[17] !== t || e[18] !== H || e[19] !== P || e[20] !== I || e[21] !== L || e[22] !== c || e[23] !== l ? (de = [t, c, P, I, L, H, l], e[17] = t, e[18] = H, e[19] = P, e[20] = I, e[21] = L, e[22] = c, e[23] = l, e[24] = de) : de = e[24], We(ue, de);
|
|
90
|
+
let me;
|
|
91
|
+
e[25] !== j ? (me = (i, f) => {
|
|
92
|
+
je(f), Oe(i.clientY), se(i.clientX), j?.(f);
|
|
93
|
+
}, e[25] = j, e[26] = me) : me = e[26];
|
|
94
|
+
const U = me;
|
|
95
|
+
let J;
|
|
96
|
+
e[27] === Symbol.for("react.memo_cache_sentinel") ? (J = (i, f) => {
|
|
97
|
+
je(f), Oe(i.clientY), se(i.clientX);
|
|
98
|
+
}, e[27] = J) : J = e[27];
|
|
99
|
+
const ke = J;
|
|
100
|
+
let K;
|
|
101
|
+
e[28] !== z || e[29] !== B || e[30] !== ne || e[31] !== Me ? (K = (i) => {
|
|
102
|
+
(ne || z) && (B === i.label && Me ? (A(void 0), ne?.(void 0)) : (A(i.label), ne?.(i)));
|
|
103
|
+
}, e[28] = z, e[29] = B, e[30] = ne, e[31] = Me, e[32] = K) : K = e[32];
|
|
104
|
+
const G = K;
|
|
105
|
+
let he;
|
|
106
|
+
e[33] !== j ? (he = () => {
|
|
107
|
+
je(void 0), se(void 0), Oe(void 0), j?.(void 0);
|
|
108
|
+
}, e[33] = j, e[34] = he) : he = e[34];
|
|
109
|
+
const Q = he;
|
|
110
|
+
let C;
|
|
111
|
+
e[35] !== k || e[36] !== s || e[37] !== t ? (C = (i) => t.filter(dt).length === 0 ? s[0] : i.color ? s[k.indexOf(i.color)] : Ve.gray, e[35] = k, e[36] = s, e[37] = t, e[38] = C) : C = e[38];
|
|
112
|
+
const Z = C;
|
|
113
|
+
let ge;
|
|
114
|
+
e[39] !== k || e[40] !== s || e[41] !== Y || e[42] !== ye || e[43] !== S ? (ge = (i) => S ? i.color && s[k.indexOf(i.color)] === S ? 1 : Y : ye.length !== 0 ? ye.indexOf(i.label) !== -1 ? 0.85 : Y : 0.85, e[39] = k, e[40] = s, e[41] = Y, e[42] = ye, e[43] = S, e[44] = ge) : ge = e[44];
|
|
115
|
+
const _ = ge;
|
|
116
|
+
if (!ae) {
|
|
117
|
+
const i = `${d}px`, f = `${D}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__ */ a.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ a.jsx(Xe, {}) }), e[48] = v) : v = e[48];
|
|
125
|
+
let p;
|
|
126
|
+
return e[49] !== y ? (p = /* @__PURE__ */ a.jsx("div", { style: y, children: v }), e[49] = y, e[50] = p) : p = e[50], p;
|
|
127
|
+
}
|
|
128
|
+
if (w) {
|
|
129
|
+
const i = `${d}px`, f = `${D}px`, y = `${w[0] > 0 ? 0 : w[0]} ${w[1] > 0 ? 0 : w[1]} ${d < w[2] ? w[2] : d} ${D < w[3] ? w[3] : D}`, v = `translate(${q.left},${q.top})`;
|
|
130
|
+
let p;
|
|
131
|
+
if (e[51] !== M?.graphObjectValues || e[52] !== ae || e[53] !== Z || e[54] !== _ || e[55] !== G || e[56] !== U || e[57] !== Q || e[58] !== R || e[59] !== ie || e[60] !== c || e[61] !== l || e[62] !== h || e[63] !== $ || e[64] !== V?.graphObjectValues || e[65] !== X) {
|
|
132
|
+
let pe;
|
|
133
|
+
e[67] !== M?.graphObjectValues || e[68] !== Z || e[69] !== _ || e[70] !== G || e[71] !== U || e[72] !== Q || e[73] !== R || e[74] !== ie || e[75] !== c || e[76] !== l || e[77] !== h || e[78] !== $ || e[79] !== V?.graphObjectValues || e[80] !== X ? (pe = (b) => {
|
|
134
|
+
const W = Z(b), xe = _(b), m = l ? l(b.size || 0) : c, ve = m > 20 && (h || $);
|
|
135
|
+
return /* @__PURE__ */ a.jsxs("g", { className: "undp-viz-g-with-hover", opacity: xe, transform: `translate(${b.x},${b.y})`, onMouseEnter: (T) => U(T, b), onMouseMove: (T) => ke(T, b), onClick: () => G(b), onMouseLeave: Q, children: [
|
|
136
|
+
/* @__PURE__ */ a.jsx("circle", { cx: 0, cy: 0, r: m, fill: W }),
|
|
137
|
+
(ve || $) && b.size !== void 0 && b.size !== null && m >= 15 && /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("foreignObject", { y: 0 - m, x: 0 - m, width: 2 * m, height: 2 * m, children: /* @__PURE__ */ a.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
|
+
h && /* @__PURE__ */ a.jsx(Be, { className: Te("text-center leading-[1.25] overflow-hidden m-0 circle-packing-label", M?.graphObjectValues), marginBottom: "none", style: {
|
|
146
|
+
fontSize: `${Math.min(Math.max(Math.round(m / 4), 12), Math.max(Math.round(m * 12 / `${b.label}`.length), 12), 14)}px`,
|
|
147
|
+
WebkitLineClamp: m * 2 < 60 ? 1 : m * 2 < 75 ? 2 : m * 2 < 100 ? 3 : void 0,
|
|
148
|
+
display: "-webkit-box",
|
|
149
|
+
WebkitBoxOrient: "vertical",
|
|
150
|
+
color: Pe(W),
|
|
151
|
+
hyphens: "auto",
|
|
152
|
+
...V?.graphObjectValues || {}
|
|
153
|
+
}, children: b.label }),
|
|
154
|
+
$ && /* @__PURE__ */ a.jsx(Be, { className: "text-center font-bold leading-[1.25] w-full m-0 circle-packing-value", marginBottom: "none", style: {
|
|
155
|
+
fontSize: `${Math.min(Math.max(Math.round(m / 4), 14), 14)}px`,
|
|
156
|
+
color: Pe(W)
|
|
157
|
+
}, children: Ae(b.size, "NA", R, ie, X) })
|
|
158
|
+
] }) }) })
|
|
159
|
+
] }, b.label);
|
|
160
|
+
}, e[67] = M?.graphObjectValues, e[68] = Z, e[69] = _, e[70] = G, e[71] = U, e[72] = Q, e[73] = R, e[74] = ie, e[75] = c, e[76] = l, e[77] = h, e[78] = $, e[79] = V?.graphObjectValues, e[80] = X, e[81] = pe) : pe = e[81], p = ae.map(pe), e[51] = M?.graphObjectValues, e[52] = ae, e[53] = Z, e[54] = _, e[55] = G, e[56] = U, e[57] = Q, e[58] = R, e[59] = ie, e[60] = c, e[61] = l, e[62] = h, e[63] = $, e[64] = V?.graphObjectValues, e[65] = X, e[66] = p;
|
|
161
|
+
} else
|
|
162
|
+
p = e[66];
|
|
163
|
+
let N;
|
|
164
|
+
e[82] !== v || e[83] !== p ? (N = /* @__PURE__ */ a.jsx("g", { transform: v, children: p }), e[82] = v, e[83] = p, e[84] = N) : N = e[84];
|
|
165
|
+
let O;
|
|
166
|
+
e[85] !== i || e[86] !== f || e[87] !== y || e[88] !== N ? (O = /* @__PURE__ */ a.jsx("svg", { width: i, height: f, viewBox: y, direction: "ltr", ref: we, children: N }), e[85] = i, e[86] = f, e[87] = y, e[88] = N, e[89] = O) : O = e[89];
|
|
167
|
+
let u;
|
|
168
|
+
e[90] !== M?.tooltip || e[91] !== le || e[92] !== re || e[93] !== Ce || e[94] !== V?.tooltip || e[95] !== F ? (u = Ce && F && le && re && /* @__PURE__ */ a.jsx(Ye, { data: Ce, body: F, xPos: le, yPos: re, backgroundStyle: V?.tooltip, className: M?.tooltip }), e[90] = M?.tooltip, e[91] = le, e[92] = re, e[93] = Ce, e[94] = V?.tooltip, e[95] = F, e[96] = u) : u = e[96];
|
|
169
|
+
let E;
|
|
170
|
+
e[97] !== M?.modal || e[98] !== z || e[99] !== B ? (E = z && B !== void 0 ? /* @__PURE__ */ a.jsx(qe, { body: z, data: B, setData: A, className: M?.modal }) : null, e[97] = M?.modal, e[98] = z, e[99] = B, e[100] = E) : E = e[100];
|
|
171
|
+
let ee;
|
|
172
|
+
return e[101] !== O || e[102] !== u || e[103] !== E ? (ee = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
173
|
+
O,
|
|
174
|
+
u,
|
|
175
|
+
E
|
|
176
|
+
] }), e[101] = O, e[102] = u, e[103] = E, e[104] = ee) : ee = e[104], ee;
|
|
177
|
+
}
|
|
178
|
+
return null;
|
|
179
|
+
};
|
|
180
|
+
function st(o) {
|
|
181
|
+
return !Ee(o.size);
|
|
182
|
+
}
|
|
183
|
+
function rt(o) {
|
|
184
|
+
return !Ee(o.size);
|
|
185
|
+
}
|
|
186
|
+
function at(o) {
|
|
187
|
+
return o.size === void 0 || o.size === null;
|
|
188
|
+
}
|
|
189
|
+
function ct(o) {
|
|
190
|
+
return o.size;
|
|
191
|
+
}
|
|
192
|
+
function ft(o) {
|
|
193
|
+
return o != null;
|
|
194
|
+
}
|
|
195
|
+
function ut(o) {
|
|
196
|
+
return {
|
|
197
|
+
...o,
|
|
198
|
+
...o.data && {
|
|
199
|
+
data: {
|
|
200
|
+
...o.data
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
function dt(o) {
|
|
206
|
+
return o.color;
|
|
207
|
+
}
|
|
208
|
+
function mt(o, e, t) {
|
|
209
|
+
const s = o.filter((x) => x != null), n = Math.min(e, t) / 2, d = s.reduce((x, oe) => x + oe, 0), D = Math.max(...s), k = (x) => x <= 5 ? 0.9 : x <= 10 ? 0.85 : x <= 20 ? 0.8 : 0.7, S = (x) => x <= 200 ? 0.85 : x <= 250 ? 0.95 : 1;
|
|
210
|
+
return n * Math.sqrt(D / d) * S(n) * k(s.length);
|
|
211
|
+
}
|
|
212
|
+
function Xt(o) {
|
|
213
|
+
const e = Ge.c(83), {
|
|
214
|
+
data: t,
|
|
215
|
+
graphTitle: s,
|
|
216
|
+
colors: n,
|
|
217
|
+
suffix: d,
|
|
218
|
+
sources: D,
|
|
219
|
+
prefix: k,
|
|
220
|
+
graphDescription: S,
|
|
221
|
+
leftMargin: x,
|
|
222
|
+
rightMargin: oe,
|
|
223
|
+
height: be,
|
|
224
|
+
width: h,
|
|
225
|
+
footNote: F,
|
|
226
|
+
colorDomain: j,
|
|
227
|
+
colorLegendTitle: $,
|
|
228
|
+
padding: X,
|
|
229
|
+
backgroundColor: ie,
|
|
230
|
+
topMargin: ye,
|
|
231
|
+
bottomMargin: ne,
|
|
232
|
+
showLabels: L,
|
|
233
|
+
relativeHeight: c,
|
|
234
|
+
tooltip: Me,
|
|
235
|
+
onSeriesMouseOver: z,
|
|
236
|
+
showColorScale: V,
|
|
237
|
+
showValues: M,
|
|
238
|
+
graphID: Y,
|
|
239
|
+
highlightedDataPoints: R,
|
|
240
|
+
onSeriesMouseClick: we,
|
|
241
|
+
graphDownload: Ce,
|
|
242
|
+
dataDownload: je,
|
|
243
|
+
language: B,
|
|
244
|
+
showNAColor: A,
|
|
245
|
+
minHeight: w,
|
|
246
|
+
theme: Se,
|
|
247
|
+
ariaLabel: le,
|
|
248
|
+
radius: se,
|
|
249
|
+
maxRadiusValue: re,
|
|
250
|
+
resetSelectionOnDoubleClick: Oe,
|
|
251
|
+
detailsOnClick: ae,
|
|
252
|
+
styles: g,
|
|
253
|
+
classNames: r,
|
|
254
|
+
dimmedOpacity: q,
|
|
255
|
+
precision: I
|
|
256
|
+
} = o, P = d === void 0 ? "" : d, ce = k === void 0 ? "" : k, H = x === void 0 ? 0 : x, fe = oe === void 0 ? 0 : oe, l = ie === void 0 ? !1 : ie, ue = ye === void 0 ? 0 : ye, de = ne === void 0 ? 0 : ne, me = L === void 0 ? !0 : L, U = V === void 0 ? !0 : V;
|
|
257
|
+
let J;
|
|
258
|
+
e[0] !== R ? (J = R === void 0 ? [] : R, e[0] = R, e[1] = J) : J = e[1];
|
|
259
|
+
const ke = J, K = Ce === void 0 ? !1 : Ce, G = je === void 0 ? !1 : je, he = B === void 0 ? "en" : B, Q = w === void 0 ? 0 : w, C = Se === void 0 ? "light" : Se, Z = Oe === void 0 ? !0 : Oe, ge = q === void 0 ? 0.3 : q, _ = I === void 0 ? 2 : I, [i, f] = te(0), [y, v] = te(0), [p, N] = te(void 0), O = Ne(null), u = Ne(null);
|
|
260
|
+
let E, ee;
|
|
261
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
262
|
+
const Le = new ResizeObserver((Re) => {
|
|
263
|
+
f(Re[0].target.clientWidth || 620), v(Re[0].target.clientHeight || 480);
|
|
264
|
+
});
|
|
265
|
+
return O.current && Le.observe(O.current), () => Le.disconnect();
|
|
266
|
+
}, ee = [], e[2] = E, e[3] = ee) : (E = e[2], ee = e[3]), We(E, ee);
|
|
267
|
+
const pe = r?.graphContainer, b = g?.graphContainer;
|
|
268
|
+
let W;
|
|
269
|
+
e[4] !== r?.description || e[5] !== r?.title || e[6] !== t || e[7] !== G || e[8] !== S || e[9] !== K || e[10] !== s || e[11] !== g?.description || e[12] !== g?.title || e[13] !== h ? (W = s || S || K || G ? /* @__PURE__ */ a.jsx(et, { styles: {
|
|
270
|
+
title: g?.title,
|
|
271
|
+
description: g?.description
|
|
272
|
+
}, classNames: {
|
|
273
|
+
title: r?.title,
|
|
274
|
+
description: r?.description
|
|
275
|
+
}, graphTitle: s, graphDescription: S, width: h, graphDownload: K ? u : void 0, dataDownload: G ? t.map(jt).filter(Ct).length > 0 ? t.map(Mt).filter(yt) : t.filter(bt) : null }) : null, e[4] = r?.description, e[5] = r?.title, e[6] = t, e[7] = G, e[8] = S, e[9] = K, e[10] = s, e[11] = g?.description, e[12] = g?.title, e[13] = h, e[14] = W) : W = e[14];
|
|
276
|
+
let xe;
|
|
277
|
+
e[15] !== r?.colorLegend || e[16] !== j || e[17] !== $ || e[18] !== n || e[19] !== t || e[20] !== U || e[21] !== A || e[22] !== C || e[23] !== h ? (xe = U && t.filter(vt).length !== 0 && t.length > 0 ? /* @__PURE__ */ a.jsx(tt, { width: h, colorLegendTitle: $, colors: n || Ve[C].categoricalColors.colors, colorDomain: j || He(t, "color", !0), setSelectedColor: N, showNAColor: A ?? !0, isCenter: !0, className: r?.colorLegend }) : null, e[15] = r?.colorLegend, e[16] = j, e[17] = $, e[18] = n, e[19] = t, e[20] = U, e[21] = A, e[22] = C, e[23] = h, e[24] = xe) : xe = e[24];
|
|
278
|
+
let m;
|
|
279
|
+
e[25] !== t.length ? (m = t.length === 0 && /* @__PURE__ */ a.jsx(ot, {}), e[25] = t.length, e[26] = m) : m = e[26];
|
|
280
|
+
let ve;
|
|
281
|
+
e[27] !== de || e[28] !== r || e[29] !== j || e[30] !== n || e[31] !== t || e[32] !== ae || e[33] !== ge || e[34] !== ke || e[35] !== H || e[36] !== re || e[37] !== we || e[38] !== z || e[39] !== _ || e[40] !== ce || e[41] !== se || e[42] !== Z || e[43] !== fe || e[44] !== p || e[45] !== me || e[46] !== M || e[47] !== g || e[48] !== P || e[49] !== y || e[50] !== i || e[51] !== C || e[52] !== Me || e[53] !== ue ? (ve = i && y && t.length > 0 ? /* @__PURE__ */ a.jsx(lt, { data: t, colors: t.filter(xt).length === 0 ? n ? [n] : [Ve.primaryColors["blue-600"]] : n || Ve[C].categoricalColors.colors, colorDomain: t.filter(pt).length === 0 ? [] : j || He(t, "color", !0), width: i, height: y, leftMargin: H, rightMargin: fe, topMargin: ue, bottomMargin: de, showLabels: me, showValues: M !== !1 ? t.filter(gt).length !== 0 : M, selectedColor: p, suffix: P, prefix: ce, tooltip: Me, onSeriesMouseOver: z, highlightedDataPoints: ke, onSeriesMouseClick: we, theme: C, radius: se || mt(t.map(ht), i, y), maxRadiusValue: re, resetSelectionOnDoubleClick: Z, detailsOnClick: ae, styles: g, classNames: r, dimmedOpacity: ge, precision: _ }) : null, e[27] = de, e[28] = r, e[29] = j, e[30] = n, e[31] = t, e[32] = ae, e[33] = ge, e[34] = ke, e[35] = H, e[36] = re, e[37] = we, e[38] = z, e[39] = _, e[40] = ce, e[41] = se, e[42] = Z, e[43] = fe, e[44] = p, e[45] = me, e[46] = M, e[47] = g, e[48] = P, e[49] = y, e[50] = i, e[51] = C, e[52] = Me, e[53] = ue, e[54] = ve) : ve = e[54];
|
|
282
|
+
let T;
|
|
283
|
+
e[55] !== m || e[56] !== ve ? (T = /* @__PURE__ */ a.jsxs(it, { ref: O, children: [
|
|
284
|
+
m,
|
|
285
|
+
ve
|
|
286
|
+
] }), e[55] = m, e[56] = ve, e[57] = T) : T = e[57];
|
|
287
|
+
let De;
|
|
288
|
+
e[58] !== r?.footnote || e[59] !== r?.source || e[60] !== F || e[61] !== D || e[62] !== g?.footnote || e[63] !== g?.source || e[64] !== h ? (De = D || F ? /* @__PURE__ */ a.jsx(_e, { styles: {
|
|
289
|
+
footnote: g?.footnote,
|
|
290
|
+
source: g?.source
|
|
291
|
+
}, classNames: {
|
|
292
|
+
footnote: r?.footnote,
|
|
293
|
+
source: r?.source
|
|
294
|
+
}, sources: D, footNote: F, width: h }) : null, e[58] = r?.footnote, e[59] = r?.source, e[60] = F, e[61] = D, e[62] = g?.footnote, e[63] = g?.source, e[64] = h, e[65] = De) : De = e[65];
|
|
295
|
+
let $e;
|
|
296
|
+
return e[66] !== le || e[67] !== l || e[68] !== Y || e[69] !== be || e[70] !== he || e[71] !== Q || e[72] !== X || e[73] !== c || e[74] !== pe || e[75] !== b || e[76] !== W || e[77] !== xe || e[78] !== T || e[79] !== De || e[80] !== C || e[81] !== h ? ($e = /* @__PURE__ */ a.jsxs(nt, { className: pe, style: b, id: Y, ref: u, "aria-label": le, backgroundColor: l, theme: C, language: he, minHeight: Q, width: h, height: be, relativeHeight: c, padding: X, children: [
|
|
297
|
+
W,
|
|
298
|
+
xe,
|
|
299
|
+
T,
|
|
300
|
+
De
|
|
301
|
+
] }), e[66] = le, e[67] = l, e[68] = Y, e[69] = be, e[70] = he, e[71] = Q, e[72] = X, e[73] = c, e[74] = pe, e[75] = b, e[76] = W, e[77] = xe, e[78] = T, e[79] = De, e[80] = C, e[81] = h, e[82] = $e) : $e = e[82], $e;
|
|
302
|
+
}
|
|
303
|
+
function ht(o) {
|
|
304
|
+
return o.size;
|
|
305
|
+
}
|
|
306
|
+
function gt(o) {
|
|
307
|
+
return o.size;
|
|
308
|
+
}
|
|
309
|
+
function pt(o) {
|
|
310
|
+
return o.color;
|
|
311
|
+
}
|
|
312
|
+
function xt(o) {
|
|
313
|
+
return o.color;
|
|
314
|
+
}
|
|
315
|
+
function vt(o) {
|
|
316
|
+
return o.color;
|
|
317
|
+
}
|
|
318
|
+
function bt(o) {
|
|
319
|
+
return o !== void 0;
|
|
320
|
+
}
|
|
321
|
+
function yt(o) {
|
|
322
|
+
return o !== void 0;
|
|
323
|
+
}
|
|
324
|
+
function Mt(o) {
|
|
325
|
+
return o.data;
|
|
326
|
+
}
|
|
327
|
+
function Ct(o) {
|
|
328
|
+
return o !== void 0;
|
|
329
|
+
}
|
|
330
|
+
function jt(o) {
|
|
331
|
+
return o.data;
|
|
332
|
+
}
|
|
333
|
+
export {
|
|
334
|
+
Xt as C,
|
|
335
|
+
ze as e
|
|
336
|
+
};
|
|
337
|
+
//# sourceMappingURL=index-D1RrKgK6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-D1RrKgK6.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 { cn } from '@undp/design-system-react/cn';\r\nimport { Spinner } from '@undp/design-system-react/Spinner';\r\nimport { P } from '@undp/design-system-react/Typography';\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 { DetailsModal } from '@/Components/Elements/DetailsModal';\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 marginBottom='none'\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 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 marginBottom='none'\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 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 <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\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 {showColorScale && data.filter(el => el.color).length !== 0 && data.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 {data.length === 0 && <EmptyState />}\r\n {svgWidth && svgHeight && data.length > 0 ? (\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 {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","P","cn","fontSize","round","WebkitLineClamp","WebkitBoxOrient","getTextColorBasedOnBgColor","hyphens","numberFormattingFunction","t17","t18","Tooltip","t19","modal","DetailsModal","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","colorLegend","ColorLegendWithMouseOver","categoricalColors","uniqBy","t25","EmptyState","t26","primaryColors","_temp8","_temp9","_temp0","t27","GraphArea","t28","footnote","source","GraphFooter","t29","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,cAAA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IACQ+L,gBAAAA,GACP5C,SAAAA,GAERyE,UAAAA;AAAAA,IAAAA;AAAAA,IAuBAI;AAAAA,IAYDY;AAAAA,IAwDCE;AAAAA,EAAAA,GAYH,GAAiBpP,QAAA8M,IAAA9M,QAAAoM,GAAApM,QAAAuM,GAAAvM,QAAAM,IAAAN,QAAA0M,IAAA1M,QAAA4M,GAAA5M,QAAAyJ,GAAAzJ,QAAAqM,GAAArM,QAAA+N,IAAA/N,QAAAiO,GAAAjO,QAAAkO,GAAAlO,QAAAsO,IAAAtO,QAAAkP,GAAAlP,QAAAoP,IAAApP,QAAA6M,GAAA7M,QAAAK,GAAAL,QAAAwP,MAAAA,KAAAxP,EAAA,EAAA,GAtHjBwP;AAsHiB;AAnLd,SAAAP,GAAAlE,GAAA;AAAA,SAuJ2B1F,EAACC;AAAK;AAvJjC,SAAA0J,GAAAU,GAAA;AAAA,SAyI6B1E,EAAE1F;AAAK;AAzIpC,SAAAyJ,GAAAY,GAAA;AAAA,SA4HyB3E,EAAEpD;AAAM;AA5HjC,SAAAD,GAAAiI,GAAA;AAAA,SAqHyB5E,EAAEpD;AAAM;AArHjC,SAAAlD,GAAAsG,GAAA;AAAA,SAmGoCA,EAAEpD;AAAM;AAnG5C,SAAAzD,GAAA0G,GAAA;AAAA,SA8F4BxF,MAAMpD;AAAS;AA9F3C,SAAAiC,GAAAyG,GAAA;AAAA,SA6F6CtF,MAAMpD;AAAS;AA7F5D,SAAA2B,GAAAyB,GAAA;AAAA,SA6FyBA,EAACnF;AAAK;AA7F/B,SAAAuD,GAAAmH,GAAA;AAAA,SA4F2CvF,MAAMpD;AAAS;AA5F1D,SAAAqB,GAAAwH,GAAA;AAAA,SA4FuBzF,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-Blvf-Q3U.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"),p=require("./MultiLineChart.cjs"),g=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("./HybridMap.cjs"),b=require("./ThreeDGlobe.cjs"),f=require("./GeoHubMap.cjs"),F=require("./GeoHubCompareMaps.cjs"),M=require("./GeoHubMapWithLayerSelection.cjs"),L=require("./ScatterPlot.cjs"),B=require("./SlopeChart.cjs"),T=require("./BulletChart.cjs"),v=require("./AreaChart.cjs"),P=require("./BasicStatCard.cjs"),y=require("./StatCardFromData.cjs"),H=require("./TreeMapGraph.cjs"),A=require("./UnitChart.cjs"),O=require("./HeatMap.cjs"),w=require("./DataTable.cjs"),I=require("./DataCards.cjs"),k=require("./StripChart.cjs"),W=require("./ParetoChart.cjs"),x=require("./ButterflyChart.cjs"),N=require("./Histogram.cjs"),V=require("./SankeyChart.cjs"),J=require("./RadarChart.cjs"),U=require("./MultiGraphDashboard.cjs"),E=require("./PerformanceIntensiveMultiGraphDashboard.cjs"),R=require("./MultiGraphDashboardWideToLongFormat.cjs"),Q=require("./SingleGraphDashboard.cjs"),j=require("./SingleGraphDashboardGeoHubMaps.cjs"),z=require("./SingleGraphDashboardThreeDGraphs.cjs"),K=require("./GriddedGraphs.cjs"),X=require("./ScrollStory.cjs"),Y=require("./PerformanceIntensiveScrollStory.cjs"),Z=require("./MultiGraphDashboardFromConfig.cjs"),_=require("./PerformanceIntensiveMultiGraphDashboardFromConfig.cjs"),$=require("./MultiGraphDashboardWideToLongFormatFromConfig.cjs"),ee=require("./SingleGraphDashboardFromConfig.cjs"),re=require("./SingleGraphDashboardGeoHubMapsFromConfig.cjs"),ae=require("./SingleGraphDashboardThreeDGraphsFromConfig.cjs"),te=require("./GriddedGraphsFromConfig.cjs"),oe=require("./ExcelDownloadButton.cjs"),ne=require("./ImageDownloadButton.cjs"),ie=require("./SVGDownloadButton.cjs"),he=require("./CsvDownloadButton.cjs"),se=require("./CopyTextButton.cjs"),le=require("./Colors.cjs"),ce=require("./ColorLegend.cjs"),ue=require("./ColorLegendWithMouseOver.cjs"),de=require("./LinearColorLegend.cjs"),pe=require("./ThresholdColorLegendWithMouseOver.cjs"),ge=require("./GraphFooter.cjs"),Ce=require("./GraphHeader.cjs"),me=require("./FootNote.cjs"),Se=require("./GraphDescription.cjs"),De=require("./GraphTitle.cjs"),Ge=require("./Source-DYMJRrsq.cjs"),qe=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),a=require("./removeOutliers-WELHHqiI.cjs"),be=require("./numberFormattingFunction-02t-wJta.cjs"),fe=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),Fe=require("./getJenks-GYmdwBqm.cjs"),Me=require("./imageDownload-NYXbvKob.cjs"),Le=require("./svgDownload-D9zEGjTF.cjs"),Be=require("./excelDownload-BQpsCa62.cjs"),Te=require("./getUniqValue-NX8DgwND.cjs"),ve=require("./getCentroidCoordinates-Dng1HVjO.cjs"),r=require("./fetchAndParseData-l5HGMAEs.cjs"),n=require("./transformDataForAggregation-CYoB5Xsk.cjs"),Pe=require("./transformDataForGraphFromFile-CuXxR8uA.cjs"),o=require("./validateSchema.cjs"),e=require("./getSchema.cjs"),ye=require("./getGraphList-CA17dvFB.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=p.MultiLineChart;exports.MultiLineAltChart=g.MultiLineAltChart;exports.DifferenceLineChart=C.DifferenceLineChart;exports.SparkLine=m.SparkLine;exports.BiVariateChoroplethMap=S.BiVariateChoroplethMap;exports.ChoroplethMap=D.ChoroplethMap;exports.DotDensityMap=G.DotDensityMap;exports.HybridMap=q.HybridMap;exports.ThreeDGlobe=b.ThreeDGlobe;exports.GeoHubMap=f.GeoHubMap;exports.GeoHubCompareMaps=F.GeoHubCompareMaps;exports.GeoHubMapWithLayerSelection=M.GeoHubMapWithLayerSelection;exports.ScatterPlot=L.ScatterPlot;exports.SlopeChart=B.SlopeChart;exports.BulletChart=T.BulletChart;exports.AreaChart=v.AreaChart;exports.BasicStatCard=P.BasicStatCard;exports.StatCardFromData=y.StatCardFromData;exports.TreeMapGraph=H.TreeMapGraph;exports.UnitChart=A.UnitChart;exports.HeatMap=O.HeatMap;exports.DataTable=w.DataTable;exports.DataCards=I.DataCards;exports.StripChart=k.StripChart;exports.ParetoChart=W.ParetoChart;exports.ButterflyChart=x.ButterflyChart;exports.Histogram=N.Histogram;exports.SankeyChart=V.SankeyChart;exports.RadarChart=J.RadarChart;exports.MultiGraphDashboard=U.MultiGraphDashboard;exports.PerformanceIntensiveMultiGraphDashboard=E.PerformanceIntensiveMultiGraphDashboard;exports.MultiGraphDashboardWideToLongFormat=R.MultiGraphDashboardWideToLongFormat;exports.SingleGraphDashboard=Q.SingleGraphDashboard;exports.SingleGraphDashboardGeoHubMaps=j.SingleGraphDashboardGeoHubMaps;exports.SingleGraphDashboardThreeDGraphs=z.SingleGraphDashboardThreeDGraphs;exports.GriddedGraphs=K.GriddedGraphs;exports.ScrollStory=X.ScrollStory;exports.PerformanceIntensiveScrollStory=Y.PerformanceIntensiveScrollStory;exports.MultiGraphDashboardFromConfig=Z.MultiGraphDashboardFromConfig;exports.PerformanceIntensiveMultiGraphDashboardFromConfig=_.PerformanceIntensiveMultiGraphDashboardFromConfig;exports.MultiGraphDashboardWideToLongFormatFromConfig=$.MultiGraphDashboardWideToLongFormatFromConfig;exports.SingleGraphDashboardFromConfig=ee.SingleGraphDashboardFromConfig;exports.SingleGraphDashboardGeoHubMapsFromConfig=re.SingleGraphDashboardGeoHubMapsFromConfig;exports.SingleGraphDashboardThreeDGraphsFromConfig=ae.SingleGraphDashboardThreeDGraphsFromConfig;exports.GriddedGraphsFromConfig=te.GriddedGraphsFromConfig;exports.ExcelDownloadButton=oe.ExcelDownloadButton;exports.ImageDownloadButton=ne.ImageDownloadButton;exports.SVGDownloadButton=ie.SVGDownloadButton;exports.CsvDownloadButton=he.CsvDownloadButton;exports.CopyTextButton=se.CopyTextButton;exports.Colors=le.Colors;exports.ColorLegend=ce.ColorLegend;exports.ColorLegendWithMouseOver=ue.ColorLegendWithMouseOver;exports.LinearColorLegend=de.LinearColorLegend;exports.ThresholdColorLegendWithMouseOver=pe.ThresholdColorLegendWithMouseOver;exports.GraphFooter=ge.GraphFooter;exports.GraphHeader=Ce.GraphHeader;exports.FootNote=me.FootNote;exports.GraphDescription=Se.GraphDescription;exports.GraphTitle=De.GraphTitle;exports.Source=Ge.Source;exports.checkIfNullOrUndefined=qe.checkIfNullOrUndefined;exports.generateEmbedLink=a.generateEmbedLink;exports.generateIframeCode=a.generateIframeCode;exports.getPercentileValue=a.getPercentileValue;exports.getQueryParamsFromLink=a.getQueryParamsFromLink;exports.removeOutliers=a.removeOutliers;exports.numberFormattingFunction=be.numberFormattingFunction;exports.getTextColorBasedOnBgColor=fe.getTextColorBasedOnBgColor;exports.getJenks=Fe.getJenks;exports.imageDownload=Me.imageDownload;exports.svgDownload=Le.svgDownload;exports.excelDownload=Be.excelDownload;exports.getUniqValue=Te.getUniqValue;exports.getCentroidCoordinates=ve.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=Pe.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=ye.graphList;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.ts
CHANGED
|
@@ -4325,6 +4325,7 @@ declare interface GraphSettingsDataType {
|
|
|
4325
4325
|
dotBorderColor?: string;
|
|
4326
4326
|
mapColorLegendTitle?: string;
|
|
4327
4327
|
choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
|
|
4328
|
+
trackColor?: string;
|
|
4328
4329
|
}
|
|
4329
4330
|
|
|
4330
4331
|
export declare function GraphTitle(props: Props_67): JSX.Element | null;
|
|
@@ -4764,6 +4765,8 @@ declare interface Props {
|
|
|
4764
4765
|
barAxisTitle?: string;
|
|
4765
4766
|
/** Sorting order for data. This is overwritten by labelOrder prop. */
|
|
4766
4767
|
sortData?: 'asc' | 'desc';
|
|
4768
|
+
/** Track color (i.e. the color of the bars background) of the bar chart */
|
|
4769
|
+
trackColor?: string;
|
|
4767
4770
|
/** Toggles if data point which are undefined or has value null are filtered out. */
|
|
4768
4771
|
filterNA?: boolean;
|
|
4769
4772
|
/** Toggles if the graph animates in when loaded. */
|
|
@@ -6652,6 +6655,8 @@ declare interface Props_3 {
|
|
|
6652
6655
|
strokeWidth?: number;
|
|
6653
6656
|
/** Sorting order for data. This is overwritten by labelOrder prop */
|
|
6654
6657
|
sortData?: 'asc' | 'desc';
|
|
6658
|
+
/** Toggles if the graph animates in when loaded. */
|
|
6659
|
+
animate?: boolean | AnimateDataType;
|
|
6655
6660
|
/** Large text at the center of the donut chart. If the type is an object then the text is the value in the data for the label mentioned in the object */
|
|
6656
6661
|
mainText?: string | {
|
|
6657
6662
|
label: string;
|
|
@@ -6662,6 +6667,8 @@ declare interface Props_3 {
|
|
|
6662
6667
|
subNote?: string;
|
|
6663
6668
|
/** Specifies the number of decimal places to display in the value. */
|
|
6664
6669
|
precision?: number;
|
|
6670
|
+
/** Track color (i.e. the color of the donut chart's background) of the donut chart */
|
|
6671
|
+
trackColor?: string;
|
|
6665
6672
|
/** Enable graph download option as png */
|
|
6666
6673
|
graphDownload?: boolean;
|
|
6667
6674
|
/** Enable data download option as a csv */
|
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-D1RrKgK6.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";
|