@undp/data-viz 1.4.12 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.js +25 -24
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +638 -632
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +134 -132
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +35 -34
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +226 -224
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +48 -47
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +56 -55
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.cjs +3 -3
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +2 -1
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.js +9 -8
- package/dist/DataTable.js.map +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +1 -0
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.js +77 -76
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +1 -0
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{DropdownSelect-CeHog_ih.js → DropdownSelect-CtOKZHD0.js} +22 -20
- package/dist/{DropdownSelect-CeHog_ih.js.map → DropdownSelect-CtOKZHD0.js.map} +1 -1
- package/dist/{DropdownSelect-BmE5JaeE.cjs → DropdownSelect-DBDM64B5.cjs} +2 -2
- package/dist/{DropdownSelect-BmE5JaeE.cjs.map → DropdownSelect-DBDM64B5.cjs.map} +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.d.ts +3 -1
- package/dist/DualAxisLineChart.js +265 -261
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +216 -214
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.cjs.map +1 -1
- package/dist/GeoHubCompareMaps.js +1 -0
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.cjs.map +1 -1
- package/dist/GeoHubMap.js +29 -28
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +34 -33
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/{GraphEl-s3ctz7oA.js → GraphEl-N6vuMRw_.js} +6 -2
- package/dist/GraphEl-N6vuMRw_.js.map +1 -0
- package/dist/GraphEl-Zl0W-LK9.cjs +2 -0
- package/dist/GraphEl-Zl0W-LK9.cjs.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +2 -2
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +55 -54
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +22 -21
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboard.js +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +34 -33
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +72 -71
- 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 +4 -0
- package/dist/ParetoChart.js +317 -312
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +27 -26
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +30 -29
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +119 -118
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +16 -15
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +2 -2
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +46 -45
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.cjs.map +1 -1
- package/dist/SparkLine.js +12 -11
- package/dist/SparkLine.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +81 -79
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.js +1 -0
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +114 -113
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.js +10 -9
- package/dist/UnitChart.js.map +1 -1
- package/dist/{index-CZLvTu6p.cjs → index-BbNoLJ_w.cjs} +2 -2
- package/dist/{index-CZLvTu6p.cjs.map → index-BbNoLJ_w.cjs.map} +1 -1
- package/dist/{index-DGAaLNu9.js → index-Bc5VF70V.js} +46 -45
- package/dist/{index-DGAaLNu9.js.map → index-Bc5VF70V.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/GraphEl-OzC-icbr.cjs +0 -2
- package/dist/GraphEl-OzC-icbr.cjs.map +0 -1
- package/dist/GraphEl-s3ctz7oA.js.map +0 -1
package/dist/BeeSwarmChart.js
CHANGED
|
@@ -9,7 +9,7 @@ import { n as xe } from "./numberFormattingFunction-14YCbkN2.js";
|
|
|
9
9
|
import { T as pe } from "./Tooltip-DyM5snqx.js";
|
|
10
10
|
import { c as D } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
11
|
import { g as ye } from "./getTextColorBasedOnBgColor-B6Nk2WBf.js";
|
|
12
|
-
import { Colors as
|
|
12
|
+
import { Colors as re } from "./Colors.js";
|
|
13
13
|
import { s as ve } from "./string2HTML-CWHGfz_d.js";
|
|
14
14
|
import { A as be } from "./Axis-Ddg-seDi.js";
|
|
15
15
|
import { X as Te } from "./XTicksAndGridLines-Bn9u5gOM.js";
|
|
@@ -24,7 +24,7 @@ import { E as Le } from "./EmptyState-DdTp-Mdn.js";
|
|
|
24
24
|
import { Y as He } from "./YTicksAndGridLines-B6ah7CRf.js";
|
|
25
25
|
function Fe(se) {
|
|
26
26
|
const {
|
|
27
|
-
data:
|
|
27
|
+
data: l,
|
|
28
28
|
circleColors: c,
|
|
29
29
|
showTicks: C,
|
|
30
30
|
leftMargin: ie,
|
|
@@ -37,7 +37,7 @@ function Fe(se) {
|
|
|
37
37
|
showLabels: P,
|
|
38
38
|
tooltip: p,
|
|
39
39
|
onSeriesMouseOver: V,
|
|
40
|
-
refValues:
|
|
40
|
+
refValues: h,
|
|
41
41
|
selectedColor: E,
|
|
42
42
|
startFromZero: W,
|
|
43
43
|
radius: x,
|
|
@@ -46,7 +46,7 @@ function Fe(se) {
|
|
|
46
46
|
minValue: U,
|
|
47
47
|
highlightedDataPoints: J,
|
|
48
48
|
onSeriesMouseClick: G,
|
|
49
|
-
rtl:
|
|
49
|
+
rtl: le,
|
|
50
50
|
resetSelectionOnDoubleClick: K,
|
|
51
51
|
detailsOnClick: A,
|
|
52
52
|
suffix: N,
|
|
@@ -57,32 +57,32 @@ function Fe(se) {
|
|
|
57
57
|
dimmedOpacity: F,
|
|
58
58
|
precision: R,
|
|
59
59
|
customLayers: k
|
|
60
|
-
} = se, z = ae(null), [j, v] = T(void 0), [S, I] = T(void 0), [_, Z] = T(null), [ee, m] = T(void 0), [f,
|
|
60
|
+
} = se, z = ae(null), [j, v] = T(void 0), [S, I] = T(void 0), [_, Z] = T(null), [ee, m] = T(void 0), [f, d] = T(void 0), g = {
|
|
61
61
|
top: X,
|
|
62
62
|
bottom: Y,
|
|
63
63
|
left: ie,
|
|
64
64
|
right: oe
|
|
65
|
-
}, q = b -
|
|
66
|
-
|
|
65
|
+
}, q = b - g.left - g.right, te = w - g.top - g.bottom, O = l.filter((e) => !D(e.radius)).length === 0 ? l : ue(
|
|
66
|
+
l.filter((e) => !D(e.radius)),
|
|
67
67
|
"radius",
|
|
68
68
|
"desc"
|
|
69
|
-
), M = D(a) ? Math.max(...
|
|
69
|
+
), M = D(a) ? Math.max(...l.filter((e) => !D(e.position)).map((e) => e.position)) < 0 && !W ? 0 : Math.max(...l.filter((e) => !D(e.position)).map((e) => e.position)) : a, r = D(U) ? Math.min(...l.filter((e) => !D(e.position)).map((e) => e.position)) >= 0 && !W ? 0 : Math.min(...l.filter((e) => !D(e.position)).map((e) => e.position)) : U, s = l.filter((e) => e.radius === void 0 || e.radius === null).length !== l.length ? we().domain([
|
|
70
70
|
0,
|
|
71
|
-
D(B) ? Math.max(...
|
|
72
|
-
]).range([0.25, x]).nice() : void 0, L = je().domain([
|
|
71
|
+
D(B) ? Math.max(...l.map((e) => e.radius).filter((e) => e != null)) : B
|
|
72
|
+
]).range([0.25, x]).nice() : void 0, L = je().domain([r, M]).range([0, q]).nice(), t = L.ticks(Q);
|
|
73
73
|
return de(() => {
|
|
74
74
|
Z(null);
|
|
75
|
-
const e = O.filter((
|
|
76
|
-
Me(e).force("x", Ce((
|
|
75
|
+
const e = O.filter((u) => u.position);
|
|
76
|
+
Me(e).force("x", Ce((u) => L(u.position)).strength(5)).force("y", Oe((u) => te / 2).strength(1)).force(
|
|
77
77
|
"collide",
|
|
78
78
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
|
-
De((
|
|
79
|
+
De((u) => s ? s(u.radius || 0) + 1 : x + 1)
|
|
80
80
|
).force("charge", ke().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
81
81
|
Z(e);
|
|
82
82
|
}).on("end", () => {
|
|
83
83
|
Z(e);
|
|
84
84
|
});
|
|
85
|
-
}, [
|
|
85
|
+
}, [l, x, te, q, r, M, O, L, s]), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
86
86
|
_ ? /* @__PURE__ */ i.jsx(
|
|
87
87
|
"svg",
|
|
88
88
|
{
|
|
@@ -91,24 +91,24 @@ function Fe(se) {
|
|
|
91
91
|
viewBox: `0 0 ${b} ${w}`,
|
|
92
92
|
direction: "ltr",
|
|
93
93
|
ref: z,
|
|
94
|
-
children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${
|
|
94
|
+
children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${g.left},${g.top})`, children: [
|
|
95
95
|
C ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
96
96
|
/* @__PURE__ */ i.jsx(
|
|
97
97
|
be,
|
|
98
98
|
{
|
|
99
|
-
x1: L(
|
|
100
|
-
x2: L(
|
|
101
|
-
y1: 0 -
|
|
102
|
-
y2: te +
|
|
99
|
+
x1: L(r < 0 ? 0 : r),
|
|
100
|
+
x2: L(r < 0 ? 0 : r),
|
|
101
|
+
y1: 0 - g.top,
|
|
102
|
+
y2: te + g.bottom,
|
|
103
103
|
label: xe(
|
|
104
|
-
|
|
104
|
+
r < 0 ? 0 : r,
|
|
105
105
|
"NA",
|
|
106
106
|
R,
|
|
107
107
|
$,
|
|
108
108
|
N
|
|
109
109
|
),
|
|
110
110
|
labelPos: {
|
|
111
|
-
x: L(
|
|
111
|
+
x: L(r < 0 ? 0 : r),
|
|
112
112
|
y: 0 - X,
|
|
113
113
|
dy: "0.75em",
|
|
114
114
|
dx: 3
|
|
@@ -129,7 +129,7 @@ function Fe(se) {
|
|
|
129
129
|
values: t.filter((e) => e !== 0),
|
|
130
130
|
x: t.filter((e) => e !== 0).map((e) => L(e)),
|
|
131
131
|
y1: 0 - X,
|
|
132
|
-
y2: te +
|
|
132
|
+
y2: te + g.bottom,
|
|
133
133
|
styles: {
|
|
134
134
|
gridLines: y?.xAxis?.gridLines,
|
|
135
135
|
labels: y?.xAxis?.labels
|
|
@@ -153,17 +153,17 @@ function Fe(se) {
|
|
|
153
153
|
className: "undp-viz-g-with-hover",
|
|
154
154
|
transform: `translate(${e.x},${e.y})`,
|
|
155
155
|
opacity: E ? e.color && c[n.indexOf(e.color)] === E ? 1 : F : J.length !== 0 ? J.indexOf(e.label) !== -1 ? 0.85 : F : 0.85,
|
|
156
|
-
onMouseEnter: (
|
|
157
|
-
v(e),
|
|
156
|
+
onMouseEnter: (u) => {
|
|
157
|
+
v(e), d(u.clientY), m(u.clientX), V?.(e);
|
|
158
158
|
},
|
|
159
|
-
onMouseMove: (
|
|
160
|
-
v(e),
|
|
159
|
+
onMouseMove: (u) => {
|
|
160
|
+
v(e), d(u.clientY), m(u.clientX);
|
|
161
161
|
},
|
|
162
162
|
onClick: () => {
|
|
163
163
|
(G || A) && (ge(S, e) && K ? (I(void 0), G?.(void 0)) : (I(e), G?.(e)));
|
|
164
164
|
},
|
|
165
165
|
onMouseLeave: () => {
|
|
166
|
-
v(void 0), m(void 0),
|
|
166
|
+
v(void 0), m(void 0), d(void 0), V?.(void 0);
|
|
167
167
|
},
|
|
168
168
|
children: [
|
|
169
169
|
/* @__PURE__ */ i.jsx(
|
|
@@ -171,7 +171,7 @@ function Fe(se) {
|
|
|
171
171
|
{
|
|
172
172
|
cx: 0,
|
|
173
173
|
cy: 0,
|
|
174
|
-
fill:
|
|
174
|
+
fill: l.filter((u) => u.color).length === 0 ? c[0] : e.color ? c[n.indexOf(e.color)] : re.gray,
|
|
175
175
|
radius: s ? s(e.radius || 0) : x
|
|
176
176
|
}
|
|
177
177
|
),
|
|
@@ -206,7 +206,7 @@ function Fe(se) {
|
|
|
206
206
|
20
|
|
207
207
|
)}px`,
|
|
208
208
|
color: ye(
|
|
209
|
-
|
|
209
|
+
l.filter((u) => u.color).length === 0 ? c[0] : e.color ? c[n.indexOf(e.color)] : re.gray
|
|
210
210
|
),
|
|
211
211
|
hyphens: "auto",
|
|
212
212
|
...y?.graphObjectValues || {}
|
|
@@ -220,20 +220,20 @@ function Fe(se) {
|
|
|
220
220
|
},
|
|
221
221
|
e.label
|
|
222
222
|
)),
|
|
223
|
-
|
|
223
|
+
h ? /* @__PURE__ */ i.jsx(i.Fragment, { children: h.map((e, u) => /* @__PURE__ */ i.jsx(
|
|
224
224
|
Ve,
|
|
225
225
|
{
|
|
226
226
|
text: e.text,
|
|
227
227
|
color: e.color,
|
|
228
228
|
x: L(e.value),
|
|
229
|
-
y1: 0 -
|
|
230
|
-
y2: te +
|
|
231
|
-
textSide: L(e.value) > q * 0.75 ||
|
|
229
|
+
y1: 0 - g.top,
|
|
230
|
+
y2: te + g.bottom,
|
|
231
|
+
textSide: L(e.value) > q * 0.75 || le ? "left" : "right",
|
|
232
232
|
classNames: e.classNames,
|
|
233
233
|
styles: e.styles,
|
|
234
234
|
isInView: !0
|
|
235
235
|
},
|
|
236
|
-
|
|
236
|
+
u
|
|
237
237
|
)) }) : null,
|
|
238
238
|
k.filter((e) => e.position === "after").map((e) => e.layer)
|
|
239
239
|
] })
|
|
@@ -271,7 +271,7 @@ function Fe(se) {
|
|
|
271
271
|
}
|
|
272
272
|
function Pe(se) {
|
|
273
273
|
const {
|
|
274
|
-
data:
|
|
274
|
+
data: l,
|
|
275
275
|
graphTitle: c,
|
|
276
276
|
backgroundColor: C = !1,
|
|
277
277
|
topMargin: ie = 25,
|
|
@@ -284,7 +284,7 @@ function Pe(se) {
|
|
|
284
284
|
sources: P,
|
|
285
285
|
graphDescription: p,
|
|
286
286
|
height: V,
|
|
287
|
-
width:
|
|
287
|
+
width: h,
|
|
288
288
|
footNote: E,
|
|
289
289
|
colorDomain: W,
|
|
290
290
|
colorLegendTitle: x,
|
|
@@ -293,7 +293,7 @@ function Pe(se) {
|
|
|
293
293
|
tooltip: U,
|
|
294
294
|
onSeriesMouseOver: J,
|
|
295
295
|
refValues: G,
|
|
296
|
-
showColorScale:
|
|
296
|
+
showColorScale: le,
|
|
297
297
|
graphID: K,
|
|
298
298
|
radius: A = 5,
|
|
299
299
|
maxRadiusValue: N,
|
|
@@ -314,26 +314,27 @@ function Pe(se) {
|
|
|
314
314
|
prefix: ee = "",
|
|
315
315
|
styles: m,
|
|
316
316
|
classNames: f,
|
|
317
|
-
noOfTicks:
|
|
318
|
-
dimmedOpacity:
|
|
317
|
+
noOfTicks: d,
|
|
318
|
+
dimmedOpacity: g = 0.3,
|
|
319
319
|
precision: q = 2,
|
|
320
320
|
customLayers: te = []
|
|
321
|
-
} = se, [O, M] = T(0), [
|
|
321
|
+
} = se, [O, M] = T(0), [r, s] = T(0), [L, t] = T(void 0), e = ae(null), u = ae(null);
|
|
322
322
|
return de(() => {
|
|
323
323
|
const o = new ResizeObserver((ne) => {
|
|
324
|
-
M(
|
|
324
|
+
M(h || ne[0].target.clientWidth || 620), s(V || ne[0].target.clientHeight || 480);
|
|
325
325
|
});
|
|
326
|
-
return e.current && (s(e.current.clientHeight || 480), M(e.current.clientWidth || 620),
|
|
327
|
-
}, [
|
|
326
|
+
return e.current && (s(e.current.clientHeight || 480), M(e.current.clientWidth || 620), h || o.observe(e.current)), () => o.disconnect();
|
|
327
|
+
}, [h, V]), /* @__PURE__ */ i.jsx(
|
|
328
328
|
"div",
|
|
329
329
|
{
|
|
330
|
-
className: `${v || "light"} flex ${
|
|
330
|
+
className: `${v || "light"} flex ${h ? "w-fit grow-0" : "w-full grow"}`,
|
|
331
331
|
dir: k === "he" || k === "ar" ? "rtl" : void 0,
|
|
332
332
|
children: /* @__PURE__ */ i.jsx(
|
|
333
333
|
"div",
|
|
334
334
|
{
|
|
335
335
|
className: he(
|
|
336
336
|
`${C ? C === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${k || "en"}`,
|
|
337
|
+
h ? "w-fit" : "w-full",
|
|
337
338
|
f?.graphContainer
|
|
338
339
|
),
|
|
339
340
|
style: {
|
|
@@ -341,7 +342,7 @@ function Pe(se) {
|
|
|
341
342
|
...C && C !== !0 ? { backgroundColor: C } : {}
|
|
342
343
|
},
|
|
343
344
|
id: K,
|
|
344
|
-
ref:
|
|
345
|
+
ref: u,
|
|
345
346
|
"aria-label": S || `${c ? `The graph shows ${c}. ` : ""}This is a bee swarm chart showing the distribution along the x-axes. ${p ? ` ${p}` : ""}`,
|
|
346
347
|
children: /* @__PURE__ */ i.jsx(
|
|
347
348
|
"div",
|
|
@@ -362,20 +363,20 @@ function Pe(se) {
|
|
|
362
363
|
},
|
|
363
364
|
graphTitle: c,
|
|
364
365
|
graphDescription: p,
|
|
365
|
-
width:
|
|
366
|
-
graphDownload: F ?
|
|
367
|
-
dataDownload: R ?
|
|
366
|
+
width: h,
|
|
367
|
+
graphDownload: F ? u.current : void 0,
|
|
368
|
+
dataDownload: R ? l.map((o) => o.data).filter((o) => o !== void 0).length > 0 ? l.map((o) => o.data).filter((o) => o !== void 0) : l.filter((o) => o !== void 0) : null
|
|
368
369
|
}
|
|
369
370
|
) : null,
|
|
370
|
-
/* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children:
|
|
371
|
-
|
|
371
|
+
/* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: l.length === 0 ? /* @__PURE__ */ i.jsx(Le, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
372
|
+
le !== !1 && l.filter((o) => o.color).length !== 0 ? /* @__PURE__ */ i.jsx(
|
|
372
373
|
Se,
|
|
373
374
|
{
|
|
374
|
-
width:
|
|
375
|
+
width: h,
|
|
375
376
|
colorLegendTitle: x,
|
|
376
|
-
colors: Y ||
|
|
377
|
+
colors: Y || re[v].categoricalColors.colors,
|
|
377
378
|
colorDomain: W || ce(
|
|
378
|
-
|
|
379
|
+
l.filter((o) => o.color),
|
|
379
380
|
"color"
|
|
380
381
|
).map((o) => o.color),
|
|
381
382
|
setSelectedColor: t,
|
|
@@ -388,20 +389,20 @@ function Pe(se) {
|
|
|
388
389
|
className: "flex flex-col grow justify-center w-full leading-0",
|
|
389
390
|
ref: e,
|
|
390
391
|
"aria-label": "Graph area",
|
|
391
|
-
children: (
|
|
392
|
+
children: (h || O) && (V || r) ? /* @__PURE__ */ i.jsx(
|
|
392
393
|
Fe,
|
|
393
394
|
{
|
|
394
|
-
data:
|
|
395
|
-
circleColors:
|
|
396
|
-
colorDomain:
|
|
397
|
-
|
|
395
|
+
data: l,
|
|
396
|
+
circleColors: l.filter((o) => o.color).length === 0 ? Y ? [Y] : [re.primaryColors["blue-600"]] : Y || re[v].categoricalColors.colors,
|
|
397
|
+
colorDomain: l.filter((o) => o.color).length === 0 ? [] : W || ce(
|
|
398
|
+
l.filter((o) => o.color),
|
|
398
399
|
"color"
|
|
399
400
|
).map((o) => o.color),
|
|
400
|
-
width:
|
|
401
|
+
width: h || O,
|
|
401
402
|
selectedColor: L,
|
|
402
403
|
height: Math.max(
|
|
403
404
|
j,
|
|
404
|
-
V || (a ? j ? (
|
|
405
|
+
V || (a ? j ? (h || O) * a > j ? (h || O) * a : j : (h || O) * a : r)
|
|
405
406
|
),
|
|
406
407
|
showTicks: X,
|
|
407
408
|
leftMargin: w,
|
|
@@ -426,8 +427,8 @@ function Pe(se) {
|
|
|
426
427
|
prefix: ee,
|
|
427
428
|
styles: m,
|
|
428
429
|
classNames: f,
|
|
429
|
-
noOfTicks:
|
|
430
|
-
dimmedOpacity:
|
|
430
|
+
noOfTicks: d || 5,
|
|
431
|
+
dimmedOpacity: g,
|
|
431
432
|
precision: q,
|
|
432
433
|
customLayers: te
|
|
433
434
|
}
|
|
@@ -445,7 +446,7 @@ function Pe(se) {
|
|
|
445
446
|
},
|
|
446
447
|
sources: P,
|
|
447
448
|
footNote: E,
|
|
448
|
-
width:
|
|
449
|
+
width: h
|
|
449
450
|
}
|
|
450
451
|
) : null
|
|
451
452
|
] })
|
|
@@ -458,7 +459,7 @@ function Pe(se) {
|
|
|
458
459
|
}
|
|
459
460
|
function Re(se) {
|
|
460
461
|
const {
|
|
461
|
-
data:
|
|
462
|
+
data: l,
|
|
462
463
|
circleColors: c,
|
|
463
464
|
showTicks: C,
|
|
464
465
|
leftMargin: ie,
|
|
@@ -471,7 +472,7 @@ function Re(se) {
|
|
|
471
472
|
suffix: P,
|
|
472
473
|
prefix: p,
|
|
473
474
|
showLabels: V,
|
|
474
|
-
tooltip:
|
|
475
|
+
tooltip: h,
|
|
475
476
|
onSeriesMouseOver: E,
|
|
476
477
|
refValues: W,
|
|
477
478
|
selectedColor: x,
|
|
@@ -480,7 +481,7 @@ function Re(se) {
|
|
|
480
481
|
maxRadiusValue: U,
|
|
481
482
|
maxValue: J,
|
|
482
483
|
minValue: G,
|
|
483
|
-
highlightedDataPoints:
|
|
484
|
+
highlightedDataPoints: le,
|
|
484
485
|
onSeriesMouseClick: K,
|
|
485
486
|
resetSelectionOnDoubleClick: A,
|
|
486
487
|
detailsOnClick: N,
|
|
@@ -490,32 +491,32 @@ function Re(se) {
|
|
|
490
491
|
dimmedOpacity: Q,
|
|
491
492
|
precision: F,
|
|
492
493
|
customLayers: R
|
|
493
|
-
} = se, k = ae(null), [z, j] = T(void 0), [v, S] = T(void 0), [I, _] = T(null), [Z, ee] = T(void 0), [m, f] = T(void 0),
|
|
494
|
+
} = se, k = ae(null), [z, j] = T(void 0), [v, S] = T(void 0), [I, _] = T(null), [Z, ee] = T(void 0), [m, f] = T(void 0), d = {
|
|
494
495
|
top: X,
|
|
495
496
|
bottom: Y,
|
|
496
497
|
left: ie,
|
|
497
498
|
right: oe
|
|
498
|
-
},
|
|
499
|
-
|
|
499
|
+
}, g = b - d.left - d.right, q = w - d.top - d.bottom, te = l.filter((t) => !D(t.radius)).length === 0 ? l : ue(
|
|
500
|
+
l.filter((t) => !D(t.radius)),
|
|
500
501
|
"radius",
|
|
501
502
|
"desc"
|
|
502
|
-
), O = D(J) ? Math.max(...
|
|
503
|
+
), O = D(J) ? Math.max(...l.filter((t) => !D(t.position)).map((t) => t.position)) < 0 && !B ? 0 : Math.max(...l.filter((t) => !D(t.position)).map((t) => t.position)) : J, M = D(G) ? Math.min(...l.filter((t) => !D(t.position)).map((t) => t.position)) >= 0 && !B ? 0 : Math.min(...l.filter((t) => !D(t.position)).map((t) => t.position)) : G, r = l.filter((t) => t.radius === void 0 || t.radius === null).length !== l.length ? we().domain([
|
|
503
504
|
0,
|
|
504
|
-
D(U) ? Math.max(...
|
|
505
|
+
D(U) ? Math.max(...l.map((t) => t.radius).filter((t) => t != null)) : U
|
|
505
506
|
]).range([0.25, a]).nice() : void 0, s = je().domain([M, O]).range([q, 0]).nice(), L = s.ticks(H);
|
|
506
507
|
return de(() => {
|
|
507
508
|
_(null);
|
|
508
509
|
const t = te.filter((e) => e.position);
|
|
509
|
-
Me(t).force("y", Oe((e) => s(e.position)).strength(5)).force("x", Ce((e) =>
|
|
510
|
+
Me(t).force("y", Oe((e) => s(e.position)).strength(5)).force("x", Ce((e) => g / 2).strength(1)).force(
|
|
510
511
|
"collide",
|
|
511
512
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
512
|
-
De((e) =>
|
|
513
|
+
De((e) => r ? r(e.radius || 0) + 1 : a + 1)
|
|
513
514
|
).force("charge", ke().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
514
515
|
_(t);
|
|
515
516
|
}).on("end", () => {
|
|
516
517
|
_(t);
|
|
517
518
|
});
|
|
518
|
-
}, [
|
|
519
|
+
}, [l, a, q, g, M, O, te, s, r]), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
519
520
|
I ? /* @__PURE__ */ i.jsx(
|
|
520
521
|
"svg",
|
|
521
522
|
{
|
|
@@ -524,15 +525,15 @@ function Re(se) {
|
|
|
524
525
|
viewBox: `0 0 ${b} ${w}`,
|
|
525
526
|
direction: "ltr",
|
|
526
527
|
ref: k,
|
|
527
|
-
children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${
|
|
528
|
+
children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${d.left},${d.top})`, children: [
|
|
528
529
|
C ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
529
530
|
/* @__PURE__ */ i.jsx(
|
|
530
531
|
be,
|
|
531
532
|
{
|
|
532
533
|
y1: s(M < 0 ? 0 : M),
|
|
533
534
|
y2: s(M < 0 ? 0 : M),
|
|
534
|
-
x1: 0 -
|
|
535
|
-
x2:
|
|
535
|
+
x1: 0 - d.left,
|
|
536
|
+
x2: g + d.right,
|
|
536
537
|
label: xe(
|
|
537
538
|
M < 0 ? 0 : M,
|
|
538
539
|
"NA",
|
|
@@ -541,7 +542,7 @@ function Re(se) {
|
|
|
541
542
|
P
|
|
542
543
|
),
|
|
543
544
|
labelPos: {
|
|
544
|
-
x: 0 -
|
|
545
|
+
x: 0 - d.left,
|
|
545
546
|
y: s(M < 0 ? 0 : M),
|
|
546
547
|
dx: 0,
|
|
547
548
|
dy: O < 0 ? "1em" : -5
|
|
@@ -561,8 +562,8 @@ function Re(se) {
|
|
|
561
562
|
{
|
|
562
563
|
values: L.filter((t) => t !== 0),
|
|
563
564
|
y: L.filter((t) => t !== 0).map((t) => s(t)),
|
|
564
|
-
x1: 0 -
|
|
565
|
-
x2:
|
|
565
|
+
x1: 0 - d.left,
|
|
566
|
+
x2: g + d.right,
|
|
566
567
|
styles: {
|
|
567
568
|
gridLines: $?.yAxis?.gridLines,
|
|
568
569
|
labels: $?.yAxis?.labels
|
|
@@ -586,7 +587,7 @@ function Re(se) {
|
|
|
586
587
|
{
|
|
587
588
|
className: "undp-viz-g-with-hover",
|
|
588
589
|
transform: `translate(${t.x},${t.y})`,
|
|
589
|
-
opacity: x ? t.color && c[n.indexOf(t.color)] === x ? 1 : Q :
|
|
590
|
+
opacity: x ? t.color && c[n.indexOf(t.color)] === x ? 1 : Q : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : Q : 0.85,
|
|
590
591
|
onMouseEnter: (e) => {
|
|
591
592
|
j(t), f(e.clientY), ee(e.clientX), E?.(t);
|
|
592
593
|
},
|
|
@@ -605,17 +606,17 @@ function Re(se) {
|
|
|
605
606
|
{
|
|
606
607
|
cx: 0,
|
|
607
608
|
cy: 0,
|
|
608
|
-
r:
|
|
609
|
-
fill:
|
|
609
|
+
r: r ? r(t.radius || 0) : a,
|
|
610
|
+
fill: l.filter((e) => e.color).length === 0 ? c[0] : t.color ? c[n.indexOf(t.color)] : re.gray
|
|
610
611
|
}
|
|
611
612
|
),
|
|
612
|
-
(
|
|
613
|
+
(r ? r(t.radius || 0) : a) > 10 && V ? /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx(
|
|
613
614
|
"foreignObject",
|
|
614
615
|
{
|
|
615
|
-
y: 0 - (
|
|
616
|
-
x: 0 - (
|
|
617
|
-
width: 2 * (
|
|
618
|
-
height: 2 * (
|
|
616
|
+
y: 0 - (r ? r(t.radius || 0) : a),
|
|
617
|
+
x: 0 - (r ? r(t.radius || 0) : a),
|
|
618
|
+
width: 2 * (r ? r(t.radius || 0) : a),
|
|
619
|
+
height: 2 * (r ? r(t.radius || 0) : a),
|
|
619
620
|
children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-col justify-center items-center h-inherit py-0 px-1.5", children: V ? /* @__PURE__ */ i.jsx(
|
|
620
621
|
"p",
|
|
621
622
|
{
|
|
@@ -627,13 +628,13 @@ function Re(se) {
|
|
|
627
628
|
fontSize: `${Math.min(
|
|
628
629
|
Math.max(
|
|
629
630
|
Math.round(
|
|
630
|
-
(
|
|
631
|
+
(r ? r(t.radius || 0) : a) / 4
|
|
631
632
|
),
|
|
632
633
|
10
|
|
633
634
|
),
|
|
634
635
|
Math.max(
|
|
635
636
|
Math.round(
|
|
636
|
-
(
|
|
637
|
+
(r ? r(t.radius || 0) : a) * 12 / `${t.label}`.length
|
|
637
638
|
),
|
|
638
639
|
10
|
|
639
640
|
),
|
|
@@ -641,7 +642,7 @@ function Re(se) {
|
|
|
641
642
|
)}px`,
|
|
642
643
|
hyphens: "auto",
|
|
643
644
|
color: ye(
|
|
644
|
-
|
|
645
|
+
l.filter((e) => e.color).length === 0 ? c[0] : t.color ? c[n.indexOf(t.color)] : re.gray
|
|
645
646
|
),
|
|
646
647
|
...$?.graphObjectValues || {}
|
|
647
648
|
},
|
|
@@ -660,8 +661,8 @@ function Re(se) {
|
|
|
660
661
|
text: t.text,
|
|
661
662
|
color: t.color,
|
|
662
663
|
y: s(t.value),
|
|
663
|
-
x1: 0 -
|
|
664
|
-
x2:
|
|
664
|
+
x1: 0 - d.left,
|
|
665
|
+
x2: g + d.right,
|
|
665
666
|
classNames: t.classNames,
|
|
666
667
|
styles: t.styles,
|
|
667
668
|
isInView: !0
|
|
@@ -672,11 +673,11 @@ function Re(se) {
|
|
|
672
673
|
] })
|
|
673
674
|
}
|
|
674
675
|
) : /* @__PURE__ */ i.jsx("div", { style: { width: `${b}px`, height: `${w}px` }, 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(fe, {}) }) }),
|
|
675
|
-
z &&
|
|
676
|
+
z && h && Z && m ? /* @__PURE__ */ i.jsx(
|
|
676
677
|
pe,
|
|
677
678
|
{
|
|
678
679
|
data: z,
|
|
679
|
-
body:
|
|
680
|
+
body: h,
|
|
680
681
|
xPos: Z,
|
|
681
682
|
yPos: m,
|
|
682
683
|
backgroundStyle: $?.tooltip,
|
|
@@ -704,7 +705,7 @@ function Re(se) {
|
|
|
704
705
|
}
|
|
705
706
|
function Xe(se) {
|
|
706
707
|
const {
|
|
707
|
-
data:
|
|
708
|
+
data: l,
|
|
708
709
|
graphTitle: c,
|
|
709
710
|
colors: C,
|
|
710
711
|
sources: ie,
|
|
@@ -717,7 +718,7 @@ function Xe(se) {
|
|
|
717
718
|
padding: P,
|
|
718
719
|
backgroundColor: p = !1,
|
|
719
720
|
topMargin: V = 25,
|
|
720
|
-
bottomMargin:
|
|
721
|
+
bottomMargin: h = 10,
|
|
721
722
|
leftMargin: E = 100,
|
|
722
723
|
rightMargin: W = 40,
|
|
723
724
|
showLabels: x = !0,
|
|
@@ -726,7 +727,7 @@ function Xe(se) {
|
|
|
726
727
|
tooltip: U,
|
|
727
728
|
onSeriesMouseOver: J,
|
|
728
729
|
refValues: G,
|
|
729
|
-
showColorScale:
|
|
730
|
+
showColorScale: le,
|
|
730
731
|
graphID: K,
|
|
731
732
|
radius: A = 5,
|
|
732
733
|
maxRadiusValue: N,
|
|
@@ -747,11 +748,11 @@ function Xe(se) {
|
|
|
747
748
|
prefix: ee = "",
|
|
748
749
|
styles: m,
|
|
749
750
|
classNames: f,
|
|
750
|
-
noOfTicks:
|
|
751
|
-
dimmedOpacity:
|
|
751
|
+
noOfTicks: d,
|
|
752
|
+
dimmedOpacity: g = 0.3,
|
|
752
753
|
precision: q = 2,
|
|
753
754
|
customLayers: te = []
|
|
754
|
-
} = se, [O, M] = T(0), [
|
|
755
|
+
} = se, [O, M] = T(0), [r, s] = T(0), [L, t] = T(void 0), e = ae(null), u = ae(null);
|
|
755
756
|
return de(() => {
|
|
756
757
|
const o = new ResizeObserver((ne) => {
|
|
757
758
|
M(n || ne[0].target.clientWidth || 620), s(w || ne[0].target.clientHeight || 480);
|
|
@@ -767,6 +768,7 @@ function Xe(se) {
|
|
|
767
768
|
{
|
|
768
769
|
className: he(
|
|
769
770
|
`${p ? p === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${k || "en"}`,
|
|
771
|
+
n ? "w-fit" : "w-full",
|
|
770
772
|
f?.graphContainer
|
|
771
773
|
),
|
|
772
774
|
style: {
|
|
@@ -774,7 +776,7 @@ function Xe(se) {
|
|
|
774
776
|
...p && p !== !0 ? { backgroundColor: p } : {}
|
|
775
777
|
},
|
|
776
778
|
id: K,
|
|
777
|
-
ref:
|
|
779
|
+
ref: u,
|
|
778
780
|
"aria-label": S || `${c ? `The graph shows ${c}. ` : ""}This is a bee swarm chart showing the distribution along the y-axes. ${b ? ` ${b}` : ""}`,
|
|
779
781
|
children: /* @__PURE__ */ i.jsx(
|
|
780
782
|
"div",
|
|
@@ -796,19 +798,19 @@ function Xe(se) {
|
|
|
796
798
|
graphTitle: c,
|
|
797
799
|
graphDescription: b,
|
|
798
800
|
width: n,
|
|
799
|
-
graphDownload: F ?
|
|
800
|
-
dataDownload: R ?
|
|
801
|
+
graphDownload: F ? u.current : void 0,
|
|
802
|
+
dataDownload: R ? l.map((o) => o.data).filter((o) => o !== void 0).length > 0 ? l.map((o) => o.data).filter((o) => o !== void 0) : l.filter((o) => o !== void 0) : null
|
|
801
803
|
}
|
|
802
804
|
) : null,
|
|
803
|
-
/* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children:
|
|
804
|
-
|
|
805
|
+
/* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: l.length === 0 ? /* @__PURE__ */ i.jsx(Le, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
806
|
+
le !== !1 && l.filter((o) => o.color).length !== 0 ? /* @__PURE__ */ i.jsx(
|
|
805
807
|
Se,
|
|
806
808
|
{
|
|
807
809
|
width: n,
|
|
808
810
|
colorLegendTitle: Y,
|
|
809
|
-
colors: C ||
|
|
811
|
+
colors: C || re[v].categoricalColors.colors,
|
|
810
812
|
colorDomain: X || ce(
|
|
811
|
-
|
|
813
|
+
l.filter((o) => o.color),
|
|
812
814
|
"color"
|
|
813
815
|
).map((o) => o.color),
|
|
814
816
|
setSelectedColor: t,
|
|
@@ -821,26 +823,26 @@ function Xe(se) {
|
|
|
821
823
|
className: "flex flex-col grow justify-center w-full leading-0",
|
|
822
824
|
ref: e,
|
|
823
825
|
"aria-label": "Graph area",
|
|
824
|
-
children: (n || O) && (w ||
|
|
826
|
+
children: (n || O) && (w || r) ? /* @__PURE__ */ i.jsx(
|
|
825
827
|
Re,
|
|
826
828
|
{
|
|
827
|
-
data:
|
|
828
|
-
circleColors:
|
|
829
|
-
colorDomain:
|
|
830
|
-
|
|
829
|
+
data: l,
|
|
830
|
+
circleColors: l.filter((o) => o.color).length === 0 ? C ? [C] : [re.primaryColors["blue-600"]] : C || re[v].categoricalColors.colors,
|
|
831
|
+
colorDomain: l.filter((o) => o.color).length === 0 ? [] : X || ce(
|
|
832
|
+
l.filter((o) => o.color),
|
|
831
833
|
"color"
|
|
832
834
|
).map((o) => o.color),
|
|
833
835
|
width: n || O,
|
|
834
836
|
selectedColor: L,
|
|
835
837
|
height: Math.max(
|
|
836
838
|
j,
|
|
837
|
-
w || (a ? j ? (n || O) * a > j ? (n || O) * a : j : (n || O) * a :
|
|
839
|
+
w || (a ? j ? (n || O) * a > j ? (n || O) * a : j : (n || O) * a : r)
|
|
838
840
|
),
|
|
839
841
|
showTicks: B,
|
|
840
842
|
leftMargin: E,
|
|
841
843
|
rightMargin: W,
|
|
842
844
|
topMargin: V,
|
|
843
|
-
bottomMargin:
|
|
845
|
+
bottomMargin: h,
|
|
844
846
|
showLabels: x,
|
|
845
847
|
tooltip: U,
|
|
846
848
|
onSeriesMouseOver: J,
|
|
@@ -858,8 +860,8 @@ function Xe(se) {
|
|
|
858
860
|
classNames: f,
|
|
859
861
|
suffix: Z,
|
|
860
862
|
prefix: ee,
|
|
861
|
-
noOfTicks:
|
|
862
|
-
dimmedOpacity:
|
|
863
|
+
noOfTicks: d || 5,
|
|
864
|
+
dimmedOpacity: g,
|
|
863
865
|
precision: q,
|
|
864
866
|
customLayers: te
|
|
865
867
|
}
|
|
@@ -890,7 +892,7 @@ function Xe(se) {
|
|
|
890
892
|
}
|
|
891
893
|
function ht(se) {
|
|
892
894
|
const {
|
|
893
|
-
data:
|
|
895
|
+
data: l,
|
|
894
896
|
graphTitle: c,
|
|
895
897
|
backgroundColor: C,
|
|
896
898
|
topMargin: ie,
|
|
@@ -903,7 +905,7 @@ function ht(se) {
|
|
|
903
905
|
sources: P,
|
|
904
906
|
graphDescription: p,
|
|
905
907
|
height: V,
|
|
906
|
-
width:
|
|
908
|
+
width: h,
|
|
907
909
|
footNote: E,
|
|
908
910
|
colorDomain: W,
|
|
909
911
|
colorLegendTitle: x,
|
|
@@ -912,7 +914,7 @@ function ht(se) {
|
|
|
912
914
|
tooltip: U,
|
|
913
915
|
onSeriesMouseOver: J,
|
|
914
916
|
refValues: G,
|
|
915
|
-
showColorScale:
|
|
917
|
+
showColorScale: le,
|
|
916
918
|
graphID: K,
|
|
917
919
|
radius: A,
|
|
918
920
|
maxRadiusValue: N,
|
|
@@ -933,14 +935,14 @@ function ht(se) {
|
|
|
933
935
|
orientation: ee = "vertical",
|
|
934
936
|
styles: m,
|
|
935
937
|
classNames: f,
|
|
936
|
-
dimmedOpacity:
|
|
937
|
-
precision:
|
|
938
|
+
dimmedOpacity: d,
|
|
939
|
+
precision: g,
|
|
938
940
|
customLayers: q
|
|
939
941
|
} = se;
|
|
940
942
|
return ee === "vertical" ? /* @__PURE__ */ i.jsx(
|
|
941
943
|
Xe,
|
|
942
944
|
{
|
|
943
|
-
data:
|
|
945
|
+
data: l,
|
|
944
946
|
graphTitle: c,
|
|
945
947
|
backgroundColor: C,
|
|
946
948
|
topMargin: ie,
|
|
@@ -953,7 +955,7 @@ function ht(se) {
|
|
|
953
955
|
sources: P,
|
|
954
956
|
graphDescription: p,
|
|
955
957
|
height: V,
|
|
956
|
-
width:
|
|
958
|
+
width: h,
|
|
957
959
|
footNote: E,
|
|
958
960
|
colorDomain: W,
|
|
959
961
|
colorLegendTitle: x,
|
|
@@ -962,7 +964,7 @@ function ht(se) {
|
|
|
962
964
|
tooltip: U,
|
|
963
965
|
onSeriesMouseOver: J,
|
|
964
966
|
refValues: G,
|
|
965
|
-
showColorScale:
|
|
967
|
+
showColorScale: le,
|
|
966
968
|
graphID: K,
|
|
967
969
|
radius: A,
|
|
968
970
|
maxRadiusValue: N,
|
|
@@ -982,14 +984,14 @@ function ht(se) {
|
|
|
982
984
|
detailsOnClick: _,
|
|
983
985
|
classNames: f,
|
|
984
986
|
noOfTicks: Z,
|
|
985
|
-
dimmedOpacity:
|
|
986
|
-
precision:
|
|
987
|
+
dimmedOpacity: d,
|
|
988
|
+
precision: g,
|
|
987
989
|
customLayers: q
|
|
988
990
|
}
|
|
989
991
|
) : /* @__PURE__ */ i.jsx(
|
|
990
992
|
Pe,
|
|
991
993
|
{
|
|
992
|
-
data:
|
|
994
|
+
data: l,
|
|
993
995
|
graphTitle: c,
|
|
994
996
|
backgroundColor: C,
|
|
995
997
|
topMargin: ie,
|
|
@@ -1002,7 +1004,7 @@ function ht(se) {
|
|
|
1002
1004
|
sources: P,
|
|
1003
1005
|
graphDescription: p,
|
|
1004
1006
|
height: V,
|
|
1005
|
-
width:
|
|
1007
|
+
width: h,
|
|
1006
1008
|
footNote: E,
|
|
1007
1009
|
colorDomain: W,
|
|
1008
1010
|
colorLegendTitle: x,
|
|
@@ -1011,7 +1013,7 @@ function ht(se) {
|
|
|
1011
1013
|
tooltip: U,
|
|
1012
1014
|
onSeriesMouseOver: J,
|
|
1013
1015
|
refValues: G,
|
|
1014
|
-
showColorScale:
|
|
1016
|
+
showColorScale: le,
|
|
1015
1017
|
graphID: K,
|
|
1016
1018
|
radius: A,
|
|
1017
1019
|
maxRadiusValue: N,
|
|
@@ -1031,8 +1033,8 @@ function ht(se) {
|
|
|
1031
1033
|
detailsOnClick: _,
|
|
1032
1034
|
classNames: f,
|
|
1033
1035
|
noOfTicks: Z,
|
|
1034
|
-
dimmedOpacity:
|
|
1035
|
-
precision:
|
|
1036
|
+
dimmedOpacity: d,
|
|
1037
|
+
precision: g,
|
|
1036
1038
|
customLayers: q
|
|
1037
1039
|
}
|
|
1038
1040
|
);
|