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