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