@undp/data-viz 2.2.2 → 2.2.3
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.js +1 -1
- package/dist/Axis-D56Gy0se.js +31 -0
- package/dist/Axis-D56Gy0se.js.map +1 -0
- package/dist/Axis-Jt_tmhxS.cjs +2 -0
- package/dist/Axis-Jt_tmhxS.cjs.map +1 -0
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +6 -0
- package/dist/BarGraph.js +1759 -1750
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +2 -0
- package/dist/BeeSwarmChart.js +270 -267
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +2 -0
- package/dist/BulletChart.js +544 -542
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +2 -0
- package/dist/ButterflyChart.js +332 -330
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +537 -536
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GraphEl-BZbunD1_.cjs +2 -0
- package/dist/GraphEl-BZbunD1_.cjs.map +1 -0
- package/dist/{GraphEl-DcNr5JzH.js → GraphEl-C1Rz1V__.js} +60 -51
- package/dist/GraphEl-C1Rz1V__.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/Histogram.cjs +1 -1
- package/dist/Histogram.cjs.map +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +50 -49
- package/dist/Histogram.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +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.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +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/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +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.js +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +2 -0
- package/dist/WaterfallChart.js +263 -261
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/package.json +1 -1
- package/dist/Axis-DoOqnt6g.js +0 -32
- package/dist/Axis-DoOqnt6g.js.map +0 -1
- package/dist/Axis-Dtjn-EgM.cjs +0 -2
- package/dist/Axis-Dtjn-EgM.cjs.map +0 -1
- package/dist/GraphEl-CAjJLOGk.cjs +0 -2
- package/dist/GraphEl-CAjJLOGk.cjs.map +0 -1
- package/dist/GraphEl-DcNr5JzH.js.map +0 -1
package/dist/BeeSwarmChart.js
CHANGED
|
@@ -1,135 +1,136 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { i as
|
|
4
|
-
import { o as
|
|
5
|
-
import { w as
|
|
6
|
-
import { j as
|
|
7
|
-
import { n as
|
|
8
|
-
import { T as
|
|
1
|
+
import { c as Yt, j as n, m as It } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
2
|
+
import { useRef as At, useState as T, useEffect as Gt } from "react";
|
|
3
|
+
import { i as qt } from "./index-Bwrro8-q.js";
|
|
4
|
+
import { o as Zt } from "./index-BZQYSqar.js";
|
|
5
|
+
import { w as Ut } from "./Spinner--r2RrJV8.js";
|
|
6
|
+
import { j as me } from "./Typography-hWfh3H0J.js";
|
|
7
|
+
import { n as Jt } from "./numberFormattingFunction-14YCbkN2.js";
|
|
8
|
+
import { T as Kt } from "./Tooltip-BRnAz2Gv.js";
|
|
9
9
|
import { c as x } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
10
|
-
import { g as
|
|
11
|
-
import { Colors as
|
|
12
|
-
import { A as
|
|
13
|
-
import { R as
|
|
14
|
-
import { Y as
|
|
15
|
-
import { X as
|
|
16
|
-
import { D as
|
|
17
|
-
import { s as
|
|
18
|
-
import { a as
|
|
19
|
-
import { f as
|
|
20
|
-
import { u as
|
|
21
|
-
import { GraphHeader as
|
|
22
|
-
import { a as
|
|
23
|
-
import { E as
|
|
24
|
-
import { ColorLegendWithMouseOver as
|
|
25
|
-
import { GraphFooter as
|
|
26
|
-
function
|
|
27
|
-
const t =
|
|
10
|
+
import { g as Qt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
11
|
+
import { Colors as vt } from "./Colors.js";
|
|
12
|
+
import { A as _t } from "./Axis-D56Gy0se.js";
|
|
13
|
+
import { R as fe, a as de } from "./ReferenceLine-DgtoRgw0.js";
|
|
14
|
+
import { Y as pe } from "./YTicksAndGridLines-GnXnSRF2.js";
|
|
15
|
+
import { X as he } from "./XTicksAndGridLines-CVZkZkpS.js";
|
|
16
|
+
import { D as te } from "./DetailsModal-BMCTgVsk.js";
|
|
17
|
+
import { s as ee } from "./pow-CaIrlM4J.js";
|
|
18
|
+
import { a as oe } from "./linear-CalFSAaO.js";
|
|
19
|
+
import { f as ie, a as ne, b as re, c as se, d as le } from "./y-BqfogMAB.js";
|
|
20
|
+
import { u as Wt } from "./uniqBy-BHy4I8PK.js";
|
|
21
|
+
import { GraphHeader as ge } from "./GraphHeader.js";
|
|
22
|
+
import { a as xe, G as ve } from "./GraphContainer-CF6ws3pd.js";
|
|
23
|
+
import { E as ye } from "./EmptyState-tZBErBKF.js";
|
|
24
|
+
import { ColorLegendWithMouseOver as be } from "./ColorLegendWithMouseOver.js";
|
|
25
|
+
import { GraphFooter as Me } from "./GraphFooter.js";
|
|
26
|
+
function je(e) {
|
|
27
|
+
const t = Yt.c(28), {
|
|
28
28
|
data: o,
|
|
29
29
|
circleColors: y,
|
|
30
|
-
showTicks:
|
|
30
|
+
showTicks: lt,
|
|
31
31
|
width: $,
|
|
32
|
-
height:
|
|
33
|
-
colorDomain:
|
|
32
|
+
height: L,
|
|
33
|
+
colorDomain: B,
|
|
34
34
|
topMargin: k,
|
|
35
35
|
bottomMargin: tt,
|
|
36
36
|
leftMargin: et,
|
|
37
|
-
rightMargin:
|
|
37
|
+
rightMargin: at,
|
|
38
38
|
suffix: h,
|
|
39
39
|
prefix: F,
|
|
40
40
|
showLabels: E,
|
|
41
|
-
tooltip:
|
|
42
|
-
onSeriesMouseOver:
|
|
43
|
-
refValues:
|
|
41
|
+
tooltip: z,
|
|
42
|
+
onSeriesMouseOver: ct,
|
|
43
|
+
refValues: N,
|
|
44
44
|
selectedColor: g,
|
|
45
|
-
startFromZero:
|
|
46
|
-
radius:
|
|
47
|
-
maxRadiusValue:
|
|
48
|
-
maxValue:
|
|
49
|
-
minValue:
|
|
45
|
+
startFromZero: A,
|
|
46
|
+
radius: d,
|
|
47
|
+
maxRadiusValue: W,
|
|
48
|
+
maxValue: I,
|
|
49
|
+
minValue: q,
|
|
50
50
|
highlightedDataPoints: gt,
|
|
51
51
|
onSeriesMouseClick: ft,
|
|
52
|
-
resetSelectionOnDoubleClick:
|
|
52
|
+
resetSelectionOnDoubleClick: Z,
|
|
53
53
|
detailsOnClick: P,
|
|
54
54
|
styles: O,
|
|
55
|
-
classNames:
|
|
55
|
+
classNames: a,
|
|
56
56
|
noOfTicks: v,
|
|
57
|
-
dimmedOpacity:
|
|
58
|
-
precision:
|
|
59
|
-
customLayers:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
dimmedOpacity: ut,
|
|
58
|
+
precision: mt,
|
|
59
|
+
customLayers: dt,
|
|
60
|
+
hideAxisLine: xt
|
|
61
|
+
} = e, pt = k === void 0 ? 25 : k, R = tt === void 0 ? 10 : tt, ot = et === void 0 ? 100 : et, it = at === void 0 ? 40 : at, ht = At(null), [nt, U] = T(void 0), [X, Y] = T(void 0), [u, c] = T(null), [rt, J] = T(void 0), [K, S] = T(void 0);
|
|
62
|
+
let Q;
|
|
63
|
+
t[0] !== R || t[1] !== ot || t[2] !== it || t[3] !== pt ? (Q = {
|
|
64
|
+
top: pt,
|
|
64
65
|
bottom: R,
|
|
65
66
|
left: ot,
|
|
66
67
|
right: it
|
|
67
|
-
}, t[0] = R, t[1] = ot, t[2] = it, t[3] =
|
|
68
|
-
const m =
|
|
68
|
+
}, t[0] = R, t[1] = ot, t[2] = it, t[3] = pt, t[4] = Q) : Q = t[4];
|
|
69
|
+
const m = Q, f = $ - m.left - m.right, st = L - m.top - m.bottom, V = o.filter(We).length === 0 ? o : Zt(o.filter(ze), "radius", "desc");
|
|
69
70
|
let _;
|
|
70
|
-
t[5] !== o || t[6] !==
|
|
71
|
-
const
|
|
72
|
-
let
|
|
73
|
-
t[9] !== o || t[10] !==
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
const r = V.map(
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
t[5] !== o || t[6] !== I || t[7] !== A ? (_ = x(I) ? Math.max(...o.filter(Be).map(He)) < 0 && !A ? 0 : Math.max(...o.filter(Ge).map(Ye)) : I, t[5] = o, t[6] = I, t[7] = A, t[8] = _) : _ = t[8];
|
|
72
|
+
const G = _;
|
|
73
|
+
let H;
|
|
74
|
+
t[9] !== o || t[10] !== q || t[11] !== A ? (H = x(q) ? Math.min(...o.filter(Xe).map(Re)) >= 0 && !A ? 0 : Math.min(...o.filter(Pe).map(Ee)) : q, t[9] = o, t[10] = q, t[11] = A, t[12] = H) : H = t[12];
|
|
75
|
+
const p = H, s = o.filter(Fe).length !== o.length ? ee().domain([0, x(W) ? Math.max(...o.map(Te).filter(Ve)) : W]).range([0.25, d]).nice() : void 0, l = oe().domain([p, G]).range([st, 0]).nice(), b = l.ticks(v);
|
|
76
|
+
Gt(() => {
|
|
77
|
+
const r = V.map(Se).filter(Ae);
|
|
78
|
+
ie(r).force("y", re((i) => l(i.position)).strength(5)).force("x", ne((i) => f / 2).strength(1)).force("collide", se((i) => s ? s(i.radius || 0) + 1 : d + 1)).force("charge", le().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
79
|
+
c(r);
|
|
79
80
|
}).on("end", () => {
|
|
80
|
-
|
|
81
|
+
c(r);
|
|
81
82
|
});
|
|
82
|
-
}, [o,
|
|
83
|
-
const M =
|
|
84
|
-
|
|
85
|
-
/* @__PURE__ */ n.jsx(
|
|
83
|
+
}, [o, d, st, f, p, G, V, l, s]);
|
|
84
|
+
const M = u ? /* @__PURE__ */ n.jsx("svg", { width: `${$}px`, height: `${L}px`, viewBox: `0 0 ${$} ${L}`, direction: "ltr", ref: ht, children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${m.left},${m.top})`, children: [
|
|
85
|
+
lt ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
86
|
+
/* @__PURE__ */ n.jsx(_t, { hideAxisLine: xt, y1: l(p < 0 ? 0 : p), y2: l(p < 0 ? 0 : p), x1: 0 - m.left, x2: f + m.right, label: lt ? Jt(p < 0 ? 0 : p, "NA", mt, F, h) : void 0, labelPos: {
|
|
86
87
|
x: 0 - m.left,
|
|
87
|
-
y: l(
|
|
88
|
+
y: l(p < 0 ? 0 : p),
|
|
88
89
|
dx: 0,
|
|
89
|
-
dy:
|
|
90
|
+
dy: G < 0 ? "1em" : -5
|
|
90
91
|
}, classNames: {
|
|
91
|
-
axis:
|
|
92
|
-
label:
|
|
92
|
+
axis: a?.xAxis?.axis,
|
|
93
|
+
label: a?.yAxis?.labels
|
|
93
94
|
}, styles: {
|
|
94
95
|
axis: O?.xAxis?.axis,
|
|
95
96
|
label: O?.yAxis?.labels
|
|
96
97
|
} }),
|
|
97
|
-
/* @__PURE__ */ n.jsx(
|
|
98
|
+
/* @__PURE__ */ n.jsx(pe, { values: b.filter(Ne), y: b.filter(Le).map((r) => l(r)), x1: 0 - m.left, x2: f + m.right, styles: {
|
|
98
99
|
gridLines: O?.yAxis?.gridLines,
|
|
99
100
|
labels: O?.yAxis?.labels
|
|
100
101
|
}, classNames: {
|
|
101
|
-
gridLines:
|
|
102
|
-
labels:
|
|
103
|
-
}, suffix: h, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision:
|
|
102
|
+
gridLines: a?.yAxis?.gridLines,
|
|
103
|
+
labels: a?.yAxis?.labels
|
|
104
|
+
}, suffix: h, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: mt })
|
|
104
105
|
] }) : null,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
dt.filter($e).map(we),
|
|
107
|
+
u.map((r) => /* @__PURE__ */ n.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${r.x},${r.y})`, opacity: g ? r.color && y[B.indexOf(r.color)] === g ? 1 : ut : gt.length !== 0 ? gt.indexOf(r.label) !== -1 ? 0.85 : ut : 0.85, onMouseEnter: (i) => {
|
|
108
|
+
U(r), S(i.clientY), J(i.clientX), ct?.(r);
|
|
108
109
|
}, onMouseMove: (i) => {
|
|
109
|
-
|
|
110
|
+
U(r), S(i.clientY), J(i.clientX);
|
|
110
111
|
}, onClick: () => {
|
|
111
|
-
(ft || P) && (
|
|
112
|
+
(ft || P) && (qt(X, r) && Z ? (Y(void 0), ft?.(void 0)) : (Y(r), ft?.(r)));
|
|
112
113
|
}, onMouseLeave: () => {
|
|
113
|
-
|
|
114
|
+
U(void 0), J(void 0), S(void 0), ct?.(void 0);
|
|
114
115
|
}, children: [
|
|
115
|
-
/* @__PURE__ */ n.jsx("circle", { cx: 0, cy: 0, r: s ? s(r.radius || 0) :
|
|
116
|
-
(s ? s(r.radius || 0) :
|
|
117
|
-
fontSize: `${Math.min(Math.max(Math.round((s ? s(r.radius || 0) :
|
|
116
|
+
/* @__PURE__ */ n.jsx("circle", { cx: 0, cy: 0, r: s ? s(r.radius || 0) : d, fill: o.filter(ke).length === 0 ? y[0] : r.color ? y[B.indexOf(r.color)] : vt.gray }),
|
|
117
|
+
(s ? s(r.radius || 0) : d) > 10 && E ? /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("foreignObject", { y: 0 - (s ? s(r.radius || 0) : d), x: 0 - (s ? s(r.radius || 0) : d), width: 2 * (s ? s(r.radius || 0) : d), height: 2 * (s ? s(r.radius || 0) : d), children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col justify-center items-center h-inherit py-0 px-1.5", children: E ? /* @__PURE__ */ n.jsx("p", { className: It("text-center leading-none m-0", a?.graphObjectValues), style: {
|
|
118
|
+
fontSize: `${Math.min(Math.max(Math.round((s ? s(r.radius || 0) : d) / 4), 10), Math.max(Math.round((s ? s(r.radius || 0) : d) * 12 / `${r.label}`.length), 10), 20)}px`,
|
|
118
119
|
hyphens: "auto",
|
|
119
|
-
color:
|
|
120
|
+
color: Qt(o.filter(De).length === 0 ? y[0] : r.color ? y[B.indexOf(r.color)] : vt.gray),
|
|
120
121
|
...O?.graphObjectValues || {}
|
|
121
122
|
}, children: r.label }) : null }) }) }) : null
|
|
122
123
|
] }, r.label)),
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
N ? /* @__PURE__ */ n.jsx(n.Fragment, { children: N.map((r, i) => /* @__PURE__ */ n.jsx(de, { text: r.text, color: r.color, y: l(r.value), x1: 0 - m.left, x2: f + m.right, classNames: r.classNames, styles: r.styles, isInView: !0 }, i)) }) : null,
|
|
125
|
+
dt.filter(Ce).map(Oe)
|
|
125
126
|
] }) }) : /* @__PURE__ */ n.jsx("div", { style: {
|
|
126
127
|
width: `${$}px`,
|
|
127
|
-
height: `${
|
|
128
|
-
}, children: /* @__PURE__ */ n.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ n.jsx(
|
|
128
|
+
height: `${L}px`
|
|
129
|
+
}, children: /* @__PURE__ */ n.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ n.jsx(Ut, {}) }) });
|
|
129
130
|
let w;
|
|
130
|
-
t[13] !==
|
|
131
|
+
t[13] !== a?.tooltip || t[14] !== rt || t[15] !== K || t[16] !== nt || t[17] !== O?.tooltip || t[18] !== z ? (w = nt && z && rt && K ? /* @__PURE__ */ n.jsx(Kt, { data: nt, body: z, xPos: rt, yPos: K, backgroundStyle: O?.tooltip, className: a?.tooltip }) : null, t[13] = a?.tooltip, t[14] = rt, t[15] = K, t[16] = nt, t[17] = O?.tooltip, t[18] = z, t[19] = w) : w = t[19];
|
|
131
132
|
let C;
|
|
132
|
-
t[20] !==
|
|
133
|
+
t[20] !== a?.modal || t[21] !== P || t[22] !== X ? (C = P && X !== void 0 ? /* @__PURE__ */ n.jsx(te, { body: P, data: X, setData: Y, className: a?.modal }) : null, t[20] = a?.modal, t[21] = P, t[22] = X, t[23] = C) : C = t[23];
|
|
133
134
|
let D;
|
|
134
135
|
return t[24] !== M || t[25] !== w || t[26] !== C ? (D = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
135
136
|
M,
|
|
@@ -137,34 +138,34 @@ function be(e) {
|
|
|
137
138
|
C
|
|
138
139
|
] }), t[24] = M, t[25] = w, t[26] = C, t[27] = D) : D = t[27], D;
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
+
function Oe(e) {
|
|
141
142
|
return e.layer;
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function Ce(e) {
|
|
144
145
|
return e.position === "after";
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
+
function De(e) {
|
|
147
148
|
return e.color;
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function ke(e) {
|
|
150
151
|
return e.color;
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
+
function we(e) {
|
|
153
154
|
return e.layer;
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
+
function $e(e) {
|
|
156
157
|
return e.position === "before";
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
+
function Le(e) {
|
|
159
160
|
return e !== 0;
|
|
160
161
|
}
|
|
161
|
-
function
|
|
162
|
+
function Ne(e) {
|
|
162
163
|
return e !== 0;
|
|
163
164
|
}
|
|
164
|
-
function
|
|
165
|
+
function Ae(e) {
|
|
165
166
|
return e.position;
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
+
function Se(e) {
|
|
168
169
|
return {
|
|
169
170
|
...e,
|
|
170
171
|
...e.data && {
|
|
@@ -174,20 +175,14 @@ function Le(e) {
|
|
|
174
175
|
}
|
|
175
176
|
};
|
|
176
177
|
}
|
|
177
|
-
function Se(e) {
|
|
178
|
-
return e != null;
|
|
179
|
-
}
|
|
180
|
-
function Ae(e) {
|
|
181
|
-
return e.radius;
|
|
182
|
-
}
|
|
183
178
|
function Ve(e) {
|
|
184
|
-
return e
|
|
179
|
+
return e != null;
|
|
185
180
|
}
|
|
186
181
|
function Te(e) {
|
|
187
|
-
return e.
|
|
182
|
+
return e.radius;
|
|
188
183
|
}
|
|
189
184
|
function Fe(e) {
|
|
190
|
-
return
|
|
185
|
+
return e.radius === void 0 || e.radius === null;
|
|
191
186
|
}
|
|
192
187
|
function Ee(e) {
|
|
193
188
|
return e.position;
|
|
@@ -208,72 +203,79 @@ function Ge(e) {
|
|
|
208
203
|
return !x(e.position);
|
|
209
204
|
}
|
|
210
205
|
function He(e) {
|
|
211
|
-
return
|
|
206
|
+
return e.position;
|
|
212
207
|
}
|
|
213
208
|
function Be(e) {
|
|
214
|
-
return !x(e.
|
|
209
|
+
return !x(e.position);
|
|
215
210
|
}
|
|
216
211
|
function ze(e) {
|
|
217
|
-
|
|
212
|
+
return !x(e.radius);
|
|
213
|
+
}
|
|
214
|
+
function We(e) {
|
|
215
|
+
return !x(e.radius);
|
|
216
|
+
}
|
|
217
|
+
function Ie(e) {
|
|
218
|
+
const t = Yt.c(28), {
|
|
218
219
|
data: o,
|
|
219
220
|
circleColors: y,
|
|
220
|
-
showTicks:
|
|
221
|
+
showTicks: lt,
|
|
221
222
|
width: $,
|
|
222
|
-
height:
|
|
223
|
-
colorDomain:
|
|
223
|
+
height: L,
|
|
224
|
+
colorDomain: B,
|
|
224
225
|
topMargin: k,
|
|
225
226
|
bottomMargin: tt,
|
|
226
227
|
leftMargin: et,
|
|
227
|
-
rightMargin:
|
|
228
|
+
rightMargin: at,
|
|
228
229
|
showLabels: h,
|
|
229
230
|
tooltip: F,
|
|
230
231
|
onSeriesMouseOver: E,
|
|
231
|
-
refValues:
|
|
232
|
-
selectedColor:
|
|
233
|
-
startFromZero:
|
|
232
|
+
refValues: z,
|
|
233
|
+
selectedColor: ct,
|
|
234
|
+
startFromZero: N,
|
|
234
235
|
radius: g,
|
|
235
|
-
maxRadiusValue:
|
|
236
|
-
maxValue:
|
|
237
|
-
minValue:
|
|
238
|
-
highlightedDataPoints:
|
|
239
|
-
onSeriesMouseClick:
|
|
236
|
+
maxRadiusValue: A,
|
|
237
|
+
maxValue: d,
|
|
238
|
+
minValue: W,
|
|
239
|
+
highlightedDataPoints: I,
|
|
240
|
+
onSeriesMouseClick: q,
|
|
240
241
|
rtl: gt,
|
|
241
242
|
resetSelectionOnDoubleClick: ft,
|
|
242
|
-
detailsOnClick:
|
|
243
|
+
detailsOnClick: Z,
|
|
243
244
|
suffix: P,
|
|
244
245
|
prefix: O,
|
|
245
|
-
styles:
|
|
246
|
+
styles: a,
|
|
246
247
|
classNames: v,
|
|
247
|
-
noOfTicks:
|
|
248
|
-
dimmedOpacity:
|
|
249
|
-
precision:
|
|
250
|
-
customLayers:
|
|
251
|
-
|
|
248
|
+
noOfTicks: ut,
|
|
249
|
+
dimmedOpacity: mt,
|
|
250
|
+
precision: dt,
|
|
251
|
+
customLayers: xt,
|
|
252
|
+
hideAxisLine: pt
|
|
253
|
+
} = e, R = k === void 0 ? 25 : k, ot = tt === void 0 ? 10 : tt, it = et === void 0 ? 10 : et, ht = at === void 0 ? 10 : at, nt = At(null), [U, X] = T(void 0), [Y, u] = T(void 0), [c, rt] = T(null), [J, K] = T(void 0), [S, Q] = T(void 0);
|
|
252
254
|
let m;
|
|
253
|
-
t[0] !== ot || t[1] !== it || t[2] !==
|
|
255
|
+
t[0] !== ot || t[1] !== it || t[2] !== ht || t[3] !== R ? (m = {
|
|
254
256
|
top: R,
|
|
255
257
|
bottom: ot,
|
|
256
258
|
left: it,
|
|
257
|
-
right:
|
|
258
|
-
}, t[0] = ot, t[1] = it, t[2] =
|
|
259
|
-
const f = m,
|
|
260
|
-
let
|
|
261
|
-
t[5] !== o || t[6] !==
|
|
262
|
-
const
|
|
263
|
-
let
|
|
264
|
-
t[9] !== o || t[10] !==
|
|
265
|
-
const s =
|
|
266
|
-
|
|
267
|
-
const i = _.map(
|
|
268
|
-
|
|
269
|
-
|
|
259
|
+
right: ht
|
|
260
|
+
}, t[0] = ot, t[1] = it, t[2] = ht, t[3] = R, t[4] = m) : m = t[4];
|
|
261
|
+
const f = m, st = $ - f.left - f.right, V = L - f.top - f.bottom, _ = o.filter(go).length === 0 ? o : Zt(o.filter(ho), "radius", "desc");
|
|
262
|
+
let G;
|
|
263
|
+
t[5] !== o || t[6] !== d || t[7] !== N ? (G = x(d) ? Math.max(...o.filter(po).map(fo)) < 0 && !N ? 0 : Math.max(...o.filter(mo).map(uo)) : d, t[5] = o, t[6] = d, t[7] = N, t[8] = G) : G = t[8];
|
|
264
|
+
const H = G;
|
|
265
|
+
let p;
|
|
266
|
+
t[9] !== o || t[10] !== W || t[11] !== N ? (p = x(W) ? Math.min(...o.filter(co).map(ao)) >= 0 && !N ? 0 : Math.min(...o.filter(lo).map(so)) : W, t[9] = o, t[10] = W, t[11] = N, t[12] = p) : p = t[12];
|
|
267
|
+
const s = p, l = o.filter(ro).length !== o.length ? ee().domain([0, x(A) ? Math.max(...o.map(no).filter(io)) : A]).range([0.25, g]).nice() : void 0, b = oe().domain([s, H]).range([0, st]).nice(), M = b.ticks(ut);
|
|
268
|
+
Gt(() => {
|
|
269
|
+
const i = _.map(oo).filter(eo);
|
|
270
|
+
ie(i).force("x", ne((j) => b(j.position)).strength(5)).force("y", re((j) => V / 2).strength(1)).force("collide", se((j) => l ? l(j.radius || 0) + 1 : g + 1)).force("charge", le().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
271
|
+
rt(i);
|
|
270
272
|
}).on("end", () => {
|
|
271
|
-
|
|
273
|
+
rt(i);
|
|
272
274
|
});
|
|
273
|
-
}, [o, g, V,
|
|
274
|
-
const w =
|
|
275
|
-
|
|
276
|
-
/* @__PURE__ */ n.jsx(
|
|
275
|
+
}, [o, g, V, st, s, H, _, b, l]);
|
|
276
|
+
const w = c ? /* @__PURE__ */ n.jsx("svg", { width: `${$}px`, height: `${L}px`, viewBox: `0 0 ${$} ${L}`, direction: "ltr", ref: nt, children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${f.left},${f.top})`, children: [
|
|
277
|
+
lt ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
278
|
+
/* @__PURE__ */ n.jsx(_t, { hideAxisLine: pt, x1: b(s < 0 ? 0 : s), x2: b(s < 0 ? 0 : s), y1: 0 - f.top, y2: V + f.bottom, label: lt ? Jt(s < 0 ? 0 : s, "NA", dt, O, P) : void 0, labelPos: {
|
|
277
279
|
x: b(s < 0 ? 0 : s),
|
|
278
280
|
y: 0 - R,
|
|
279
281
|
dy: "0.75em",
|
|
@@ -282,45 +284,45 @@ function ze(e) {
|
|
|
282
284
|
axis: v?.xAxis?.axis,
|
|
283
285
|
label: v?.yAxis?.labels
|
|
284
286
|
}, styles: {
|
|
285
|
-
axis:
|
|
286
|
-
label:
|
|
287
|
+
axis: a?.xAxis?.axis,
|
|
288
|
+
label: a?.yAxis?.labels
|
|
287
289
|
} }),
|
|
288
|
-
/* @__PURE__ */ n.jsx(
|
|
289
|
-
gridLines:
|
|
290
|
-
labels:
|
|
290
|
+
/* @__PURE__ */ n.jsx(he, { values: M.filter(to), x: M.filter(_e).map((i) => b(i)), y1: 0 - R, y2: V + f.bottom, styles: {
|
|
291
|
+
gridLines: a?.xAxis?.gridLines,
|
|
292
|
+
labels: a?.xAxis?.labels
|
|
291
293
|
}, classNames: {
|
|
292
294
|
gridLines: v?.xAxis?.gridLines,
|
|
293
295
|
labels: v?.xAxis?.labels
|
|
294
|
-
}, suffix: P, prefix: O, labelType: "secondary", showGridLines: !0, precision:
|
|
296
|
+
}, suffix: P, prefix: O, labelType: "secondary", showGridLines: !0, precision: dt })
|
|
295
297
|
] }) : null,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
298
|
+
xt.filter(Qe).map(Ke),
|
|
299
|
+
c.map((i) => /* @__PURE__ */ n.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${i.x},${i.y})`, opacity: ct ? i.color && y[B.indexOf(i.color)] === ct ? 1 : mt : I.length !== 0 ? I.indexOf(i.label) !== -1 ? 0.85 : mt : 0.85, onMouseEnter: (j) => {
|
|
300
|
+
X(i), Q(j.clientY), K(j.clientX), E?.(i);
|
|
299
301
|
}, onMouseMove: (j) => {
|
|
300
|
-
|
|
302
|
+
X(i), Q(j.clientY), K(j.clientX);
|
|
301
303
|
}, onClick: () => {
|
|
302
|
-
(
|
|
304
|
+
(q || Z) && (qt(Y, i) && ft ? (u(void 0), q?.(void 0)) : (u(i), q?.(i)));
|
|
303
305
|
}, onMouseLeave: () => {
|
|
304
|
-
|
|
306
|
+
X(void 0), K(void 0), Q(void 0), E?.(void 0);
|
|
305
307
|
}, children: [
|
|
306
|
-
/* @__PURE__ */ n.jsx("circle", { cx: 0, cy: 0, fill: o.filter(
|
|
307
|
-
(l ? l(i.radius || 0) : g) > 10 && h ? /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("foreignObject", { y: 0 - (l ? l(i.radius || 0) : g), x: 0 - (l ? l(i.radius || 0) : g), width: 2 * (l ? l(i.radius || 0) : g), height: 2 * (l ? l(i.radius || 0) : g), children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-1.5", children: h ? /* @__PURE__ */ n.jsx(
|
|
308
|
+
/* @__PURE__ */ n.jsx("circle", { cx: 0, cy: 0, fill: o.filter(Je).length === 0 ? y[0] : i.color ? y[B.indexOf(i.color)] : vt.gray, radius: l ? l(i.radius || 0) : g }),
|
|
309
|
+
(l ? l(i.radius || 0) : g) > 10 && h ? /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("foreignObject", { y: 0 - (l ? l(i.radius || 0) : g), x: 0 - (l ? l(i.radius || 0) : g), width: 2 * (l ? l(i.radius || 0) : g), height: 2 * (l ? l(i.radius || 0) : g), children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-1.5", children: h ? /* @__PURE__ */ n.jsx(me, { className: It("text-center leading-none m-0", v?.graphObjectValues), marginBottom: "none", style: {
|
|
308
310
|
fontSize: `${Math.min(Math.max(Math.round((l ? l(i.radius || 0) : g) / 4), 10), Math.max(Math.round((l ? l(i.radius || 0) : g) * 12 / `${i.label}`.length), 10), 20)}px`,
|
|
309
|
-
color:
|
|
311
|
+
color: Qt(o.filter(Ue).length === 0 ? y[0] : i.color ? y[B.indexOf(i.color)] : vt.gray),
|
|
310
312
|
hyphens: "auto",
|
|
311
|
-
...
|
|
313
|
+
...a?.graphObjectValues || {}
|
|
312
314
|
}, children: i.label }) : null }) }) }) : null
|
|
313
315
|
] }, i.label)),
|
|
314
|
-
|
|
315
|
-
|
|
316
|
+
z ? /* @__PURE__ */ n.jsx(n.Fragment, { children: z.map((i, j) => /* @__PURE__ */ n.jsx(fe, { text: i.text, color: i.color, x: b(i.value), y1: 0 - f.top, y2: V + f.bottom, textSide: b(i.value) > st * 0.75 || gt ? "left" : "right", classNames: i.classNames, styles: i.styles, isInView: !0 }, j)) }) : null,
|
|
317
|
+
xt.filter(Ze).map(qe)
|
|
316
318
|
] }) }) : /* @__PURE__ */ n.jsx("div", { style: {
|
|
317
319
|
width: `${$}px`,
|
|
318
|
-
height: `${
|
|
319
|
-
}, children: /* @__PURE__ */ n.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ n.jsx(
|
|
320
|
+
height: `${L}px`
|
|
321
|
+
}, children: /* @__PURE__ */ n.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ n.jsx(Ut, {}) }) });
|
|
320
322
|
let C;
|
|
321
|
-
t[13] !== v?.tooltip || t[14] !== J || t[15] !==
|
|
323
|
+
t[13] !== v?.tooltip || t[14] !== J || t[15] !== S || t[16] !== U || t[17] !== a?.tooltip || t[18] !== F ? (C = U && F && J && S ? /* @__PURE__ */ n.jsx(Kt, { data: U, body: F, xPos: J, yPos: S, backgroundStyle: a?.tooltip, className: v?.tooltip }) : null, t[13] = v?.tooltip, t[14] = J, t[15] = S, t[16] = U, t[17] = a?.tooltip, t[18] = F, t[19] = C) : C = t[19];
|
|
322
324
|
let D;
|
|
323
|
-
t[20] !== v?.modal || t[21] !==
|
|
325
|
+
t[20] !== v?.modal || t[21] !== Z || t[22] !== Y ? (D = Z && Y !== void 0 ? /* @__PURE__ */ n.jsx(te, { body: Z, data: Y, setData: u, className: v?.modal }) : null, t[20] = v?.modal, t[21] = Z, t[22] = Y, t[23] = D) : D = t[23];
|
|
324
326
|
let r;
|
|
325
327
|
return t[24] !== w || t[25] !== C || t[26] !== D ? (r = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
326
328
|
w,
|
|
@@ -328,34 +330,34 @@ function ze(e) {
|
|
|
328
330
|
D
|
|
329
331
|
] }), t[24] = w, t[25] = C, t[26] = D, t[27] = r) : r = t[27], r;
|
|
330
332
|
}
|
|
331
|
-
function
|
|
333
|
+
function qe(e) {
|
|
332
334
|
return e.layer;
|
|
333
335
|
}
|
|
334
|
-
function
|
|
336
|
+
function Ze(e) {
|
|
335
337
|
return e.position === "after";
|
|
336
338
|
}
|
|
337
|
-
function
|
|
339
|
+
function Ue(e) {
|
|
338
340
|
return e.color;
|
|
339
341
|
}
|
|
340
|
-
function
|
|
342
|
+
function Je(e) {
|
|
341
343
|
return e.color;
|
|
342
344
|
}
|
|
343
|
-
function
|
|
345
|
+
function Ke(e) {
|
|
344
346
|
return e.layer;
|
|
345
347
|
}
|
|
346
|
-
function
|
|
348
|
+
function Qe(e) {
|
|
347
349
|
return e.position === "before";
|
|
348
350
|
}
|
|
349
|
-
function
|
|
351
|
+
function _e(e) {
|
|
350
352
|
return e !== 0;
|
|
351
353
|
}
|
|
352
|
-
function
|
|
354
|
+
function to(e) {
|
|
353
355
|
return e !== 0;
|
|
354
356
|
}
|
|
355
|
-
function
|
|
357
|
+
function eo(e) {
|
|
356
358
|
return e.position;
|
|
357
359
|
}
|
|
358
|
-
function
|
|
360
|
+
function oo(e) {
|
|
359
361
|
return {
|
|
360
362
|
...e,
|
|
361
363
|
...e.data && {
|
|
@@ -365,20 +367,14 @@ function to(e) {
|
|
|
365
367
|
}
|
|
366
368
|
};
|
|
367
369
|
}
|
|
368
|
-
function eo(e) {
|
|
369
|
-
return e != null;
|
|
370
|
-
}
|
|
371
|
-
function oo(e) {
|
|
372
|
-
return e.radius;
|
|
373
|
-
}
|
|
374
370
|
function io(e) {
|
|
375
|
-
return e
|
|
371
|
+
return e != null;
|
|
376
372
|
}
|
|
377
373
|
function no(e) {
|
|
378
|
-
return e.
|
|
374
|
+
return e.radius;
|
|
379
375
|
}
|
|
380
376
|
function ro(e) {
|
|
381
|
-
return
|
|
377
|
+
return e.radius === void 0 || e.radius === null;
|
|
382
378
|
}
|
|
383
379
|
function so(e) {
|
|
384
380
|
return e.position;
|
|
@@ -399,136 +395,143 @@ function mo(e) {
|
|
|
399
395
|
return !x(e.position);
|
|
400
396
|
}
|
|
401
397
|
function fo(e) {
|
|
402
|
-
return
|
|
398
|
+
return e.position;
|
|
403
399
|
}
|
|
404
400
|
function po(e) {
|
|
401
|
+
return !x(e.position);
|
|
402
|
+
}
|
|
403
|
+
function ho(e) {
|
|
405
404
|
return !x(e.radius);
|
|
406
405
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
406
|
+
function go(e) {
|
|
407
|
+
return !x(e.radius);
|
|
408
|
+
}
|
|
409
|
+
function Jo(e) {
|
|
410
|
+
const t = Yt.c(92), {
|
|
409
411
|
data: o,
|
|
410
412
|
graphTitle: y,
|
|
411
|
-
topMargin:
|
|
413
|
+
topMargin: lt,
|
|
412
414
|
bottomMargin: $,
|
|
413
|
-
leftMargin:
|
|
414
|
-
rightMargin:
|
|
415
|
+
leftMargin: L,
|
|
416
|
+
rightMargin: B,
|
|
415
417
|
colors: k,
|
|
416
418
|
sources: tt,
|
|
417
419
|
graphDescription: et,
|
|
418
|
-
height:
|
|
420
|
+
height: at,
|
|
419
421
|
width: h,
|
|
420
422
|
footNote: F,
|
|
421
423
|
colorDomain: E,
|
|
422
|
-
colorLegendTitle:
|
|
423
|
-
padding:
|
|
424
|
-
relativeHeight:
|
|
424
|
+
colorLegendTitle: z,
|
|
425
|
+
padding: ct,
|
|
426
|
+
relativeHeight: N,
|
|
425
427
|
tooltip: g,
|
|
426
|
-
onSeriesMouseOver:
|
|
427
|
-
refValues:
|
|
428
|
-
showColorScale:
|
|
429
|
-
graphID:
|
|
430
|
-
radius:
|
|
428
|
+
onSeriesMouseOver: A,
|
|
429
|
+
refValues: d,
|
|
430
|
+
showColorScale: W,
|
|
431
|
+
graphID: I,
|
|
432
|
+
radius: q,
|
|
431
433
|
showLabels: gt,
|
|
432
434
|
showTicks: ft,
|
|
433
|
-
maxRadiusValue:
|
|
435
|
+
maxRadiusValue: Z,
|
|
434
436
|
maxValue: P,
|
|
435
437
|
minValue: O,
|
|
436
|
-
highlightedDataPoints:
|
|
438
|
+
highlightedDataPoints: a,
|
|
437
439
|
onSeriesMouseClick: v,
|
|
438
|
-
ariaLabel:
|
|
439
|
-
backgroundColor:
|
|
440
|
-
graphDownload:
|
|
441
|
-
dataDownload:
|
|
442
|
-
language:
|
|
443
|
-
showNAColor:
|
|
444
|
-
minHeight:
|
|
445
|
-
theme:
|
|
446
|
-
resetSelectionOnDoubleClick:
|
|
447
|
-
detailsOnClick:
|
|
448
|
-
orientation:
|
|
449
|
-
suffix:
|
|
450
|
-
prefix:
|
|
440
|
+
ariaLabel: ut,
|
|
441
|
+
backgroundColor: mt,
|
|
442
|
+
graphDownload: dt,
|
|
443
|
+
dataDownload: xt,
|
|
444
|
+
language: pt,
|
|
445
|
+
showNAColor: R,
|
|
446
|
+
minHeight: ot,
|
|
447
|
+
theme: it,
|
|
448
|
+
resetSelectionOnDoubleClick: ht,
|
|
449
|
+
detailsOnClick: nt,
|
|
450
|
+
orientation: U,
|
|
451
|
+
suffix: X,
|
|
452
|
+
prefix: Y,
|
|
451
453
|
styles: u,
|
|
452
|
-
classNames:
|
|
453
|
-
noOfTicks:
|
|
454
|
-
dimmedOpacity:
|
|
455
|
-
precision:
|
|
456
|
-
customLayers:
|
|
457
|
-
|
|
454
|
+
classNames: c,
|
|
455
|
+
noOfTicks: rt,
|
|
456
|
+
dimmedOpacity: J,
|
|
457
|
+
precision: K,
|
|
458
|
+
customLayers: S,
|
|
459
|
+
hideAxisLine: Q
|
|
460
|
+
} = e, m = q === void 0 ? 5 : q, f = gt === void 0 ? !0 : gt, st = ft === void 0 ? !0 : ft;
|
|
458
461
|
let V;
|
|
459
|
-
t[0] !==
|
|
460
|
-
const _ = V,
|
|
461
|
-
let
|
|
462
|
-
t[2] !==
|
|
463
|
-
const
|
|
464
|
-
let
|
|
465
|
-
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
466
|
-
const
|
|
467
|
-
|
|
462
|
+
t[0] !== a ? (V = a === void 0 ? [] : a, t[0] = a, t[1] = V) : V = t[1];
|
|
463
|
+
const _ = V, G = mt === void 0 ? !1 : mt, H = dt === void 0 ? !1 : dt, p = xt === void 0 ? !1 : xt, s = pt === void 0 ? "en" : pt, l = R === void 0 ? !0 : R, b = ot === void 0 ? 0 : ot, M = it === void 0 ? "light" : it, w = ht === void 0 ? !0 : ht, C = U === void 0 ? "vertical" : U, D = X === void 0 ? "" : X, r = Y === void 0 ? "" : Y, i = rt === void 0 ? 5 : rt, j = J === void 0 ? 0.3 : J, St = K === void 0 ? 2 : K;
|
|
464
|
+
let Dt;
|
|
465
|
+
t[2] !== S ? (Dt = S === void 0 ? [] : S, t[2] = S, t[3] = Dt) : Dt = t[3];
|
|
466
|
+
const Vt = Dt, Tt = Q === void 0 ? !1 : Q, [kt, ae] = T(0), [wt, ce] = T(0), [Ft, ue] = T(void 0), Et = At(null), Ht = At(null), Pt = C === "horizontal" ? Ie : je;
|
|
467
|
+
let $t, Lt;
|
|
468
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($t = () => {
|
|
469
|
+
const Bt = new ResizeObserver((zt) => {
|
|
470
|
+
ae(zt[0].target.clientWidth || 620), ce(zt[0].target.clientHeight || 480);
|
|
468
471
|
});
|
|
469
|
-
return
|
|
470
|
-
},
|
|
471
|
-
const
|
|
472
|
-
let
|
|
473
|
-
t[6] !==
|
|
472
|
+
return Et.current && Bt.observe(Et.current), () => Bt.disconnect();
|
|
473
|
+
}, Lt = [], t[4] = $t, t[5] = Lt) : ($t = t[4], Lt = t[5]), Gt($t, Lt);
|
|
474
|
+
const Rt = c?.graphContainer, Xt = u?.graphContainer;
|
|
475
|
+
let yt;
|
|
476
|
+
t[6] !== c?.description || t[7] !== c?.title || t[8] !== o || t[9] !== p || t[10] !== et || t[11] !== H || t[12] !== y || t[13] !== u?.description || t[14] !== u?.title || t[15] !== h ? (yt = y || et || H || p ? /* @__PURE__ */ n.jsx(ge, { styles: {
|
|
474
477
|
title: u?.title,
|
|
475
478
|
description: u?.description
|
|
476
479
|
}, classNames: {
|
|
477
|
-
title:
|
|
478
|
-
description:
|
|
479
|
-
}, graphTitle: y, graphDescription: et, width: h, graphDownload:
|
|
480
|
-
let yt;
|
|
481
|
-
t[17] !== a?.colorLegend || t[18] !== E || t[19] !== W || t[20] !== k || t[21] !== o || t[22] !== I || t[23] !== l || t[24] !== M || t[25] !== h ? (yt = I !== !1 && o.filter(xo).length !== 0 && o.length > 0 ? /* @__PURE__ */ n.jsx(ve, { width: h, colorLegendTitle: W, colors: k || xt[M].categoricalColors.colors, colorDomain: E || Bt(o, "color", !0), setSelectedColor: ae, showNAColor: l, className: a?.colorLegend }) : null, t[17] = a?.colorLegend, t[18] = E, t[19] = W, t[20] = k, t[21] = o, t[22] = I, t[23] = l, t[24] = M, t[25] = h, t[26] = yt) : yt = t[26];
|
|
480
|
+
title: c?.title,
|
|
481
|
+
description: c?.description
|
|
482
|
+
}, graphTitle: y, graphDescription: et, width: h, graphDownload: H ? Ht : void 0, dataDownload: p ? o.map(Co).filter(Oo).length > 0 ? o.map(jo).filter(Mo) : o.filter(bo) : null }) : null, t[6] = c?.description, t[7] = c?.title, t[8] = o, t[9] = p, t[10] = et, t[11] = H, t[12] = y, t[13] = u?.description, t[14] = u?.title, t[15] = h, t[16] = yt) : yt = t[16];
|
|
482
483
|
let bt;
|
|
483
|
-
t[
|
|
484
|
+
t[17] !== c?.colorLegend || t[18] !== E || t[19] !== z || t[20] !== k || t[21] !== o || t[22] !== W || t[23] !== l || t[24] !== M || t[25] !== h ? (bt = W !== !1 && o.filter(yo).length !== 0 && o.length > 0 ? /* @__PURE__ */ n.jsx(be, { width: h, colorLegendTitle: z, colors: k || vt[M].categoricalColors.colors, colorDomain: E || Wt(o, "color", !0), setSelectedColor: ue, showNAColor: l, className: c?.colorLegend }) : null, t[17] = c?.colorLegend, t[18] = E, t[19] = z, t[20] = k, t[21] = o, t[22] = W, t[23] = l, t[24] = M, t[25] = h, t[26] = bt) : bt = t[26];
|
|
484
485
|
let Mt;
|
|
485
|
-
t[
|
|
486
|
+
t[27] !== o.length ? (Mt = o.length === 0 && /* @__PURE__ */ n.jsx(ye, {}), t[27] = o.length, t[28] = Mt) : Mt = t[28];
|
|
486
487
|
let jt;
|
|
487
|
-
t[
|
|
488
|
-
bt,
|
|
489
|
-
Mt
|
|
490
|
-
] }), t[63] = bt, t[64] = Mt, t[65] = jt) : jt = t[65];
|
|
488
|
+
t[29] !== Pt || t[30] !== $ || t[31] !== c || t[32] !== E || t[33] !== k || t[34] !== Vt || t[35] !== o || t[36] !== nt || t[37] !== j || t[38] !== Tt || t[39] !== _ || t[40] !== L || t[41] !== Z || t[42] !== P || t[43] !== O || t[44] !== i || t[45] !== v || t[46] !== A || t[47] !== St || t[48] !== r || t[49] !== m || t[50] !== d || t[51] !== w || t[52] !== B || t[53] !== Ft || t[54] !== f || t[55] !== st || t[56] !== u || t[57] !== D || t[58] !== wt || t[59] !== kt || t[60] !== M || t[61] !== g || t[62] !== lt ? (jt = kt && wt && o.length > 0 ? /* @__PURE__ */ n.jsx(Pt, { hideAxisLine: Tt, data: o, circleColors: o.filter(vo).length === 0 ? k ? [k] : [vt.primaryColors["blue-600"]] : k || vt[M].categoricalColors.colors, colorDomain: o.filter(xo).length === 0 ? [] : E || Wt(o, "color", !0), width: kt, selectedColor: Ft, height: wt, showTicks: st, leftMargin: L, rightMargin: B, topMargin: lt, bottomMargin: $, showLabels: f, tooltip: g, onSeriesMouseOver: A, refValues: d, startFromZero: !1, radius: m, maxRadiusValue: Z, maxValue: P, minValue: O, highlightedDataPoints: _, onSeriesMouseClick: v, resetSelectionOnDoubleClick: w, detailsOnClick: nt, styles: u, classNames: c, suffix: D, prefix: r, noOfTicks: i || 5, dimmedOpacity: j, precision: St, customLayers: Vt }) : null, t[29] = Pt, t[30] = $, t[31] = c, t[32] = E, t[33] = k, t[34] = Vt, t[35] = o, t[36] = nt, t[37] = j, t[38] = Tt, t[39] = _, t[40] = L, t[41] = Z, t[42] = P, t[43] = O, t[44] = i, t[45] = v, t[46] = A, t[47] = St, t[48] = r, t[49] = m, t[50] = d, t[51] = w, t[52] = B, t[53] = Ft, t[54] = f, t[55] = st, t[56] = u, t[57] = D, t[58] = wt, t[59] = kt, t[60] = M, t[61] = g, t[62] = lt, t[63] = jt) : jt = t[63];
|
|
491
489
|
let Ot;
|
|
492
|
-
t[
|
|
490
|
+
t[64] !== Mt || t[65] !== jt ? (Ot = /* @__PURE__ */ n.jsxs(xe, { ref: Et, children: [
|
|
491
|
+
Mt,
|
|
492
|
+
jt
|
|
493
|
+
] }), t[64] = Mt, t[65] = jt, t[66] = Ot) : Ot = t[66];
|
|
494
|
+
let Ct;
|
|
495
|
+
t[67] !== c?.footnote || t[68] !== c?.source || t[69] !== F || t[70] !== tt || t[71] !== u?.footnote || t[72] !== u?.source || t[73] !== h ? (Ct = tt || F ? /* @__PURE__ */ n.jsx(Me, { styles: {
|
|
493
496
|
footnote: u?.footnote,
|
|
494
497
|
source: u?.source
|
|
495
498
|
}, classNames: {
|
|
496
|
-
footnote:
|
|
497
|
-
source:
|
|
498
|
-
}, sources: tt, footNote: F, width: h }) : null, t[
|
|
499
|
+
footnote: c?.footnote,
|
|
500
|
+
source: c?.source
|
|
501
|
+
}, sources: tt, footNote: F, width: h }) : null, t[67] = c?.footnote, t[68] = c?.source, t[69] = F, t[70] = tt, t[71] = u?.footnote, t[72] = u?.source, t[73] = h, t[74] = Ct) : Ct = t[74];
|
|
499
502
|
let Nt;
|
|
500
|
-
return t[
|
|
501
|
-
vt,
|
|
503
|
+
return t[75] !== ut || t[76] !== G || t[77] !== I || t[78] !== at || t[79] !== s || t[80] !== b || t[81] !== ct || t[82] !== N || t[83] !== Rt || t[84] !== Xt || t[85] !== yt || t[86] !== bt || t[87] !== Ot || t[88] !== Ct || t[89] !== M || t[90] !== h ? (Nt = /* @__PURE__ */ n.jsxs(ve, { className: Rt, style: Xt, id: I, ref: Ht, "aria-label": ut, backgroundColor: G, theme: M, language: s, minHeight: b, width: h, height: at, relativeHeight: N, padding: ct, children: [
|
|
502
504
|
yt,
|
|
503
|
-
|
|
504
|
-
Ot
|
|
505
|
-
|
|
505
|
+
bt,
|
|
506
|
+
Ot,
|
|
507
|
+
Ct
|
|
508
|
+
] }), t[75] = ut, t[76] = G, t[77] = I, t[78] = at, t[79] = s, t[80] = b, t[81] = ct, t[82] = N, t[83] = Rt, t[84] = Xt, t[85] = yt, t[86] = bt, t[87] = Ot, t[88] = Ct, t[89] = M, t[90] = h, t[91] = Nt) : Nt = t[91], Nt;
|
|
506
509
|
}
|
|
507
|
-
function
|
|
510
|
+
function xo(e) {
|
|
508
511
|
return e.color;
|
|
509
512
|
}
|
|
510
|
-
function
|
|
513
|
+
function vo(e) {
|
|
511
514
|
return e.color;
|
|
512
515
|
}
|
|
513
|
-
function
|
|
516
|
+
function yo(e) {
|
|
514
517
|
return e.color;
|
|
515
518
|
}
|
|
516
|
-
function
|
|
519
|
+
function bo(e) {
|
|
517
520
|
return e !== void 0;
|
|
518
521
|
}
|
|
519
|
-
function
|
|
522
|
+
function Mo(e) {
|
|
520
523
|
return e !== void 0;
|
|
521
524
|
}
|
|
522
|
-
function
|
|
525
|
+
function jo(e) {
|
|
523
526
|
return e.data;
|
|
524
527
|
}
|
|
525
|
-
function
|
|
528
|
+
function Oo(e) {
|
|
526
529
|
return e !== void 0;
|
|
527
530
|
}
|
|
528
|
-
function
|
|
531
|
+
function Co(e) {
|
|
529
532
|
return e.data;
|
|
530
533
|
}
|
|
531
534
|
export {
|
|
532
|
-
|
|
535
|
+
Jo as BeeSwarmChart
|
|
533
536
|
};
|
|
534
537
|
//# sourceMappingURL=BeeSwarmChart.js.map
|