@undp/data-viz 2.1.3 → 2.1.5
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 +279 -272
- 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 +2 -0
- package/dist/BarGraph.js +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.js +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +298 -287
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.js +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +404 -397
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.js +116 -113
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.js +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-BixTEyKW.cjs +2 -0
- package/dist/GraphEl-BixTEyKW.cjs.map +1 -0
- package/dist/{GraphEl-CRrAlbcr.js → GraphEl-Dyu_EIQb.js} +3 -2
- package/dist/GraphEl-Dyu_EIQb.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +2 -2
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.js +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +2 -2
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +368 -361
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +327 -320
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +374 -367
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +385 -378
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +34 -33
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +176 -169
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +366 -359
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +285 -278
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +2 -2
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.js +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +243 -236
- package/dist/SlopeChart.js.map +1 -1
- package/dist/Spinner-CQZcjzwd.cjs +2 -0
- package/dist/Spinner-CQZcjzwd.cjs.map +1 -0
- package/dist/{Spinner-D7rnnwnA.js → Spinner-DVBnY6Vg.js} +5 -5
- package/dist/Spinner-DVBnY6Vg.js.map +1 -0
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/index-R1gTfap5.js +337 -0
- package/dist/index-R1gTfap5.js.map +1 -0
- package/dist/index-WML2dCZ0.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-WML2dCZ0.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-BLMih7RN.cjs +0 -2
- package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
- package/dist/GraphEl-CRrAlbcr.js.map +0 -1
- package/dist/Spinner-D7rnnwnA.js.map +0 -1
- package/dist/Spinner-DRMBUsX7.cjs +0 -2
- package/dist/Spinner-DRMBUsX7.cjs.map +0 -1
- package/dist/index-CF5hnGvG.cjs +0 -2
- package/dist/index-DPGq3eIL.js +0 -330
- package/dist/index-DPGq3eIL.js.map +0 -1
package/dist/ParetoChart.js
CHANGED
|
@@ -1,538 +1,545 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { i as
|
|
4
|
-
import { n as
|
|
5
|
-
import { T as
|
|
6
|
-
import { c as
|
|
7
|
-
import { A as
|
|
8
|
-
import { A as
|
|
9
|
-
import { X as
|
|
10
|
-
import { D as
|
|
11
|
-
import { b as
|
|
12
|
-
import { a as
|
|
13
|
-
import { l as
|
|
14
|
-
import { c as
|
|
15
|
-
import { u as
|
|
16
|
-
import { m as
|
|
17
|
-
import { A as $
|
|
18
|
-
import { GraphFooter as
|
|
19
|
-
import { GraphHeader as
|
|
20
|
-
import { ColorLegend as
|
|
21
|
-
import { Colors as
|
|
22
|
-
import { E as
|
|
23
|
-
import { a as
|
|
24
|
-
function
|
|
25
|
-
const t =
|
|
26
|
-
data:
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
29
|
-
barColor:
|
|
1
|
+
import { c as de, j as s, m as ne } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as ue, useState as Kt, useEffect as he } from "react";
|
|
3
|
+
import { i as xe } from "./index-Bwrro8-q.js";
|
|
4
|
+
import { n as se } from "./numberFormattingFunction-14YCbkN2.js";
|
|
5
|
+
import { T as ge } from "./Tooltip-Dj5eVppQ.js";
|
|
6
|
+
import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
7
|
+
import { A as ce } from "./Axis-CRyfcLjc.js";
|
|
8
|
+
import { A as fe } from "./AxisTitle-jeI7am8o.js";
|
|
9
|
+
import { X as ye } from "./XAxesLabels-Dy8E1SEo.js";
|
|
10
|
+
import { D as be } from "./DetailsModal-0Ry5nXiC.js";
|
|
11
|
+
import { b as ve } from "./band-DHUZ2X7J.js";
|
|
12
|
+
import { a as pe } from "./linear-BqltdMeF.js";
|
|
13
|
+
import { l as Ae, c as we } from "./line-DFlZsxI1.js";
|
|
14
|
+
import { c as je, s as Me, a as Ce, m as ke } from "./step-BrDul-H4.js";
|
|
15
|
+
import { u as Le } from "./use-in-view-Cxa7y1TH.js";
|
|
16
|
+
import { m as Ht } from "./proxy-BxkFHwUw.js";
|
|
17
|
+
import { A as $e } from "./index-BqfRwk1n.js";
|
|
18
|
+
import { GraphFooter as Ne } from "./GraphFooter.js";
|
|
19
|
+
import { GraphHeader as Se } from "./GraphHeader.js";
|
|
20
|
+
import { ColorLegend as Oe } from "./ColorLegend.js";
|
|
21
|
+
import { Colors as le } from "./Colors.js";
|
|
22
|
+
import { E as Ve } from "./EmptyState-C7ZXkZWd.js";
|
|
23
|
+
import { a as De, G as Te } from "./GraphContainer-CRqzdKu2.js";
|
|
24
|
+
function Ie(e) {
|
|
25
|
+
const t = de.c(157), {
|
|
26
|
+
data: p,
|
|
27
|
+
width: H,
|
|
28
|
+
height: W,
|
|
29
|
+
barColor: d,
|
|
30
30
|
lineColor: f,
|
|
31
|
-
axisTitles:
|
|
31
|
+
axisTitles: m,
|
|
32
32
|
sameAxes: A,
|
|
33
|
-
rightMargin:
|
|
34
|
-
leftMargin:
|
|
35
|
-
topMargin:
|
|
36
|
-
bottomMargin:
|
|
37
|
-
tooltip:
|
|
38
|
-
showValues:
|
|
39
|
-
onSeriesMouseOver:
|
|
40
|
-
barPadding:
|
|
41
|
-
truncateBy:
|
|
42
|
-
showLabels:
|
|
43
|
-
onSeriesMouseClick:
|
|
44
|
-
resetSelectionOnDoubleClick:
|
|
45
|
-
detailsOnClick:
|
|
46
|
-
noOfTicks:
|
|
47
|
-
lineSuffix:
|
|
48
|
-
barSuffix:
|
|
49
|
-
linePrefix:
|
|
50
|
-
barPrefix:
|
|
51
|
-
curveType:
|
|
33
|
+
rightMargin: Qt,
|
|
34
|
+
leftMargin: te,
|
|
35
|
+
topMargin: Wt,
|
|
36
|
+
bottomMargin: Bt,
|
|
37
|
+
tooltip: Ct,
|
|
38
|
+
showValues: kt,
|
|
39
|
+
onSeriesMouseOver: lt,
|
|
40
|
+
barPadding: Gt,
|
|
41
|
+
truncateBy: Lt,
|
|
42
|
+
showLabels: Rt,
|
|
43
|
+
onSeriesMouseClick: O,
|
|
44
|
+
resetSelectionOnDoubleClick: pt,
|
|
45
|
+
detailsOnClick: $,
|
|
46
|
+
noOfTicks: dt,
|
|
47
|
+
lineSuffix: ht,
|
|
48
|
+
barSuffix: $t,
|
|
49
|
+
linePrefix: Nt,
|
|
50
|
+
barPrefix: St,
|
|
51
|
+
curveType: Ot,
|
|
52
52
|
styles: o,
|
|
53
53
|
classNames: n,
|
|
54
|
-
animate:
|
|
55
|
-
precision:
|
|
56
|
-
customLayers:
|
|
57
|
-
naLabel:
|
|
58
|
-
showAxisLabels:
|
|
59
|
-
} =
|
|
60
|
-
let
|
|
61
|
-
t[0] !==
|
|
62
|
-
once:
|
|
63
|
-
amount:
|
|
64
|
-
}, t[0] =
|
|
65
|
-
const
|
|
66
|
-
let
|
|
67
|
-
t[3] !==
|
|
68
|
-
top:
|
|
69
|
-
bottom:
|
|
70
|
-
left:
|
|
71
|
-
right:
|
|
72
|
-
}, t[3] =
|
|
73
|
-
const
|
|
74
|
-
let
|
|
75
|
-
if (t[8] !==
|
|
76
|
-
const x =
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
let
|
|
80
|
-
t[69] !==
|
|
81
|
-
axis:
|
|
82
|
-
}, t[69] =
|
|
83
|
-
let
|
|
84
|
-
t[71] !== o?.xAxis?.axis ? (
|
|
85
|
-
let
|
|
86
|
-
t[73] !==
|
|
54
|
+
animate: a,
|
|
55
|
+
precision: B,
|
|
56
|
+
customLayers: V,
|
|
57
|
+
naLabel: at,
|
|
58
|
+
showAxisLabels: N
|
|
59
|
+
} = e, Zt = ue(null);
|
|
60
|
+
let gt;
|
|
61
|
+
t[0] !== a.amount || t[1] !== a.once ? (gt = {
|
|
62
|
+
once: a.once,
|
|
63
|
+
amount: a.amount
|
|
64
|
+
}, t[0] = a.amount, t[1] = a.once, t[2] = gt) : gt = t[2];
|
|
65
|
+
const D = Le(Zt, gt), Ft = Ot === "linear" ? we : Ot === "step" ? je : Ot === "stepAfter" ? Me : Ot === "stepBefore" ? Ce : ke, [Vt, rt] = Kt(void 0), [T, yt] = Kt(void 0), [Dt, u] = Kt(void 0), [r, ct] = Kt(void 0), zt = te + 50, bt = Qt + 65;
|
|
66
|
+
let Tt;
|
|
67
|
+
t[3] !== Bt || t[4] !== zt || t[5] !== bt || t[6] !== Wt ? (Tt = {
|
|
68
|
+
top: Wt,
|
|
69
|
+
bottom: Bt,
|
|
70
|
+
left: zt,
|
|
71
|
+
right: bt
|
|
72
|
+
}, t[3] = Bt, t[4] = zt, t[5] = bt, t[6] = Wt, t[7] = Tt) : Tt = t[7];
|
|
73
|
+
const c = Tt, g = H - c.left - c.right, l = W - c.top - c.bottom;
|
|
74
|
+
let w, G, R, S, F, z, q, j, M, I, P, U, J, K, Q;
|
|
75
|
+
if (t[8] !== a || t[9] !== m || t[10] !== d || t[11] !== Gt || t[12] !== St || t[13] !== $t || t[14] !== n?.graphObjectValues || t[15] !== n?.xAxis?.axis || t[16] !== n?.xAxis?.labels || t[17] !== n?.yAxis?.gridLines || t[18] !== n?.yAxis?.labels || t[19] !== n?.yAxis?.title || t[20] !== Ft || t[21] !== V || t[22] !== p || t[23] !== $ || t[24] !== l || t[25] !== g || t[26] !== W || t[27] !== D || t[28] !== f || t[29] !== Nt || t[30] !== ht || t[31] !== c.bottom || t[32] !== c.left || t[33] !== c.right || t[34] !== c.top || t[35] !== T || t[36] !== at || t[37] !== dt || t[38] !== O || t[39] !== lt || t[40] !== B || t[41] !== pt || t[42] !== A || t[43] !== N || t[44] !== Rt || t[45] !== kt || t[46] !== o?.graphObjectValues || t[47] !== o?.xAxis?.axis || t[48] !== o?.xAxis?.labels || t[49] !== o?.yAxis?.gridLines || t[50] !== o?.yAxis?.labels || t[51] !== o?.yAxis?.title || t[52] !== Lt || t[53] !== H) {
|
|
76
|
+
const x = p.map(ci), y = ve().domain(x.map(ri)).range([0, g]).paddingInner(Gt), It = Math.min(...x.map(ai).filter(li)) !== 1 / 0 ? Math.min(...x.map(si).filter(ni)) > 0 ? 0 : Math.min(...x.map(oi).filter(ii)) : 0, At = Math.min(...x.map(ei).filter(ti)) !== 1 / 0 ? Math.min(...x.map(_e).filter(Ze)) > 0 ? 0 : Math.min(...x.map(Qe).filter(Ke)) : 0, wt = Math.max(...x.map(Je).filter(Ue)) !== 1 / 0 ? Math.max(...x.map(qe).filter(ze)) : 0, ut = Math.max(...x.map(Fe).filter(Re)) !== 1 / 0 ? Math.max(...x.map(Ge).filter(Be)) : 0, qt = It < At ? It : At, jt = wt > ut ? wt : ut, h = pe().domain([A ? qt : It, A ? jt > 0 ? jt : 0 : wt > 0 ? wt : 0]).range([l, 0]).nice(), b = pe().domain([A ? qt : At, A ? jt > 0 ? jt : 0 : ut > 0 ? ut : 0]).range([l, 0]).nice(), Pt = Ae().defined(We).x((i) => y(`${i.id}`) + y.bandwidth() / 2).y((i) => b(i.line)).curve(Ft), ae = h.ticks(dt), Ut = b.ticks(dt);
|
|
77
|
+
G = Ht.svg, F = `${H}px`, z = `${W}px`, q = `0 0 ${H} ${W}`, j = "ltr", M = Zt, J = `translate(${c.left},${c.top})`;
|
|
78
|
+
const _t = n?.xAxis?.axis;
|
|
79
|
+
let ot;
|
|
80
|
+
t[69] !== _t ? (ot = {
|
|
81
|
+
axis: _t
|
|
82
|
+
}, t[69] = _t, t[70] = ot) : ot = t[70];
|
|
83
|
+
let mt;
|
|
84
|
+
t[71] !== o?.xAxis?.axis ? (mt = o?.xAxis?.axis || {}, t[71] = o?.xAxis?.axis, t[72] = mt) : mt = t[72];
|
|
85
|
+
let Y;
|
|
86
|
+
t[73] !== d || t[74] !== mt ? (Y = {
|
|
87
87
|
axis: {
|
|
88
|
-
stroke:
|
|
89
|
-
...
|
|
88
|
+
stroke: d,
|
|
89
|
+
...mt
|
|
90
90
|
}
|
|
91
|
-
}, t[73] =
|
|
92
|
-
let
|
|
93
|
-
t[76] !==
|
|
94
|
-
let
|
|
95
|
-
t[80] !==
|
|
96
|
-
fill:
|
|
91
|
+
}, t[73] = d, t[74] = mt, t[75] = Y) : Y = t[75];
|
|
92
|
+
let xt;
|
|
93
|
+
t[76] !== l || t[77] !== ot || t[78] !== Y ? (xt = /* @__PURE__ */ s.jsx(ce, { y1: 0, y2: l, x1: -15, x2: -15, classNames: ot, styles: Y }), t[76] = l, t[77] = ot, t[78] = Y, t[79] = xt) : xt = t[79];
|
|
94
|
+
let Mt;
|
|
95
|
+
t[80] !== m || t[81] !== d || t[82] !== n?.yAxis?.title || t[83] !== l || t[84] !== c.left || t[85] !== N || t[86] !== o?.yAxis?.title ? (Mt = N ? /* @__PURE__ */ s.jsx(fe, { x: 10 - c.left, y: l / 2, style: {
|
|
96
|
+
fill: d,
|
|
97
97
|
...o?.yAxis?.title || {}
|
|
98
|
-
}, className: n?.yAxis?.title, text:
|
|
99
|
-
|
|
100
|
-
/* @__PURE__ */ s.jsx("line", { y1:
|
|
101
|
-
stroke:
|
|
98
|
+
}, className: n?.yAxis?.title, text: m[0].length > 100 ? `${m[0].substring(0, 100)}...` : m[0], rotate90: !0 }) : null, t[80] = m, t[81] = d, t[82] = n?.yAxis?.title, t[83] = l, t[84] = c.left, t[85] = N, t[86] = o?.yAxis?.title, t[87] = Mt) : Mt = t[87], K = /* @__PURE__ */ s.jsxs("g", { children: [
|
|
99
|
+
ae.map((i, Xt) => /* @__PURE__ */ s.jsxs("g", { children: [
|
|
100
|
+
/* @__PURE__ */ s.jsx("line", { y1: h(i), y2: h(i), x1: -15, x2: -20, style: {
|
|
101
|
+
stroke: d,
|
|
102
102
|
strokeWidth: 1,
|
|
103
103
|
...o?.yAxis?.gridLines || {}
|
|
104
104
|
}, className: n?.yAxis?.gridLines }),
|
|
105
|
-
/* @__PURE__ */ s.jsx("text", { x: -25, y:
|
|
105
|
+
/* @__PURE__ */ s.jsx("text", { x: -25, y: h(i), dy: "0.33em", className: ne("text-xs", n?.yAxis?.labels), style: {
|
|
106
106
|
textAnchor: "end",
|
|
107
|
-
fill:
|
|
107
|
+
fill: d,
|
|
108
108
|
...o?.yAxis?.labels || {}
|
|
109
|
-
}, children:
|
|
110
|
-
] },
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
}, children: se(i, at, B, St, $t) })
|
|
110
|
+
] }, Xt)),
|
|
111
|
+
xt,
|
|
112
|
+
Mt
|
|
113
113
|
] });
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
t[88] !==
|
|
117
|
-
axis:
|
|
118
|
-
}, t[88] =
|
|
119
|
-
let
|
|
120
|
-
t[90] !== o?.xAxis?.axis ? (
|
|
121
|
-
let
|
|
122
|
-
t[92] !== f || t[93] !==
|
|
114
|
+
const Yt = g + 15, nt = g + 15, st = n?.xAxis?.axis;
|
|
115
|
+
let C;
|
|
116
|
+
t[88] !== st ? (C = {
|
|
117
|
+
axis: st
|
|
118
|
+
}, t[88] = st, t[89] = C) : C = t[89];
|
|
119
|
+
let k;
|
|
120
|
+
t[90] !== o?.xAxis?.axis ? (k = o?.xAxis?.axis || {}, t[90] = o?.xAxis?.axis, t[91] = k) : k = t[91];
|
|
121
|
+
let L;
|
|
122
|
+
t[92] !== f || t[93] !== k ? (L = {
|
|
123
123
|
axis: {
|
|
124
124
|
stroke: f,
|
|
125
|
-
...
|
|
125
|
+
...k
|
|
126
126
|
}
|
|
127
|
-
}, t[92] = f, t[93] =
|
|
128
|
-
let
|
|
129
|
-
t[95] !==
|
|
130
|
-
let
|
|
131
|
-
t[101] !==
|
|
127
|
+
}, t[92] = f, t[93] = k, t[94] = L) : L = t[94];
|
|
128
|
+
let E;
|
|
129
|
+
t[95] !== l || t[96] !== Yt || t[97] !== nt || t[98] !== C || t[99] !== L ? (E = /* @__PURE__ */ s.jsx(ce, { y1: 0, y2: l, x1: Yt, x2: nt, classNames: C, styles: L }), t[95] = l, t[96] = Yt, t[97] = nt, t[98] = C, t[99] = L, t[100] = E) : E = t[100];
|
|
130
|
+
let ft;
|
|
131
|
+
t[101] !== m || t[102] !== n?.yAxis?.title || t[103] !== l || t[104] !== g || t[105] !== f || t[106] !== c.right || t[107] !== N || t[108] !== o?.yAxis?.title ? (ft = N ? /* @__PURE__ */ s.jsx(fe, { x: g + c.right - 15, y: l / 2, style: {
|
|
132
132
|
fill: f,
|
|
133
133
|
...o?.yAxis?.title || {}
|
|
134
|
-
}, className: n?.yAxis?.title, text:
|
|
135
|
-
|
|
136
|
-
/* @__PURE__ */ s.jsx("line", { y1:
|
|
134
|
+
}, className: n?.yAxis?.title, text: m[1].length > 100 ? `${m[1].substring(0, 100)}...` : m[1], rotate90: !0 }) : null, t[101] = m, t[102] = n?.yAxis?.title, t[103] = l, t[104] = g, t[105] = f, t[106] = c.right, t[107] = N, t[108] = o?.yAxis?.title, t[109] = ft) : ft = t[109], Q = /* @__PURE__ */ s.jsxs("g", { children: [
|
|
135
|
+
Ut.map((i, Xt) => /* @__PURE__ */ s.jsxs("g", { children: [
|
|
136
|
+
/* @__PURE__ */ s.jsx("line", { y1: b(i), y2: b(i), x1: g + 15, x2: g + 20, style: {
|
|
137
137
|
stroke: f,
|
|
138
138
|
strokeWidth: 1,
|
|
139
139
|
...o?.yAxis?.gridLines || {}
|
|
140
140
|
}, className: n?.yAxis?.gridLines }),
|
|
141
|
-
/* @__PURE__ */ s.jsx("text", { x:
|
|
141
|
+
/* @__PURE__ */ s.jsx("text", { x: g + 25, y: b(i), dy: "0.33em", dx: -2, style: {
|
|
142
142
|
textAnchor: "start",
|
|
143
143
|
fill: f,
|
|
144
144
|
...o?.yAxis?.labels || {}
|
|
145
|
-
}, className:
|
|
146
|
-
] },
|
|
147
|
-
|
|
148
|
-
|
|
145
|
+
}, className: ne("text-xs", n?.yAxis?.labels), children: se(i, at, B, Nt, ht) })
|
|
146
|
+
] }, Xt)),
|
|
147
|
+
E,
|
|
148
|
+
ft
|
|
149
149
|
] });
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
t[110] !==
|
|
153
|
-
axis:
|
|
154
|
-
}, t[110] =
|
|
155
|
-
const
|
|
156
|
-
let
|
|
157
|
-
t[112] !==
|
|
158
|
-
axis:
|
|
159
|
-
}, t[112] =
|
|
160
|
-
|
|
150
|
+
const Jt = n?.xAxis?.axis;
|
|
151
|
+
let Et;
|
|
152
|
+
t[110] !== Jt ? (Et = {
|
|
153
|
+
axis: Jt
|
|
154
|
+
}, t[110] = Jt, t[111] = Et) : Et = t[111];
|
|
155
|
+
const re = o?.xAxis?.axis;
|
|
156
|
+
let ee;
|
|
157
|
+
t[112] !== re ? (ee = {
|
|
158
|
+
axis: re
|
|
159
|
+
}, t[112] = re, t[113] = ee) : ee = t[113], R = /* @__PURE__ */ s.jsx(ce, { y1: A ? h(0) : l, y2: A ? h(0) : l, x1: -15, x2: g + 15, classNames: Et, styles: ee }), t[114] !== V ? (S = V.filter(He).map(Xe), t[114] = V, t[115] = S) : S = t[115], w = $e, I = x.map((i, Xt) => /* @__PURE__ */ s.jsxs(Ht.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (X) => {
|
|
160
|
+
rt(i), ct(X.clientY), u(X.clientX), lt?.(i);
|
|
161
161
|
}, onClick: () => {
|
|
162
|
-
(
|
|
163
|
-
}, onMouseMove: (
|
|
164
|
-
|
|
162
|
+
(O || $) && (xe(T, i) && pt ? (yt(void 0), O?.(void 0)) : (yt(i), O?.(i)));
|
|
163
|
+
}, onMouseMove: (X) => {
|
|
164
|
+
rt(i), ct(X.clientY), u(X.clientX);
|
|
165
165
|
}, onMouseLeave: () => {
|
|
166
|
-
|
|
166
|
+
rt(void 0), u(void 0), ct(void 0), lt?.(void 0);
|
|
167
167
|
}, children: [
|
|
168
|
-
/* @__PURE__ */ s.jsx(
|
|
168
|
+
/* @__PURE__ */ s.jsx(Ht.rect, { variants: {
|
|
169
169
|
initial: {
|
|
170
|
-
attrY:
|
|
170
|
+
attrY: h(0),
|
|
171
171
|
height: 0,
|
|
172
172
|
opacity: 1,
|
|
173
|
-
fill:
|
|
173
|
+
fill: d
|
|
174
174
|
},
|
|
175
175
|
whileInView: {
|
|
176
|
-
attrY:
|
|
177
|
-
height:
|
|
176
|
+
attrY: i.bar ? i.bar > 0 ? h(i.bar) : h(0) : 0,
|
|
177
|
+
height: i.bar ? Math.abs(h(i.bar) - h(0)) : 0,
|
|
178
178
|
opacity: 1,
|
|
179
|
-
fill:
|
|
179
|
+
fill: d,
|
|
180
180
|
transition: {
|
|
181
|
-
duration:
|
|
181
|
+
duration: a.duration
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
}, initial: "initial", animate:
|
|
185
|
-
attrY:
|
|
184
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
|
|
185
|
+
attrY: h(0),
|
|
186
186
|
height: 0,
|
|
187
187
|
opacity: 0,
|
|
188
188
|
transition: {
|
|
189
|
-
duration:
|
|
189
|
+
duration: a.duration
|
|
190
190
|
}
|
|
191
|
-
}, x:
|
|
192
|
-
|
|
193
|
-
attrY:
|
|
191
|
+
}, x: y(`${Xt}`), width: y.bandwidth() }),
|
|
192
|
+
kt && !me(i.bar) ? /* @__PURE__ */ s.jsx(Ht.text, { x: y(`${i.id}`) + y.bandwidth() / 2, exit: {
|
|
193
|
+
attrY: h(0),
|
|
194
194
|
opacity: 0,
|
|
195
195
|
transition: {
|
|
196
|
-
duration:
|
|
196
|
+
duration: a.duration
|
|
197
197
|
}
|
|
198
198
|
}, variants: {
|
|
199
199
|
initial: {
|
|
200
|
-
attrY:
|
|
200
|
+
attrY: h(0),
|
|
201
201
|
opacity: 0,
|
|
202
|
-
fill:
|
|
202
|
+
fill: d
|
|
203
203
|
},
|
|
204
204
|
whileInView: {
|
|
205
|
-
attrY:
|
|
205
|
+
attrY: h(i.bar || 0),
|
|
206
206
|
opacity: 1,
|
|
207
|
-
fill:
|
|
207
|
+
fill: d,
|
|
208
208
|
transition: {
|
|
209
|
-
duration:
|
|
209
|
+
duration: a.duration
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
}, initial: "initial", animate:
|
|
212
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", style: {
|
|
213
213
|
textAnchor: "middle",
|
|
214
214
|
...o?.graphObjectValues || {}
|
|
215
|
-
}, className:
|
|
216
|
-
|
|
217
|
-
] },
|
|
218
|
-
let
|
|
219
|
-
t[116] !==
|
|
215
|
+
}, className: ne("graph-value text-sm", n?.graphObjectValues), dy: i.bar ? i.bar >= 0 ? "-5px" : "1em" : "-5px", children: se(i.bar, at, B, St, $t) }) : null,
|
|
216
|
+
Rt ? /* @__PURE__ */ s.jsx(ye, { value: `${i.label}`.length < Lt ? `${i.label}` : `${`${i.label}`.substring(0, Lt)}...`, y: l + 5, x: y(`${i.id}`), width: y.bandwidth(), height: c.bottom, style: o?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: a, isInView: D }) : null
|
|
217
|
+
] }, i.label));
|
|
218
|
+
let ie;
|
|
219
|
+
t[116] !== a.duration ? (ie = {
|
|
220
220
|
opacity: 0,
|
|
221
221
|
transition: {
|
|
222
|
-
duration:
|
|
222
|
+
duration: a.duration
|
|
223
223
|
}
|
|
224
|
-
}, t[116] =
|
|
225
|
-
let
|
|
226
|
-
t[118] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
224
|
+
}, t[116] = a.duration, t[117] = ie) : ie = t[117];
|
|
225
|
+
let oe;
|
|
226
|
+
t[118] === Symbol.for("react.memo_cache_sentinel") ? (oe = {
|
|
227
227
|
fill: "none",
|
|
228
228
|
strokeWidth: 2
|
|
229
|
-
}, t[118] =
|
|
229
|
+
}, t[118] = oe) : oe = t[118], P = /* @__PURE__ */ s.jsx(Ht.path, { exit: ie, variants: {
|
|
230
230
|
initial: {
|
|
231
|
-
d:
|
|
231
|
+
d: Pt(x.map(Ee)),
|
|
232
232
|
opacity: 0,
|
|
233
233
|
stroke: f
|
|
234
234
|
},
|
|
235
235
|
whileInView: {
|
|
236
|
-
d:
|
|
236
|
+
d: Pt(x),
|
|
237
237
|
opacity: 1,
|
|
238
238
|
stroke: f,
|
|
239
239
|
transition: {
|
|
240
|
-
duration:
|
|
240
|
+
duration: a.duration
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
}, initial: "initial", animate:
|
|
244
|
-
|
|
243
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", style: oe }), U = x.map((i, Xt) => /* @__PURE__ */ s.jsx("g", { children: me(i.line) ? null : /* @__PURE__ */ s.jsxs("g", { onMouseEnter: (X) => {
|
|
244
|
+
rt(i), ct(X.clientY), u(X.clientX), lt?.(i);
|
|
245
245
|
}, onClick: () => {
|
|
246
|
-
(
|
|
247
|
-
}, onMouseMove: (
|
|
248
|
-
|
|
246
|
+
(O || $) && (xe(T, i) && pt ? (yt(void 0), O?.(void 0)) : (yt(i), O?.(i)));
|
|
247
|
+
}, onMouseMove: (X) => {
|
|
248
|
+
rt(i), ct(X.clientY), u(X.clientX);
|
|
249
249
|
}, onMouseLeave: () => {
|
|
250
|
-
|
|
250
|
+
rt(void 0), u(void 0), ct(void 0), lt?.(void 0);
|
|
251
251
|
}, children: [
|
|
252
|
-
/* @__PURE__ */ s.jsx(
|
|
253
|
-
cy:
|
|
252
|
+
/* @__PURE__ */ s.jsx(Ht.circle, { exit: {
|
|
253
|
+
cy: b(0),
|
|
254
254
|
opacity: 0,
|
|
255
255
|
transition: {
|
|
256
|
-
duration:
|
|
256
|
+
duration: a.duration
|
|
257
257
|
}
|
|
258
258
|
}, variants: {
|
|
259
259
|
initial: {
|
|
260
|
-
cy:
|
|
260
|
+
cy: b(0),
|
|
261
261
|
opacity: 0,
|
|
262
262
|
fill: f
|
|
263
263
|
},
|
|
264
264
|
whileInView: {
|
|
265
|
-
cy:
|
|
265
|
+
cy: b(i.line),
|
|
266
266
|
opacity: 1,
|
|
267
267
|
fill: f,
|
|
268
268
|
transition: {
|
|
269
|
-
duration:
|
|
269
|
+
duration: a.duration
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
}, initial: "initial", animate:
|
|
273
|
-
|
|
274
|
-
y:
|
|
272
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", cx: y(i.id) + y.bandwidth() / 2, r: g / x.length < 5 ? 0 : g / x.length < 20 ? 2 : 4 }),
|
|
273
|
+
kt ? /* @__PURE__ */ s.jsx(Ht.text, { x: y(`${i.id}`) + y.bandwidth() / 2, exit: {
|
|
274
|
+
y: b(0),
|
|
275
275
|
opacity: 0,
|
|
276
276
|
transition: {
|
|
277
|
-
duration:
|
|
277
|
+
duration: a.duration
|
|
278
278
|
}
|
|
279
279
|
}, style: {
|
|
280
280
|
textAnchor: "middle",
|
|
281
281
|
...o?.graphObjectValues || {}
|
|
282
282
|
}, variants: {
|
|
283
283
|
initial: {
|
|
284
|
-
y:
|
|
284
|
+
y: b(0),
|
|
285
285
|
opacity: 0,
|
|
286
286
|
fill: f
|
|
287
287
|
},
|
|
288
288
|
whileInView: {
|
|
289
|
-
y:
|
|
289
|
+
y: b(i.line),
|
|
290
290
|
opacity: 1,
|
|
291
291
|
fill: f,
|
|
292
292
|
transition: {
|
|
293
|
-
duration:
|
|
293
|
+
duration: a.duration
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
}, initial: "initial", animate:
|
|
297
|
-
] }) },
|
|
296
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", className: ne("graph-value text-sm", n?.graphObjectValues), dy: "-5px", children: se(i.line, at, B, Nt, ht) }) : null
|
|
297
|
+
] }) }, Xt)), t[8] = a, t[9] = m, t[10] = d, t[11] = Gt, t[12] = St, t[13] = $t, t[14] = n?.graphObjectValues, t[15] = n?.xAxis?.axis, t[16] = n?.xAxis?.labels, t[17] = n?.yAxis?.gridLines, t[18] = n?.yAxis?.labels, t[19] = n?.yAxis?.title, t[20] = Ft, t[21] = V, t[22] = p, t[23] = $, t[24] = l, t[25] = g, t[26] = W, t[27] = D, t[28] = f, t[29] = Nt, t[30] = ht, t[31] = c.bottom, t[32] = c.left, t[33] = c.right, t[34] = c.top, t[35] = T, t[36] = at, t[37] = dt, t[38] = O, t[39] = lt, t[40] = B, t[41] = pt, t[42] = A, t[43] = N, t[44] = Rt, t[45] = kt, t[46] = o?.graphObjectValues, t[47] = o?.xAxis?.axis, t[48] = o?.xAxis?.labels, t[49] = o?.yAxis?.gridLines, t[50] = o?.yAxis?.labels, t[51] = o?.yAxis?.title, t[52] = Lt, t[53] = H, t[54] = w, t[55] = G, t[56] = R, t[57] = S, t[58] = F, t[59] = z, t[60] = q, t[61] = j, t[62] = M, t[63] = I, t[64] = P, t[65] = U, t[66] = J, t[67] = K, t[68] = Q;
|
|
298
298
|
} else
|
|
299
|
-
|
|
300
|
-
let K;
|
|
301
|
-
t[119] !== S || t[120] !== D || t[121] !== T || t[122] !== z ? (K = /* @__PURE__ */ s.jsxs(S, { children: [
|
|
302
|
-
D,
|
|
303
|
-
T,
|
|
304
|
-
z
|
|
305
|
-
] }), t[119] = S, t[120] = D, t[121] = T, t[122] = z, t[123] = K) : K = t[123];
|
|
306
|
-
let b;
|
|
307
|
-
t[124] !== L ? (b = L.filter(Yi).map(Pi), t[124] = L, t[125] = b) : b = t[125];
|
|
308
|
-
let Q;
|
|
309
|
-
t[126] !== B || t[127] !== C || t[128] !== K || t[129] !== b || t[130] !== q || t[131] !== U || t[132] !== J ? (Q = /* @__PURE__ */ s.jsxs("g", { transform: q, children: [
|
|
310
|
-
U,
|
|
311
|
-
J,
|
|
312
|
-
B,
|
|
313
|
-
C,
|
|
314
|
-
K,
|
|
315
|
-
b
|
|
316
|
-
] }), t[126] = B, t[127] = C, t[128] = K, t[129] = b, t[130] = q, t[131] = U, t[132] = J, t[133] = Q) : Q = t[133];
|
|
299
|
+
w = t[54], G = t[55], R = t[56], S = t[57], F = t[58], z = t[59], q = t[60], j = t[61], M = t[62], I = t[63], P = t[64], U = t[65], J = t[66], K = t[67], Q = t[68];
|
|
317
300
|
let Z;
|
|
318
|
-
t[
|
|
301
|
+
t[119] !== w || t[120] !== I || t[121] !== P || t[122] !== U ? (Z = /* @__PURE__ */ s.jsxs(w, { children: [
|
|
302
|
+
I,
|
|
303
|
+
P,
|
|
304
|
+
U
|
|
305
|
+
] }), t[119] = w, t[120] = I, t[121] = P, t[122] = U, t[123] = Z) : Z = t[123];
|
|
306
|
+
let v;
|
|
307
|
+
t[124] !== V ? (v = V.filter(Ye).map(Pe), t[124] = V, t[125] = v) : v = t[125];
|
|
319
308
|
let _;
|
|
320
|
-
t[
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
309
|
+
t[126] !== R || t[127] !== S || t[128] !== Z || t[129] !== v || t[130] !== J || t[131] !== K || t[132] !== Q ? (_ = /* @__PURE__ */ s.jsxs("g", { transform: J, children: [
|
|
310
|
+
K,
|
|
311
|
+
Q,
|
|
312
|
+
R,
|
|
313
|
+
S,
|
|
325
314
|
Z,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
315
|
+
v
|
|
316
|
+
] }), t[126] = R, t[127] = S, t[128] = Z, t[129] = v, t[130] = J, t[131] = K, t[132] = Q, t[133] = _) : _ = t[133];
|
|
317
|
+
let tt;
|
|
318
|
+
t[134] !== G || t[135] !== F || t[136] !== z || t[137] !== q || t[138] !== j || t[139] !== M || t[140] !== _ ? (tt = /* @__PURE__ */ s.jsx(G, { width: F, height: z, viewBox: q, direction: j, ref: M, children: _ }), t[134] = G, t[135] = F, t[136] = z, t[137] = q, t[138] = j, t[139] = M, t[140] = _, t[141] = tt) : tt = t[141];
|
|
319
|
+
let et;
|
|
320
|
+
t[142] !== n?.tooltip || t[143] !== Dt || t[144] !== r || t[145] !== Vt || t[146] !== o?.tooltip || t[147] !== Ct ? (et = Vt && Ct && Dt && r ? /* @__PURE__ */ s.jsx(ge, { data: Vt, body: Ct, xPos: Dt, yPos: r, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[142] = n?.tooltip, t[143] = Dt, t[144] = r, t[145] = Vt, t[146] = o?.tooltip, t[147] = Ct, t[148] = et) : et = t[148];
|
|
321
|
+
let it;
|
|
322
|
+
t[149] !== n?.modal || t[150] !== $ || t[151] !== T ? (it = $ && T !== void 0 ? /* @__PURE__ */ s.jsx(be, { body: $, data: T, setData: yt, className: n?.modal }) : null, t[149] = n?.modal, t[150] = $, t[151] = T, t[152] = it) : it = t[152];
|
|
323
|
+
let vt;
|
|
324
|
+
return t[153] !== tt || t[154] !== et || t[155] !== it ? (vt = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
325
|
+
tt,
|
|
326
|
+
et,
|
|
327
|
+
it
|
|
328
|
+
] }), t[153] = tt, t[154] = et, t[155] = it, t[156] = vt) : vt = t[156], vt;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
return
|
|
330
|
+
function Pe(e) {
|
|
331
|
+
return e.layer;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
333
|
+
function Ye(e) {
|
|
334
|
+
return e.position === "after";
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Ee(e) {
|
|
337
337
|
return {
|
|
338
|
-
...
|
|
338
|
+
...e,
|
|
339
339
|
line: 0
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
|
-
function
|
|
343
|
-
return
|
|
342
|
+
function Xe(e) {
|
|
343
|
+
return e.layer;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
return
|
|
345
|
+
function He(e) {
|
|
346
|
+
return e.position === "before";
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return !
|
|
348
|
+
function We(e) {
|
|
349
|
+
return !me(e.line);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
return
|
|
351
|
+
function Be(e) {
|
|
352
|
+
return e != null;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
return
|
|
354
|
+
function Ge(e) {
|
|
355
|
+
return e.line;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
return
|
|
357
|
+
function Re(e) {
|
|
358
|
+
return e != null;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
return
|
|
360
|
+
function Fe(e) {
|
|
361
|
+
return e.line;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
return
|
|
363
|
+
function ze(e) {
|
|
364
|
+
return e != null;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
return
|
|
366
|
+
function qe(e) {
|
|
367
|
+
return e.bar;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
return
|
|
369
|
+
function Ue(e) {
|
|
370
|
+
return e != null;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
return
|
|
372
|
+
function Je(e) {
|
|
373
|
+
return e.bar;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
return
|
|
375
|
+
function Ke(e) {
|
|
376
|
+
return e != null;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
return
|
|
378
|
+
function Qe(e) {
|
|
379
|
+
return e.line;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
return
|
|
381
|
+
function Ze(e) {
|
|
382
|
+
return e != null;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
return
|
|
384
|
+
function _e(e) {
|
|
385
|
+
return e.line;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
387
|
+
function ti(e) {
|
|
388
|
+
return e != null;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
return
|
|
390
|
+
function ei(e) {
|
|
391
|
+
return e.line;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
return
|
|
393
|
+
function ii(e) {
|
|
394
|
+
return e != null;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
return
|
|
396
|
+
function oi(e) {
|
|
397
|
+
return e.bar;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
return
|
|
399
|
+
function ni(e) {
|
|
400
|
+
return e != null;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
return
|
|
402
|
+
function si(e) {
|
|
403
|
+
return e.bar;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
return
|
|
405
|
+
function li(e) {
|
|
406
|
+
return e != null;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
return
|
|
408
|
+
function ai(e) {
|
|
409
|
+
return e.bar;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
return `${
|
|
411
|
+
function ri(e) {
|
|
412
|
+
return `${e.id}`;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ci(e, t) {
|
|
415
415
|
return {
|
|
416
|
-
...
|
|
416
|
+
...e,
|
|
417
417
|
id: `${t}`
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
const t =
|
|
422
|
-
data:
|
|
423
|
-
graphTitle:
|
|
424
|
-
sources:
|
|
425
|
-
graphDescription:
|
|
420
|
+
function Ei(e) {
|
|
421
|
+
const t = de.c(90), {
|
|
422
|
+
data: p,
|
|
423
|
+
graphTitle: H,
|
|
424
|
+
sources: W,
|
|
425
|
+
graphDescription: d,
|
|
426
426
|
height: f,
|
|
427
|
-
width:
|
|
427
|
+
width: m,
|
|
428
428
|
footNote: A,
|
|
429
|
-
padding:
|
|
430
|
-
lineColor:
|
|
431
|
-
barColor:
|
|
432
|
-
sameAxes:
|
|
433
|
-
backgroundColor:
|
|
434
|
-
leftMargin:
|
|
435
|
-
rightMargin:
|
|
436
|
-
topMargin:
|
|
437
|
-
bottomMargin:
|
|
438
|
-
lineAxisTitle:
|
|
439
|
-
barAxisTitle:
|
|
440
|
-
tooltip:
|
|
441
|
-
relativeHeight:
|
|
442
|
-
onSeriesMouseOver:
|
|
443
|
-
graphID:
|
|
444
|
-
graphDownload:
|
|
445
|
-
dataDownload:
|
|
446
|
-
barPadding:
|
|
447
|
-
truncateBy:
|
|
429
|
+
padding: Qt,
|
|
430
|
+
lineColor: te,
|
|
431
|
+
barColor: Wt,
|
|
432
|
+
sameAxes: Bt,
|
|
433
|
+
backgroundColor: Ct,
|
|
434
|
+
leftMargin: kt,
|
|
435
|
+
rightMargin: lt,
|
|
436
|
+
topMargin: Gt,
|
|
437
|
+
bottomMargin: Lt,
|
|
438
|
+
lineAxisTitle: Rt,
|
|
439
|
+
barAxisTitle: O,
|
|
440
|
+
tooltip: pt,
|
|
441
|
+
relativeHeight: $,
|
|
442
|
+
onSeriesMouseOver: dt,
|
|
443
|
+
graphID: ht,
|
|
444
|
+
graphDownload: $t,
|
|
445
|
+
dataDownload: Nt,
|
|
446
|
+
barPadding: St,
|
|
447
|
+
truncateBy: Ot,
|
|
448
448
|
showLabels: o,
|
|
449
449
|
onSeriesMouseClick: n,
|
|
450
|
-
language:
|
|
451
|
-
colorLegendTitle:
|
|
452
|
-
minHeight:
|
|
453
|
-
theme:
|
|
454
|
-
ariaLabel:
|
|
455
|
-
resetSelectionOnDoubleClick:
|
|
456
|
-
detailsOnClick:
|
|
457
|
-
showValues:
|
|
458
|
-
noOfTicks:
|
|
459
|
-
lineSuffix:
|
|
460
|
-
barSuffix:
|
|
461
|
-
linePrefix:
|
|
462
|
-
barPrefix:
|
|
463
|
-
curveType:
|
|
464
|
-
styles:
|
|
465
|
-
classNames:
|
|
466
|
-
animate:
|
|
467
|
-
precision:
|
|
468
|
-
customLayers:
|
|
469
|
-
naLabel:
|
|
470
|
-
showColorScale:
|
|
471
|
-
showAxisLabels:
|
|
472
|
-
} =
|
|
473
|
-
let
|
|
474
|
-
t[0] !==
|
|
475
|
-
const
|
|
476
|
-
let
|
|
477
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
478
|
-
const
|
|
479
|
-
|
|
450
|
+
language: a,
|
|
451
|
+
colorLegendTitle: B,
|
|
452
|
+
minHeight: V,
|
|
453
|
+
theme: at,
|
|
454
|
+
ariaLabel: N,
|
|
455
|
+
resetSelectionOnDoubleClick: Zt,
|
|
456
|
+
detailsOnClick: gt,
|
|
457
|
+
showValues: D,
|
|
458
|
+
noOfTicks: Ft,
|
|
459
|
+
lineSuffix: Vt,
|
|
460
|
+
barSuffix: rt,
|
|
461
|
+
linePrefix: T,
|
|
462
|
+
barPrefix: yt,
|
|
463
|
+
curveType: Dt,
|
|
464
|
+
styles: u,
|
|
465
|
+
classNames: r,
|
|
466
|
+
animate: ct,
|
|
467
|
+
precision: zt,
|
|
468
|
+
customLayers: bt,
|
|
469
|
+
naLabel: Tt,
|
|
470
|
+
showColorScale: c,
|
|
471
|
+
showAxisLabels: g
|
|
472
|
+
} = e, l = te === void 0 ? le.light.categoricalColors.colors[1] : te, w = Wt === void 0 ? le.light.categoricalColors.colors[0] : Wt, G = Bt === void 0 ? !1 : Bt, R = Ct === void 0 ? !1 : Ct, S = kt === void 0 ? 80 : kt, F = lt === void 0 ? 80 : lt, z = Gt === void 0 ? 20 : Gt, q = Lt === void 0 ? 25 : Lt, j = Rt === void 0 ? "Line chart" : Rt, M = O === void 0 ? "Bar graph" : O, I = $t === void 0 ? !1 : $t, P = Nt === void 0 ? !1 : Nt, U = St === void 0 ? 0.25 : St, J = Ot === void 0 ? 999 : Ot, K = o === void 0 ? !0 : o, Q = a === void 0 ? "en" : a, Z = V === void 0 ? 0 : V, v = at === void 0 ? "light" : at, _ = Zt === void 0 ? !0 : Zt, tt = D === void 0 ? !0 : D, et = Ft === void 0 ? 5 : Ft, it = Vt === void 0 ? "" : Vt, vt = rt === void 0 ? "" : rt, x = T === void 0 ? "" : T, y = yt === void 0 ? "" : yt, It = Dt === void 0 ? "curve" : Dt, At = ct === void 0 ? !1 : ct, wt = zt === void 0 ? 2 : zt;
|
|
473
|
+
let ut;
|
|
474
|
+
t[0] !== bt ? (ut = bt === void 0 ? [] : bt, t[0] = bt, t[1] = ut) : ut = t[1];
|
|
475
|
+
const qt = ut, jt = Tt === void 0 ? "NA" : Tt, h = c === void 0 ? !0 : c, b = g === void 0 ? !0 : g, [Pt, ae] = Kt(0), [Ut, _t] = Kt(0), ot = ue(null), mt = ue(null);
|
|
476
|
+
let Y, xt;
|
|
477
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (Y = () => {
|
|
478
|
+
const Jt = new ResizeObserver((Et) => {
|
|
479
|
+
ae(Et[0].target.clientWidth || 620), _t(Et[0].target.clientHeight || 480);
|
|
480
480
|
});
|
|
481
|
-
return
|
|
482
|
-
},
|
|
483
|
-
const
|
|
484
|
-
let
|
|
485
|
-
t[4] !==
|
|
486
|
-
title:
|
|
487
|
-
description:
|
|
481
|
+
return ot.current && Jt.observe(ot.current), () => Jt.disconnect();
|
|
482
|
+
}, xt = [], t[2] = Y, t[3] = xt) : (Y = t[2], xt = t[3]), he(Y, xt);
|
|
483
|
+
const Mt = r?.graphContainer, Yt = u?.graphContainer;
|
|
484
|
+
let nt;
|
|
485
|
+
t[4] !== r?.description || t[5] !== r?.title || t[6] !== p || t[7] !== P || t[8] !== d || t[9] !== I || t[10] !== H || t[11] !== u?.description || t[12] !== u?.title || t[13] !== m ? (nt = H || d || I || P ? /* @__PURE__ */ s.jsx(Se, { styles: {
|
|
486
|
+
title: u?.title,
|
|
487
|
+
description: u?.description
|
|
488
488
|
}, classNames: {
|
|
489
|
-
title:
|
|
490
|
-
description:
|
|
491
|
-
}, graphTitle:
|
|
492
|
-
let
|
|
493
|
-
t[15] !==
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
489
|
+
title: r?.title,
|
|
490
|
+
description: r?.description
|
|
491
|
+
}, graphTitle: H, graphDescription: d, width: m, graphDownload: I ? mt : void 0, dataDownload: P ? p.map(pi).filter(fi).length > 0 ? p.map(xi).filter(mi) : p.filter(ui) : null }) : null, t[4] = r?.description, t[5] = r?.title, t[6] = p, t[7] = P, t[8] = d, t[9] = I, t[10] = H, t[11] = u?.description, t[12] = u?.title, t[13] = m, t[14] = nt) : nt = t[14];
|
|
492
|
+
let st;
|
|
493
|
+
t[15] !== M || t[16] !== w || t[17] !== r?.colorLegend || t[18] !== B || t[19] !== p.length || t[20] !== j || t[21] !== l || t[22] !== h || t[23] !== v ? (st = !h && p.length > 0 ? null : /* @__PURE__ */ s.jsx(Oe, { colorDomain: [M, j], colors: [w || le[v].categoricalColors.colors[0], l || le[v].categoricalColors.colors[1]], colorLegendTitle: B, showNAColor: !1, className: r?.colorLegend }), t[15] = M, t[16] = w, t[17] = r?.colorLegend, t[18] = B, t[19] = p.length, t[20] = j, t[21] = l, t[22] = h, t[23] = v, t[24] = st) : st = t[24];
|
|
494
|
+
let C;
|
|
495
|
+
t[25] !== p.length ? (C = p.length === 0 && /* @__PURE__ */ s.jsx(Ve, {}), t[25] = p.length, t[26] = C) : C = t[26];
|
|
496
|
+
let k;
|
|
497
|
+
t[27] !== At || t[28] !== M || t[29] !== w || t[30] !== U || t[31] !== y || t[32] !== vt || t[33] !== q || t[34] !== r || t[35] !== It || t[36] !== qt || t[37] !== p || t[38] !== gt || t[39] !== S || t[40] !== j || t[41] !== l || t[42] !== x || t[43] !== it || t[44] !== jt || t[45] !== et || t[46] !== n || t[47] !== dt || t[48] !== wt || t[49] !== _ || t[50] !== F || t[51] !== G || t[52] !== b || t[53] !== K || t[54] !== tt || t[55] !== u || t[56] !== Ut || t[57] !== Pt || t[58] !== pt || t[59] !== z || t[60] !== J ? (k = Pt && Ut && p.length > 0 ? /* @__PURE__ */ s.jsx(Ie, { data: p, sameAxes: G, lineColor: l, barColor: w, width: Pt, height: Ut, truncateBy: J, leftMargin: S, rightMargin: F, topMargin: z, bottomMargin: q, axisTitles: [M, j], tooltip: pt, onSeriesMouseOver: dt, barPadding: U, showLabels: K, onSeriesMouseClick: n, resetSelectionOnDoubleClick: _, detailsOnClick: gt, noOfTicks: et, lineSuffix: it, barSuffix: vt, linePrefix: x, barPrefix: y, curveType: It, showValues: tt, styles: u, classNames: r, animate: At === !0 ? {
|
|
498
|
+
duration: 0.5,
|
|
499
|
+
once: !0,
|
|
500
|
+
amount: 0.5
|
|
501
|
+
} : At || {
|
|
502
|
+
duration: 0,
|
|
503
|
+
once: !0,
|
|
504
|
+
amount: 0
|
|
505
|
+
}, precision: wt, customLayers: qt, naLabel: jt, showAxisLabels: b }) : null, t[27] = At, t[28] = M, t[29] = w, t[30] = U, t[31] = y, t[32] = vt, t[33] = q, t[34] = r, t[35] = It, t[36] = qt, t[37] = p, t[38] = gt, t[39] = S, t[40] = j, t[41] = l, t[42] = x, t[43] = it, t[44] = jt, t[45] = et, t[46] = n, t[47] = dt, t[48] = wt, t[49] = _, t[50] = F, t[51] = G, t[52] = b, t[53] = K, t[54] = tt, t[55] = u, t[56] = Ut, t[57] = Pt, t[58] = pt, t[59] = z, t[60] = J, t[61] = k) : k = t[61];
|
|
506
|
+
let L;
|
|
507
|
+
t[62] !== C || t[63] !== k ? (L = /* @__PURE__ */ s.jsxs(De, { ref: ot, children: [
|
|
508
|
+
C,
|
|
509
|
+
k
|
|
510
|
+
] }), t[62] = C, t[63] = k, t[64] = L) : L = t[64];
|
|
511
|
+
let E;
|
|
512
|
+
t[65] !== r?.footnote || t[66] !== r?.source || t[67] !== A || t[68] !== W || t[69] !== u?.footnote || t[70] !== u?.source || t[71] !== m ? (E = W || A ? /* @__PURE__ */ s.jsx(Ne, { styles: {
|
|
513
|
+
footnote: u?.footnote,
|
|
514
|
+
source: u?.source
|
|
509
515
|
}, classNames: {
|
|
510
|
-
footnote:
|
|
511
|
-
source:
|
|
512
|
-
}, sources:
|
|
513
|
-
let
|
|
514
|
-
return t[
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
516
|
+
footnote: r?.footnote,
|
|
517
|
+
source: r?.source
|
|
518
|
+
}, sources: W, footNote: A, width: m }) : null, t[65] = r?.footnote, t[66] = r?.source, t[67] = A, t[68] = W, t[69] = u?.footnote, t[70] = u?.source, t[71] = m, t[72] = E) : E = t[72];
|
|
519
|
+
let ft;
|
|
520
|
+
return t[73] !== N || t[74] !== R || t[75] !== ht || t[76] !== f || t[77] !== Q || t[78] !== Z || t[79] !== Qt || t[80] !== $ || t[81] !== Mt || t[82] !== Yt || t[83] !== nt || t[84] !== st || t[85] !== L || t[86] !== E || t[87] !== v || t[88] !== m ? (ft = /* @__PURE__ */ s.jsxs(Te, { className: Mt, style: Yt, id: ht, ref: mt, "aria-label": N, backgroundColor: R, theme: v, language: Q, minHeight: Z, width: m, height: f, relativeHeight: $, padding: Qt, children: [
|
|
521
|
+
nt,
|
|
522
|
+
st,
|
|
523
|
+
L,
|
|
524
|
+
E
|
|
525
|
+
] }), t[73] = N, t[74] = R, t[75] = ht, t[76] = f, t[77] = Q, t[78] = Z, t[79] = Qt, t[80] = $, t[81] = Mt, t[82] = Yt, t[83] = nt, t[84] = st, t[85] = L, t[86] = E, t[87] = v, t[88] = m, t[89] = ft) : ft = t[89], ft;
|
|
519
526
|
}
|
|
520
|
-
function
|
|
521
|
-
return
|
|
527
|
+
function ui(e) {
|
|
528
|
+
return e !== void 0;
|
|
522
529
|
}
|
|
523
|
-
function
|
|
524
|
-
return
|
|
530
|
+
function mi(e) {
|
|
531
|
+
return e !== void 0;
|
|
525
532
|
}
|
|
526
|
-
function
|
|
527
|
-
return
|
|
533
|
+
function xi(e) {
|
|
534
|
+
return e.data;
|
|
528
535
|
}
|
|
529
|
-
function
|
|
530
|
-
return
|
|
536
|
+
function fi(e) {
|
|
537
|
+
return e !== void 0;
|
|
531
538
|
}
|
|
532
|
-
function
|
|
533
|
-
return
|
|
539
|
+
function pi(e) {
|
|
540
|
+
return e.data;
|
|
534
541
|
}
|
|
535
542
|
export {
|
|
536
|
-
|
|
543
|
+
Ei as ParetoChart
|
|
537
544
|
};
|
|
538
545
|
//# sourceMappingURL=ParetoChart.js.map
|