@undp/data-viz 2.0.0 → 2.0.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/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +957 -957
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.js +45 -47
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +76 -56
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +157 -157
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +185 -185
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -4
- package/dist/CirclePackingGraph.js.map +1 -1
- package/dist/Data/barChart.json +70 -0
- package/dist/Data/basic.csv +20 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +224 -223
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +156 -156
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +326 -325
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.cjs.map +1 -1
- package/dist/GeoHubCompareMaps.js +183 -183
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
- package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
- package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
- package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +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 +133 -132
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.js +52 -50
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
- package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +149 -148
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +182 -181
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +123 -122
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.js +83 -79
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
- package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.js +44 -46
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.js +134 -134
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
- package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
- package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
- package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
- package/dist/index-C6LorfZ-.cjs +2 -0
- package/dist/index-C6LorfZ-.cjs.map +1 -0
- package/dist/index-Ceppbd8C.js +342 -0
- package/dist/index-Ceppbd8C.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-DoY3Ga3W.cjs +0 -2
- package/dist/index-DoY3Ga3W.cjs.map +0 -1
- package/dist/index-leTnKT2q.js +0 -329
- package/dist/index-leTnKT2q.js.map +0 -1
package/dist/BeeSwarmChart.js
CHANGED
|
@@ -65,15 +65,15 @@ function xe(e) {
|
|
|
65
65
|
left: ot,
|
|
66
66
|
right: it
|
|
67
67
|
}, t[0] = X, t[1] = ot, t[2] = it, t[3] = ct, t[4] = F) : F = t[4];
|
|
68
|
-
const m = F, f = S - m.left - m.right, nt = A - m.top - m.bottom, H = n.filter(
|
|
68
|
+
const m = F, f = S - m.left - m.right, nt = A - m.top - m.bottom, H = n.filter(Xe).length === 0 ? n : zt(n.filter(Re), "radius", "desc");
|
|
69
69
|
let Q;
|
|
70
|
-
t[5] !== n || t[6] !== q || t[7] !== V ? (Q = x(q) ? Math.max(...n.filter(
|
|
70
|
+
t[5] !== n || t[6] !== q || t[7] !== V ? (Q = x(q) ? Math.max(...n.filter(Pe).map(Ee)) < 0 && !V ? 0 : Math.max(...n.filter(He).map(Fe)) : q, t[5] = n, t[6] = q, t[7] = V, t[8] = Q) : Q = t[8];
|
|
71
71
|
const G = Q;
|
|
72
72
|
let z;
|
|
73
|
-
t[9] !== n || t[10] !== Z || t[11] !== V ? (z = x(Z) ? Math.min(...n.filter(
|
|
74
|
-
const d = z, s = n.filter(
|
|
73
|
+
t[9] !== n || t[10] !== Z || t[11] !== V ? (z = x(Z) ? Math.min(...n.filter(Ve).map(Te)) >= 0 && !V ? 0 : Math.min(...n.filter(Ae).map(Se)) : Z, t[9] = n, t[10] = Z, t[11] = V, t[12] = z) : z = t[12];
|
|
74
|
+
const d = z, s = n.filter(Le).length !== n.length ? Kt().domain([0, x(W) ? Math.max(...n.map(Ne).filter($e)) : W]).range([0.25, p]).nice() : void 0, l = Qt().domain([d, G]).range([nt, 0]).nice(), y = l.ticks(w);
|
|
75
75
|
Ht(() => {
|
|
76
|
-
const r = H.filter(we);
|
|
76
|
+
const r = H.map(De).filter(we);
|
|
77
77
|
_t(r).force("y", ee((o) => l(o.position)).strength(5)).force("x", te((o) => f / 2).strength(1)).force("collide", oe((o) => s ? s(o.radius || 0) + 1 : p + 1)).force("charge", ie().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
78
78
|
u(r);
|
|
79
79
|
}).on("end", () => {
|
|
@@ -169,45 +169,55 @@ function we(e) {
|
|
|
169
169
|
return e.position;
|
|
170
170
|
}
|
|
171
171
|
function De(e) {
|
|
172
|
-
return
|
|
172
|
+
return {
|
|
173
|
+
...e,
|
|
174
|
+
...e.data && {
|
|
175
|
+
data: {
|
|
176
|
+
...e.data
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
173
180
|
}
|
|
174
181
|
function $e(e) {
|
|
175
|
-
return e
|
|
182
|
+
return e != null;
|
|
176
183
|
}
|
|
177
184
|
function Ne(e) {
|
|
178
|
-
return e.radius
|
|
185
|
+
return e.radius;
|
|
179
186
|
}
|
|
180
187
|
function Le(e) {
|
|
181
|
-
return e.
|
|
188
|
+
return e.radius === void 0 || e.radius === null;
|
|
182
189
|
}
|
|
183
190
|
function Se(e) {
|
|
184
|
-
return
|
|
191
|
+
return e.position;
|
|
185
192
|
}
|
|
186
193
|
function Ae(e) {
|
|
187
|
-
return e.position;
|
|
194
|
+
return !x(e.position);
|
|
188
195
|
}
|
|
189
196
|
function Te(e) {
|
|
190
|
-
return
|
|
197
|
+
return e.position;
|
|
191
198
|
}
|
|
192
199
|
function Ve(e) {
|
|
193
|
-
return e.position;
|
|
200
|
+
return !x(e.position);
|
|
194
201
|
}
|
|
195
202
|
function Fe(e) {
|
|
196
|
-
return
|
|
203
|
+
return e.position;
|
|
197
204
|
}
|
|
198
205
|
function He(e) {
|
|
199
|
-
return e.position;
|
|
206
|
+
return !x(e.position);
|
|
200
207
|
}
|
|
201
208
|
function Ee(e) {
|
|
202
|
-
return
|
|
209
|
+
return e.position;
|
|
203
210
|
}
|
|
204
211
|
function Pe(e) {
|
|
205
|
-
return !x(e.
|
|
212
|
+
return !x(e.position);
|
|
206
213
|
}
|
|
207
214
|
function Re(e) {
|
|
208
215
|
return !x(e.radius);
|
|
209
216
|
}
|
|
210
217
|
function Xe(e) {
|
|
218
|
+
return !x(e.radius);
|
|
219
|
+
}
|
|
220
|
+
function Ye(e) {
|
|
211
221
|
const t = Ft.c(27), {
|
|
212
222
|
data: n,
|
|
213
223
|
circleColors: v,
|
|
@@ -250,15 +260,15 @@ function Xe(e) {
|
|
|
250
260
|
left: it,
|
|
251
261
|
right: dt
|
|
252
262
|
}, t[0] = ot, t[1] = it, t[2] = dt, t[3] = X, t[4] = m) : m = t[4];
|
|
253
|
-
const f = m, nt = S - f.left - f.right, H = A - f.top - f.bottom, Q = n.filter(
|
|
263
|
+
const f = m, nt = S - f.left - f.right, H = A - f.top - f.bottom, Q = n.filter(uo).length === 0 ? n : zt(n.filter(co), "radius", "desc");
|
|
254
264
|
let G;
|
|
255
|
-
t[5] !== n || t[6] !== p || t[7] !== T ? (G = x(p) ? Math.max(...n.filter(
|
|
265
|
+
t[5] !== n || t[6] !== p || t[7] !== T ? (G = x(p) ? Math.max(...n.filter(ao).map(lo)) < 0 && !T ? 0 : Math.max(...n.filter(so).map(ro)) : p, t[5] = n, t[6] = p, t[7] = T, t[8] = G) : G = t[8];
|
|
256
266
|
const z = G;
|
|
257
267
|
let d;
|
|
258
|
-
t[9] !== n || t[10] !== W || t[11] !== T ? (d = x(W) ? Math.min(...n.filter(
|
|
259
|
-
const s = d, l = n.filter(
|
|
268
|
+
t[9] !== n || t[10] !== W || t[11] !== T ? (d = x(W) ? Math.min(...n.filter(no).map(io)) >= 0 && !T ? 0 : Math.min(...n.filter(oo).map(eo)) : W, t[9] = n, t[10] = W, t[11] = T, t[12] = d) : d = t[12];
|
|
269
|
+
const s = d, l = n.filter(to).length !== n.length ? Kt().domain([0, x(V) ? Math.max(...n.map(_e).filter(Qe)) : V]).range([0.25, g]).nice() : void 0, y = Qt().domain([s, z]).range([0, nt]).nice(), N = y.ticks(lt);
|
|
260
270
|
Ht(() => {
|
|
261
|
-
const o = Q.filter(
|
|
271
|
+
const o = Q.map(Ke).filter(Je);
|
|
262
272
|
_t(o).force("x", te((b) => y(b.position)).strength(5)).force("y", ee((b) => H / 2).strength(1)).force("collide", oe((b) => l ? l(b.radius || 0) + 1 : g + 1)).force("charge", ie().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
263
273
|
a(o);
|
|
264
274
|
}).on("end", () => {
|
|
@@ -279,7 +289,7 @@ function Xe(e) {
|
|
|
279
289
|
axis: c?.xAxis?.axis,
|
|
280
290
|
label: c?.yAxis?.labels
|
|
281
291
|
} }),
|
|
282
|
-
/* @__PURE__ */ i.jsx(ue, { values: N.filter(
|
|
292
|
+
/* @__PURE__ */ i.jsx(ue, { values: N.filter(Ue), x: N.filter(Ze).map((o) => y(o)), y1: 0 - X, y2: H + f.bottom, styles: {
|
|
283
293
|
gridLines: c?.xAxis?.gridLines,
|
|
284
294
|
labels: c?.xAxis?.labels
|
|
285
295
|
}, classNames: {
|
|
@@ -287,7 +297,7 @@ function Xe(e) {
|
|
|
287
297
|
labels: w?.xAxis?.labels
|
|
288
298
|
}, suffix: M, prefix: j, labelType: "secondary", showGridLines: !0, precision: pt })
|
|
289
299
|
] }) : null,
|
|
290
|
-
ct.filter(
|
|
300
|
+
ct.filter(qe).map(We),
|
|
291
301
|
u.map((o) => /* @__PURE__ */ i.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${o.x},${o.y})`, opacity: st ? o.color && v[B.indexOf(o.color)] === st ? 1 : at : q.length !== 0 ? q.indexOf(o.label) !== -1 ? 0.85 : at : 0.85, onMouseEnter: (b) => {
|
|
292
302
|
D(o), F(b.clientY), J(b.clientX), et?.(o);
|
|
293
303
|
}, onMouseMove: (b) => {
|
|
@@ -297,16 +307,16 @@ function Xe(e) {
|
|
|
297
307
|
}, onMouseLeave: () => {
|
|
298
308
|
D(void 0), J(void 0), F(void 0), et?.(void 0);
|
|
299
309
|
}, children: [
|
|
300
|
-
/* @__PURE__ */ i.jsx("circle", { cx: 0, cy: 0, fill: n.filter(
|
|
310
|
+
/* @__PURE__ */ i.jsx("circle", { cx: 0, cy: 0, fill: n.filter(Ie).length === 0 ? v[0] : o.color ? v[B.indexOf(o.color)] : xt.gray, radius: l ? l(o.radius || 0) : g }),
|
|
301
311
|
(l ? l(o.radius || 0) : g) > 10 && h ? /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx("foreignObject", { y: 0 - (l ? l(o.radius || 0) : g), x: 0 - (l ? l(o.radius || 0) : g), width: 2 * (l ? l(o.radius || 0) : g), height: 2 * (l ? l(o.radius || 0) : g), 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("p", { className: Yt("text-center leading-none m-0", w?.graphObjectValues), style: {
|
|
302
312
|
fontSize: `${Math.min(Math.max(Math.round((l ? l(o.radius || 0) : g) / 4), 10), Math.max(Math.round((l ? l(o.radius || 0) : g) * 12 / `${o.label}`.length), 10), 20)}px`,
|
|
303
|
-
color: Zt(n.filter(
|
|
313
|
+
color: Zt(n.filter(Be).length === 0 ? v[0] : o.color ? v[B.indexOf(o.color)] : xt.gray),
|
|
304
314
|
hyphens: "auto",
|
|
305
315
|
...c?.graphObjectValues || {}
|
|
306
316
|
}, children: o.label }) : null }) }) }) : null
|
|
307
317
|
] }, o.label)),
|
|
308
318
|
I ? /* @__PURE__ */ i.jsx(i.Fragment, { children: I.map((o, b) => /* @__PURE__ */ i.jsx(le, { text: o.text, color: o.color, x: y(o.value), y1: 0 - f.top, y2: H + f.bottom, textSide: y(o.value) > nt * 0.75 || gt ? "left" : "right", classNames: o.classNames, styles: o.styles, isInView: !0 }, b)) }) : null,
|
|
309
|
-
ct.filter(
|
|
319
|
+
ct.filter(ze).map(Ge)
|
|
310
320
|
] }) }) : /* @__PURE__ */ i.jsx("div", { style: {
|
|
311
321
|
width: `${S}px`,
|
|
312
322
|
height: `${A}px`
|
|
@@ -326,47 +336,51 @@ function Xe(e) {
|
|
|
326
336
|
C
|
|
327
337
|
] }), t[23] = L, t[24] = O, t[25] = C, t[26] = r) : r = t[26], r;
|
|
328
338
|
}
|
|
329
|
-
function Ye(e) {
|
|
330
|
-
return e.layer;
|
|
331
|
-
}
|
|
332
339
|
function Ge(e) {
|
|
333
|
-
return e.
|
|
340
|
+
return e.layer;
|
|
334
341
|
}
|
|
335
342
|
function ze(e) {
|
|
336
|
-
return e.
|
|
343
|
+
return e.position === "after";
|
|
337
344
|
}
|
|
338
345
|
function Be(e) {
|
|
339
346
|
return e.color;
|
|
340
347
|
}
|
|
341
348
|
function Ie(e) {
|
|
342
|
-
return e.
|
|
349
|
+
return e.color;
|
|
343
350
|
}
|
|
344
351
|
function We(e) {
|
|
345
|
-
return e.
|
|
352
|
+
return e.layer;
|
|
346
353
|
}
|
|
347
354
|
function qe(e) {
|
|
348
|
-
return e
|
|
355
|
+
return e.position === "before";
|
|
349
356
|
}
|
|
350
357
|
function Ze(e) {
|
|
351
358
|
return e !== 0;
|
|
352
359
|
}
|
|
353
360
|
function Ue(e) {
|
|
354
|
-
return e
|
|
361
|
+
return e !== 0;
|
|
355
362
|
}
|
|
356
363
|
function Je(e) {
|
|
357
|
-
return e
|
|
364
|
+
return e.position;
|
|
358
365
|
}
|
|
359
366
|
function Ke(e) {
|
|
360
|
-
return
|
|
367
|
+
return {
|
|
368
|
+
...e,
|
|
369
|
+
...e.data && {
|
|
370
|
+
data: {
|
|
371
|
+
...e.data
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
};
|
|
361
375
|
}
|
|
362
376
|
function Qe(e) {
|
|
363
|
-
return e
|
|
377
|
+
return e != null;
|
|
364
378
|
}
|
|
365
379
|
function _e(e) {
|
|
366
|
-
return e.
|
|
380
|
+
return e.radius;
|
|
367
381
|
}
|
|
368
382
|
function to(e) {
|
|
369
|
-
return
|
|
383
|
+
return e.radius === void 0 || e.radius === null;
|
|
370
384
|
}
|
|
371
385
|
function eo(e) {
|
|
372
386
|
return e.position;
|
|
@@ -387,12 +401,18 @@ function so(e) {
|
|
|
387
401
|
return !x(e.position);
|
|
388
402
|
}
|
|
389
403
|
function lo(e) {
|
|
390
|
-
return
|
|
404
|
+
return e.position;
|
|
391
405
|
}
|
|
392
406
|
function ao(e) {
|
|
407
|
+
return !x(e.position);
|
|
408
|
+
}
|
|
409
|
+
function co(e) {
|
|
393
410
|
return !x(e.radius);
|
|
394
411
|
}
|
|
395
|
-
function
|
|
412
|
+
function uo(e) {
|
|
413
|
+
return !x(e.radius);
|
|
414
|
+
}
|
|
415
|
+
function Io(e) {
|
|
396
416
|
const t = Ft.c(79), {
|
|
397
417
|
data: n,
|
|
398
418
|
graphTitle: v,
|
|
@@ -448,7 +468,7 @@ function zo(e) {
|
|
|
448
468
|
const Q = H, G = at === void 0 ? !1 : at, z = pt === void 0 ? !1 : pt, d = ct === void 0 ? !1 : ct, s = X === void 0 ? "en" : X, l = ot === void 0 ? !0 : ot, y = it === void 0 ? 0 : it, N = dt === void 0 ? "light" : dt, L = ut === void 0 ? !0 : ut, O = D === void 0 ? "vertical" : D, C = $ === void 0 ? "" : $, r = mt === void 0 ? "" : mt, o = U === void 0 ? 5 : U, b = J === void 0 ? 0.3 : J, $t = K === void 0 ? 2 : K;
|
|
449
469
|
let Mt;
|
|
450
470
|
t[2] !== F ? (Mt = F === void 0 ? [] : F, t[2] = F, t[3] = Mt) : Mt = t[3];
|
|
451
|
-
const Nt = Mt, [jt, ne] = E(0), [Ot, re] = E(0), [Lt, se] = E(void 0), St = Dt(null), Et = Dt(null), At = O === "horizontal" ?
|
|
471
|
+
const Nt = Mt, [jt, ne] = E(0), [Ot, re] = E(0), [Lt, se] = E(void 0), St = Dt(null), Et = Dt(null), At = O === "horizontal" ? Ye : xe;
|
|
452
472
|
let Ct, kt;
|
|
453
473
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (Ct = () => {
|
|
454
474
|
const Pt = new ResizeObserver((Rt) => {
|
|
@@ -464,11 +484,11 @@ function zo(e) {
|
|
|
464
484
|
}, classNames: {
|
|
465
485
|
title: a?.title,
|
|
466
486
|
description: a?.description
|
|
467
|
-
}, graphTitle: v, graphDescription: tt, width: h, graphDownload: z ? Et : void 0, dataDownload: d ? n.map(
|
|
487
|
+
}, graphTitle: v, graphDescription: tt, width: h, graphDownload: z ? Et : void 0, dataDownload: d ? n.map(yo).filter(vo).length > 0 ? n.map(xo).filter(go) : n.filter(ho) : null }) : null, t[6] = a?.description, t[7] = a?.title, t[8] = n, t[9] = d, t[10] = tt, t[11] = z, t[12] = v, t[13] = u?.description, t[14] = u?.title, t[15] = h, t[16] = vt) : vt = t[16];
|
|
468
488
|
let yt;
|
|
469
489
|
t[17] !== At || t[18] !== S || t[19] !== a || t[20] !== et || t[21] !== I || t[22] !== P || t[23] !== Nt || t[24] !== n || t[25] !== Y || t[26] !== b || t[27] !== Q || t[28] !== A || t[29] !== k || t[30] !== M || t[31] !== j || t[32] !== o || t[33] !== w || t[34] !== V || t[35] !== $t || t[36] !== r || t[37] !== m || t[38] !== p || t[39] !== L || 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] !== N || t[51] !== g || t[52] !== ht || t[53] !== h ? (yt = n.length === 0 ? /* @__PURE__ */ i.jsx(de, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
470
|
-
W !== !1 && n.filter(
|
|
471
|
-
/* @__PURE__ */ i.jsx(fe, { ref: St, children: jt && Ot ? /* @__PURE__ */ i.jsx(At, { data: n, circleColors: n.filter(
|
|
490
|
+
W !== !1 && n.filter(po).length !== 0 ? /* @__PURE__ */ i.jsx(he, { width: h, colorLegendTitle: I, colors: P || xt[N].categoricalColors.colors, colorDomain: et || Xt(n, "color", !0), setSelectedColor: se, showNAColor: l, className: a?.colorLegend }) : null,
|
|
491
|
+
/* @__PURE__ */ i.jsx(fe, { ref: St, children: jt && Ot ? /* @__PURE__ */ i.jsx(At, { data: n, circleColors: n.filter(fo).length === 0 ? P ? [P] : [xt.primaryColors["blue-600"]] : P || xt[N].categoricalColors.colors, colorDomain: n.filter(mo).length === 0 ? [] : et || Xt(n, "color", !0), width: jt, selectedColor: Lt, height: Ot, showTicks: nt, leftMargin: A, rightMargin: B, topMargin: ht, bottomMargin: S, showLabels: f, tooltip: g, onSeriesMouseOver: V, refValues: p, startFromZero: !1, radius: m, maxRadiusValue: k, maxValue: M, minValue: j, highlightedDataPoints: Q, onSeriesMouseClick: w, resetSelectionOnDoubleClick: L, detailsOnClick: Y, styles: u, classNames: a, suffix: C, prefix: r, noOfTicks: o || 5, dimmedOpacity: b, precision: $t, customLayers: Nt }) : null })
|
|
472
492
|
] }), t[17] = At, t[18] = S, t[19] = a, t[20] = et, t[21] = I, t[22] = P, t[23] = Nt, t[24] = n, t[25] = Y, t[26] = b, t[27] = Q, t[28] = A, t[29] = k, t[30] = M, t[31] = j, t[32] = o, t[33] = w, t[34] = V, t[35] = $t, t[36] = r, t[37] = m, t[38] = p, t[39] = L, 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] = N, t[51] = g, t[52] = ht, t[53] = h, t[54] = yt) : yt = t[54];
|
|
473
493
|
let bt;
|
|
474
494
|
t[55] !== a?.footnote || t[56] !== a?.source || t[57] !== R || t[58] !== _ || t[59] !== u?.footnote || t[60] !== u?.source || t[61] !== h ? (bt = _ || R ? /* @__PURE__ */ i.jsx(ge, { styles: {
|
|
@@ -485,31 +505,31 @@ function zo(e) {
|
|
|
485
505
|
bt
|
|
486
506
|
] }), t[63] = lt, t[64] = G, t[65] = q, t[66] = rt, t[67] = s, t[68] = y, t[69] = st, t[70] = T, t[71] = Tt, t[72] = Vt, t[73] = vt, t[74] = yt, t[75] = bt, t[76] = N, t[77] = h, t[78] = wt) : wt = t[78], wt;
|
|
487
507
|
}
|
|
488
|
-
function
|
|
508
|
+
function mo(e) {
|
|
489
509
|
return e.color;
|
|
490
510
|
}
|
|
491
|
-
function
|
|
511
|
+
function fo(e) {
|
|
492
512
|
return e.color;
|
|
493
513
|
}
|
|
494
|
-
function
|
|
514
|
+
function po(e) {
|
|
495
515
|
return e.color;
|
|
496
516
|
}
|
|
497
|
-
function
|
|
517
|
+
function ho(e) {
|
|
498
518
|
return e !== void 0;
|
|
499
519
|
}
|
|
500
|
-
function
|
|
520
|
+
function go(e) {
|
|
501
521
|
return e !== void 0;
|
|
502
522
|
}
|
|
503
|
-
function
|
|
523
|
+
function xo(e) {
|
|
504
524
|
return e.data;
|
|
505
525
|
}
|
|
506
|
-
function
|
|
526
|
+
function vo(e) {
|
|
507
527
|
return e !== void 0;
|
|
508
528
|
}
|
|
509
|
-
function
|
|
529
|
+
function yo(e) {
|
|
510
530
|
return e.data;
|
|
511
531
|
}
|
|
512
532
|
export {
|
|
513
|
-
|
|
533
|
+
Io as BeeSwarmChart
|
|
514
534
|
};
|
|
515
535
|
//# sourceMappingURL=BeeSwarmChart.js.map
|