@undp/data-viz 1.5.7 → 1.5.9
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.js +13 -13
- package/dist/{Axis-Ddg-seDi.js → Axis-4gUOL8B7.js} +2 -2
- package/dist/{Axis-Ddg-seDi.js.map → Axis-4gUOL8B7.js.map} +1 -1
- package/dist/{Axis-DE7dSn1_.cjs → Axis-CkNn1wit.cjs} +2 -2
- package/dist/{Axis-DE7dSn1_.cjs.map → Axis-CkNn1wit.cjs.map} +1 -1
- package/dist/{AxisTitle-CK9YeovX.cjs → AxisTitle-Wkz-xeQL.cjs} +2 -2
- package/dist/{AxisTitle-CK9YeovX.cjs.map → AxisTitle-Wkz-xeQL.cjs.map} +1 -1
- package/dist/{AxisTitle-BmHLMRJZ.js → AxisTitle-v6_xcXZ-.js} +2 -2
- package/dist/{AxisTitle-BmHLMRJZ.js.map → AxisTitle-v6_xcXZ-.js.map} +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +666 -664
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +2 -2
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +42 -42
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +2 -0
- package/dist/BiVariateChoroplethMap.js +257 -264
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +223 -221
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +84 -82
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +2 -0
- package/dist/ChoroplethMap.js +296 -304
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +3 -3
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +2 -2
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +2 -2
- package/dist/CopyTextButton.cjs +4 -4
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +27 -27
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +1 -1
- package/dist/CsvDownloadButton.js +2 -2
- package/dist/DataCards.cjs +3 -3
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +16 -16
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +3 -3
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +133 -131
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +20 -20
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +2 -0
- package/dist/DotDensityMap.js +282 -289
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-6kjXM6oW.js} +2 -2
- package/dist/DropdownSelect-6kjXM6oW.js.map +1 -0
- package/dist/{DropdownSelect-DBDM64B5.cjs → DropdownSelect-vt8yiB-g.cjs} +5 -5
- package/dist/DropdownSelect-vt8yiB-g.cjs.map +1 -0
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +141 -121
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +307 -307
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-DdTp-Mdn.js → EmptyState-36lXXyui.js} +4 -4
- package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-36lXXyui.js.map} +1 -1
- package/dist/{EmptyState-d8_8SxeW.cjs → EmptyState-B8IpKGcL.cjs} +2 -2
- package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-B8IpKGcL.cjs.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.js +2 -2
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +2 -2
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.cjs.map +1 -1
- package/dist/GeoHubCompareMaps.js +65 -80
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.cjs.map +1 -1
- package/dist/GeoHubMap.js +95 -125
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +73 -88
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +2 -2
- package/dist/{GraphEl-CqWzvOyr.js → GraphEl-2IiUDxjR.js} +15 -12
- package/dist/GraphEl-2IiUDxjR.js.map +1 -0
- package/dist/GraphEl-qrlfGPe3.cjs +2 -0
- package/dist/GraphEl-qrlfGPe3.cjs.map +1 -0
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +1 -1
- package/dist/GraphHeader.cjs +1 -1
- package/dist/GraphHeader.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +2 -2
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +5 -5
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/GriddedGraphsFromConfig.js +2 -2
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +19 -19
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +3 -3
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +2 -2
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +204 -184
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +2 -2
- package/dist/{Modal-DVVwpKhP.js → Modal-Cg8daIlV.js} +198 -187
- package/dist/Modal-Cg8daIlV.js.map +1 -0
- package/dist/Modal-CuuJdWkD.cjs +46 -0
- package/dist/Modal-CuuJdWkD.cjs.map +1 -0
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboard.js +3 -3
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.js +2 -2
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +172 -173
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +89 -78
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +186 -181
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +3 -3
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
- package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.js +3 -3
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +256 -244
- package/dist/RadarChart.js.map +1 -1
- package/dist/{ReferenceLine-CfAW3vKJ.js → ReferenceLine-CPMaAX0r.js} +3 -3
- package/dist/{ReferenceLine-CfAW3vKJ.js.map → ReferenceLine-CPMaAX0r.js.map} +1 -1
- package/dist/{ReferenceLine-CFVBBN__.cjs → ReferenceLine-D04j-zeV.cjs} +2 -2
- package/dist/{ReferenceLine-CFVBBN__.cjs.map → ReferenceLine-D04j-zeV.cjs.map} +1 -1
- package/dist/{RegressionLine-mH7UKOPi.js → RegressionLine-CW7iViH2.js} +13 -12
- package/dist/RegressionLine-CW7iViH2.js.map +1 -0
- package/dist/RegressionLine-D-49RaHa.cjs +2 -0
- package/dist/RegressionLine-D-49RaHa.cjs.map +1 -0
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.js +2 -2
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +27 -27
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +145 -144
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.cjs +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/ScrollStory.js +3 -3
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +53 -48
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +6 -6
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardFromConfig.js +2 -2
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js +2 -2
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +14 -13
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +137 -133
- package/dist/SlopeChart.js.map +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +2 -2
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/{Spinner-C85UF28E.js → Spinner-Bpz70q_g.js} +2 -2
- package/dist/{Spinner-C85UF28E.js.map → Spinner-Bpz70q_g.js.map} +1 -1
- package/dist/{Spinner-DA6Z5E4n.cjs → Spinner-C6wLp85s.cjs} +2 -2
- package/dist/{Spinner-DA6Z5E4n.cjs.map → Spinner-C6wLp85s.cjs.map} +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +307 -295
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +2 -0
- package/dist/ThreeDGlobe.js +220 -228
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
- package/dist/{Tooltip-CVCGWyzw.js → Tooltip-6LIdPQGC.js} +2 -2
- package/dist/{Tooltip-CVCGWyzw.js.map → Tooltip-6LIdPQGC.js.map} +1 -1
- package/dist/{Tooltip-De16GWhY.cjs → Tooltip-Cpv0QohJ.cjs} +2 -2
- package/dist/{Tooltip-De16GWhY.cjs.map → Tooltip-Cpv0QohJ.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +24 -24
- package/dist/Types.d.ts +1 -0
- package/dist/{Typography-k-kOjICQ.cjs → Typography-BDULiwlF.cjs} +2 -2
- package/dist/{Typography-k-kOjICQ.cjs.map → Typography-BDULiwlF.cjs.map} +1 -1
- package/dist/{Typography-Ctgfl1J5.js → Typography-LmZ9LEpe.js} +2 -2
- package/dist/{Typography-Ctgfl1J5.js.map → Typography-LmZ9LEpe.js.map} +1 -1
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.js +25 -26
- package/dist/UnitChart.js.map +1 -1
- package/dist/{XAxesLabels-Drf7M3YK.cjs → XAxesLabels-CLZnBgSr.cjs} +2 -2
- package/dist/{XAxesLabels-Drf7M3YK.cjs.map → XAxesLabels-CLZnBgSr.cjs.map} +1 -1
- package/dist/{XAxesLabels-loO78vUO.js → XAxesLabels-SOSmso5J.js} +3 -3
- package/dist/{XAxesLabels-loO78vUO.js.map → XAxesLabels-SOSmso5J.js.map} +1 -1
- package/dist/{XTicksAndGridLines-Bn9u5gOM.js → XTicksAndGridLines-DuydSnZ_.js} +2 -2
- package/dist/{XTicksAndGridLines-Bn9u5gOM.js.map → XTicksAndGridLines-DuydSnZ_.js.map} +1 -1
- package/dist/{XTicksAndGridLines-CCzXIV8d.cjs → XTicksAndGridLines-RKy7BVCO.cjs} +2 -2
- package/dist/{XTicksAndGridLines-CCzXIV8d.cjs.map → XTicksAndGridLines-RKy7BVCO.cjs.map} +1 -1
- package/dist/{YAxesLabels-DECkMgq8.js → YAxesLabels-DlDyLvhi.js} +3 -3
- package/dist/{YAxesLabels-DECkMgq8.js.map → YAxesLabels-DlDyLvhi.js.map} +1 -1
- package/dist/{YAxesLabels-yRFFdx1s.cjs → YAxesLabels-Dqd259-t.cjs} +2 -2
- package/dist/{YAxesLabels-yRFFdx1s.cjs.map → YAxesLabels-Dqd259-t.cjs.map} +1 -1
- package/dist/{YTicksAndGridLines-B6ah7CRf.js → YTicksAndGridLines-7t4MKtGw.js} +2 -2
- package/dist/{YTicksAndGridLines-B6ah7CRf.js.map → YTicksAndGridLines-7t4MKtGw.js.map} +1 -1
- package/dist/{YTicksAndGridLines-DBDuz6vb.cjs → YTicksAndGridLines-qGpRo_t1.cjs} +2 -2
- package/dist/{YTicksAndGridLines-DBDuz6vb.cjs.map → YTicksAndGridLines-qGpRo_t1.cjs.map} +1 -1
- package/dist/checkIfMultiple-Dko_cBvE.cjs +12 -0
- package/dist/checkIfMultiple-Dko_cBvE.cjs.map +1 -0
- package/dist/{checkIfMultiple-ChTJk2Tk.js → checkIfMultiple-u2SmbiCf.js} +11 -11
- package/dist/checkIfMultiple-u2SmbiCf.js.map +1 -0
- package/dist/{customArea-CK768gCn.cjs → customArea-1G1S78s_.cjs} +2 -2
- package/dist/{customArea-CK768gCn.cjs.map → customArea-1G1S78s_.cjs.map} +1 -1
- package/dist/{customArea-B-dWU0zZ.js → customArea-x4L4xwLl.js} +3 -3
- package/dist/{customArea-B-dWU0zZ.js.map → customArea-x4L4xwLl.js.map} +1 -1
- package/dist/getCentroidCoordinates-Dfk6IqEG.js.map +1 -1
- package/dist/getCentroidCoordinates-DxTBqzp2.cjs.map +1 -1
- package/dist/getSliderMarks-CUxPy36E.cjs +6 -0
- package/dist/getSliderMarks-CUxPy36E.cjs.map +1 -0
- package/dist/{getSliderMarks-9cNoRkDx.js → getSliderMarks-_pYOWEtO.js} +3 -3
- package/dist/getSliderMarks-_pYOWEtO.js.map +1 -0
- package/dist/{index-BYzIB5V6.cjs → index-BHe3wsWF.cjs} +2 -2
- package/dist/{index-BYzIB5V6.cjs.map → index-BHe3wsWF.cjs.map} +1 -1
- package/dist/{index-DKCxu1Gh.js → index-Bw_eHBVN.js} +3 -3
- package/dist/{index-DKCxu1Gh.js.map → index-Bw_eHBVN.js.map} +1 -1
- package/dist/{index-BW_-wD2k.cjs → index-C0bpbS4F.cjs} +2 -2
- package/dist/{index-BW_-wD2k.cjs.map → index-C0bpbS4F.cjs.map} +1 -1
- package/dist/{index-37q0ULNQ.js → index-CE9pmfxt.js} +17 -17
- package/dist/{index-37q0ULNQ.js.map → index-CE9pmfxt.js.map} +1 -1
- package/dist/{index-CVlCtJbC.cjs → index-CEJwW3lL.cjs} +2 -2
- package/dist/{index-CVlCtJbC.cjs.map → index-CEJwW3lL.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-DBWUSD9b.js} +539 -543
- package/dist/index-CHPV5EwG-DBWUSD9b.js.map +1 -0
- package/dist/index-CHPV5EwG-DjM48pIC.cjs +44 -0
- package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +1 -0
- package/dist/{index-BW8iNx7E.cjs → index-Cm8NIdOO.cjs} +2 -2
- package/dist/{index-BW8iNx7E.cjs.map → index-Cm8NIdOO.cjs.map} +1 -1
- package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-BuI_jX5Z.js} +3 -3
- package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-BuI_jX5Z.js.map} +1 -1
- package/dist/index-Cw8sCyo_-gxT8ADyn.cjs +2 -0
- package/dist/index-Cw8sCyo_-gxT8ADyn.cjs.map +1 -0
- package/dist/{index-CNvov0eg.js → index-Cwgh7i7X.js} +3 -3
- package/dist/{index-CNvov0eg.js.map → index-Cwgh7i7X.js.map} +1 -1
- package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-BKklH89r.js} +2 -2
- package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-BKklH89r.js.map} +1 -1
- package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-RIk2GRHD.cjs} +2 -2
- package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-RIk2GRHD.cjs.map} +1 -1
- package/dist/{index-BmCqpO1B.js → index-zZjQEHlm.js} +2 -2
- package/dist/{index-BmCqpO1B.js.map → index-zZjQEHlm.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/{proxy-CkpFesk1.js → proxy-BYIC9BuT.js} +2 -2
- package/dist/{proxy-CkpFesk1.js.map → proxy-BYIC9BuT.js.map} +1 -1
- package/dist/{proxy-BHRoeZgd.cjs → proxy-CKadx4lC.cjs} +2 -2
- package/dist/{proxy-BHRoeZgd.cjs.map → proxy-CKadx4lC.cjs.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{use-in-view-sQJZ_xDO.cjs → use-in-view-CEwlc_dd.cjs} +2 -2
- package/dist/{use-in-view-sQJZ_xDO.cjs.map → use-in-view-CEwlc_dd.cjs.map} +1 -1
- package/dist/{use-in-view-yS6jzJAp.js → use-in-view-DR-UTB96.js} +2 -2
- package/dist/{use-in-view-yS6jzJAp.js.map → use-in-view-DR-UTB96.js.map} +1 -1
- package/package.json +4 -4
- package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
- package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
- package/dist/GraphEl-C6yjl1VM.cjs +0 -2
- package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
- package/dist/GraphEl-CqWzvOyr.js.map +0 -1
- package/dist/Modal-DVVwpKhP.js.map +0 -1
- package/dist/Modal-tXZlLE5s.cjs +0 -46
- package/dist/Modal-tXZlLE5s.cjs.map +0 -1
- package/dist/RegressionLine-mH7UKOPi.js.map +0 -1
- package/dist/RegressionLine-xKdiJ8sw.cjs +0 -2
- package/dist/RegressionLine-xKdiJ8sw.cjs.map +0 -1
- package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
- package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
- package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
- package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
- package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
- package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
- package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
package/dist/ParetoChart.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { j as t, m as _ } from "./index-CHPV5EwG-
|
|
2
|
-
import { useRef as fi, useState as
|
|
1
|
+
import { j as t, m as _ } from "./index-CHPV5EwG-DBWUSD9b.js";
|
|
2
|
+
import { useRef as fi, useState as X, useEffect as ji } from "react";
|
|
3
3
|
import { i as gi } from "./index-Bwrro8-q.js";
|
|
4
|
-
import {
|
|
4
|
+
import { G as Ai } from "./Modal-Cg8daIlV.js";
|
|
5
5
|
import { n as oi } from "./numberFormattingFunction-14YCbkN2.js";
|
|
6
|
-
import { T as Mi } from "./Tooltip-
|
|
7
|
-
import { s as
|
|
6
|
+
import { T as Mi } from "./Tooltip-6LIdPQGC.js";
|
|
7
|
+
import { s as ki } from "./string2HTML-oFCROsus.js";
|
|
8
8
|
import { c as di } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
9
|
-
import { A as pi } from "./Axis-
|
|
10
|
-
import { A as yi } from "./AxisTitle-
|
|
11
|
-
import { X as
|
|
9
|
+
import { A as pi } from "./Axis-4gUOL8B7.js";
|
|
10
|
+
import { A as yi } from "./AxisTitle-v6_xcXZ-.js";
|
|
11
|
+
import { X as Ni } from "./XAxesLabels-SOSmso5J.js";
|
|
12
12
|
import { b as Ci } from "./band-BEjh2CHI.js";
|
|
13
13
|
import { a as bi } from "./linear-DUdu7l2G.js";
|
|
14
14
|
import { l as $i, c as Li } from "./line-CPfhohvF.js";
|
|
15
15
|
import { c as Ii, s as Si, a as Ti, m as Vi } from "./step-BrDul-H4.js";
|
|
16
|
-
import { u as Oi } from "./use-in-view-
|
|
17
|
-
import { m as D } from "./proxy-
|
|
18
|
-
import { A as Pi } from "./index-
|
|
16
|
+
import { u as Oi } from "./use-in-view-DR-UTB96.js";
|
|
17
|
+
import { m as D } from "./proxy-BYIC9BuT.js";
|
|
18
|
+
import { A as Pi } from "./index-Cwgh7i7X.js";
|
|
19
19
|
import { GraphFooter as Di } from "./GraphFooter.js";
|
|
20
20
|
import { GraphHeader as Yi } from "./GraphHeader.js";
|
|
21
21
|
import { ColorLegend as Hi } from "./ColorLegend.js";
|
|
22
22
|
import { Colors as ci } from "./Colors.js";
|
|
23
|
-
import { E as
|
|
24
|
-
function
|
|
23
|
+
import { E as Ei } from "./EmptyState-36lXXyui.js";
|
|
24
|
+
function Wi(mi) {
|
|
25
25
|
const {
|
|
26
26
|
data: S,
|
|
27
|
-
width:
|
|
27
|
+
width: k,
|
|
28
28
|
height: Y,
|
|
29
|
-
barColor:
|
|
30
|
-
lineColor:
|
|
29
|
+
barColor: x,
|
|
30
|
+
lineColor: n,
|
|
31
31
|
axisTitles: a,
|
|
32
32
|
sameAxes: b,
|
|
33
33
|
rightMargin: q,
|
|
@@ -42,75 +42,75 @@ function Ei(mi) {
|
|
|
42
42
|
showLabels: Z,
|
|
43
43
|
onSeriesMouseClick: w,
|
|
44
44
|
resetSelectionOnDoubleClick: ii,
|
|
45
|
-
detailsOnClick:
|
|
45
|
+
detailsOnClick: u,
|
|
46
46
|
noOfTicks: ti,
|
|
47
47
|
lineSuffix: ei,
|
|
48
48
|
barSuffix: B,
|
|
49
49
|
linePrefix: F,
|
|
50
50
|
barPrefix: ai,
|
|
51
|
-
curveType:
|
|
52
|
-
styles:
|
|
53
|
-
classNames:
|
|
54
|
-
animate:
|
|
55
|
-
precision:
|
|
51
|
+
curveType: E,
|
|
52
|
+
styles: o,
|
|
53
|
+
classNames: c,
|
|
54
|
+
animate: r,
|
|
55
|
+
precision: W,
|
|
56
56
|
customLayers: T,
|
|
57
|
-
naLabel:
|
|
57
|
+
naLabel: N,
|
|
58
58
|
showAxisLabels: si
|
|
59
|
-
} = mi,
|
|
60
|
-
once:
|
|
61
|
-
amount:
|
|
62
|
-
}), ui =
|
|
59
|
+
} = mi, li = fi(null), C = Oi(li, {
|
|
60
|
+
once: r.once,
|
|
61
|
+
amount: r.amount
|
|
62
|
+
}), ui = E === "linear" ? Li : E === "step" ? Ii : E === "stepAfter" ? Si : E === "stepBefore" ? Ti : Vi, [ri, $] = X(void 0), [L, V] = X(void 0), [ni, I] = X(void 0), [j, h] = X(void 0), d = {
|
|
63
63
|
top: J,
|
|
64
64
|
bottom: xi,
|
|
65
65
|
left: U + 50,
|
|
66
66
|
right: q + 65
|
|
67
|
-
},
|
|
67
|
+
}, p = k - d.left - d.right, f = Y - d.top - d.bottom, s = S.map((i, M) => ({ ...i, id: `${M}` })), m = Ci().domain(s.map((i) => `${i.id}`)).range([0, p]).paddingInner(hi), G = Math.min(...s.map((i) => i.bar).filter((i) => i != null)) !== 1 / 0 ? Math.min(...s.map((i) => i.bar).filter((i) => i != null)) > 0 ? 0 : Math.min(...s.map((i) => i.bar).filter((i) => i != null)) : 0, A = Math.min(...s.map((i) => i.line).filter((i) => i != null)) !== 1 / 0 ? Math.min(...s.map((i) => i.line).filter((i) => i != null)) > 0 ? 0 : Math.min(...s.map((i) => i.line).filter((i) => i != null)) : 0, O = Math.max(...s.map((i) => i.bar).filter((i) => i != null)) !== 1 / 0 ? Math.max(...s.map((i) => i.bar).filter((i) => i != null)) : 0, P = Math.max(...s.map((i) => i.line).filter((i) => i != null)) !== 1 / 0 ? Math.max(...s.map((i) => i.line).filter((i) => i != null)) : 0, R = G < A ? G : A, y = O > P ? O : P, l = bi().domain([
|
|
68
68
|
b ? R : G,
|
|
69
69
|
b ? y > 0 ? y : 0 : O > 0 ? O : 0
|
|
70
70
|
]).range([f, 0]).nice(), e = bi().domain([
|
|
71
71
|
b ? R : A,
|
|
72
72
|
b ? y > 0 ? y : 0 : P > 0 ? P : 0
|
|
73
|
-
]).range([f, 0]).nice(), z = $i().defined((i) => !di(i.line)).x((i) =>
|
|
73
|
+
]).range([f, 0]).nice(), z = $i().defined((i) => !di(i.line)).x((i) => m(`${i.id}`) + m.bandwidth() / 2).y((i) => e(i.line)).curve(ui), vi = l.ticks(ti), wi = e.ticks(ti);
|
|
74
74
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
75
75
|
/* @__PURE__ */ t.jsx(
|
|
76
76
|
D.svg,
|
|
77
77
|
{
|
|
78
|
-
width: `${
|
|
78
|
+
width: `${k}px`,
|
|
79
79
|
height: `${Y}px`,
|
|
80
|
-
viewBox: `0 0 ${
|
|
80
|
+
viewBox: `0 0 ${k} ${Y}`,
|
|
81
81
|
direction: "ltr",
|
|
82
|
-
ref:
|
|
83
|
-
children: /* @__PURE__ */ t.jsxs("g", { transform: `translate(${
|
|
82
|
+
ref: li,
|
|
83
|
+
children: /* @__PURE__ */ t.jsxs("g", { transform: `translate(${d.left},${d.top})`, children: [
|
|
84
84
|
/* @__PURE__ */ t.jsxs("g", { children: [
|
|
85
85
|
vi.map((i, M) => /* @__PURE__ */ t.jsxs("g", { children: [
|
|
86
86
|
/* @__PURE__ */ t.jsx(
|
|
87
87
|
"line",
|
|
88
88
|
{
|
|
89
|
-
y1:
|
|
90
|
-
y2:
|
|
89
|
+
y1: l(i),
|
|
90
|
+
y2: l(i),
|
|
91
91
|
x1: -15,
|
|
92
92
|
x2: -20,
|
|
93
93
|
style: {
|
|
94
|
-
stroke:
|
|
94
|
+
stroke: x,
|
|
95
95
|
strokeWidth: 1,
|
|
96
|
-
...
|
|
96
|
+
...o?.yAxis?.gridLines || {}
|
|
97
97
|
},
|
|
98
|
-
className:
|
|
98
|
+
className: c?.yAxis?.gridLines
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
101
|
/* @__PURE__ */ t.jsx(
|
|
102
102
|
"text",
|
|
103
103
|
{
|
|
104
104
|
x: -25,
|
|
105
|
-
y:
|
|
105
|
+
y: l(i),
|
|
106
106
|
dy: "0.33em",
|
|
107
|
-
className: _("text-xs",
|
|
107
|
+
className: _("text-xs", c?.yAxis?.labels),
|
|
108
108
|
style: {
|
|
109
109
|
textAnchor: "end",
|
|
110
|
-
fill:
|
|
111
|
-
...
|
|
110
|
+
fill: x,
|
|
111
|
+
...o?.yAxis?.labels || {}
|
|
112
112
|
},
|
|
113
|
-
children: oi(i,
|
|
113
|
+
children: oi(i, N, W, ai, B)
|
|
114
114
|
}
|
|
115
115
|
)
|
|
116
116
|
] }, M)),
|
|
@@ -121,17 +121,17 @@ function Ei(mi) {
|
|
|
121
121
|
y2: f,
|
|
122
122
|
x1: -15,
|
|
123
123
|
x2: -15,
|
|
124
|
-
classNames: { axis:
|
|
125
|
-
styles: { axis: { stroke:
|
|
124
|
+
classNames: { axis: c?.xAxis?.axis },
|
|
125
|
+
styles: { axis: { stroke: x, ...o?.xAxis?.axis || {} } }
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
128
|
si ? /* @__PURE__ */ t.jsx(
|
|
129
129
|
yi,
|
|
130
130
|
{
|
|
131
|
-
x: 10 -
|
|
131
|
+
x: 10 - d.left,
|
|
132
132
|
y: f / 2,
|
|
133
|
-
style: { fill:
|
|
134
|
-
className:
|
|
133
|
+
style: { fill: x, ...o?.yAxis?.title || {} },
|
|
134
|
+
className: c?.yAxis?.title,
|
|
135
135
|
text: a[0].length > 100 ? `${a[0].substring(0, 100)}...` : a[0],
|
|
136
136
|
rotate90: !0
|
|
137
137
|
}
|
|
@@ -144,30 +144,30 @@ function Ei(mi) {
|
|
|
144
144
|
{
|
|
145
145
|
y1: e(i),
|
|
146
146
|
y2: e(i),
|
|
147
|
-
x1:
|
|
148
|
-
x2:
|
|
147
|
+
x1: p + 15,
|
|
148
|
+
x2: p + 20,
|
|
149
149
|
style: {
|
|
150
|
-
stroke:
|
|
150
|
+
stroke: n,
|
|
151
151
|
strokeWidth: 1,
|
|
152
|
-
...
|
|
152
|
+
...o?.yAxis?.gridLines || {}
|
|
153
153
|
},
|
|
154
|
-
className:
|
|
154
|
+
className: c?.yAxis?.gridLines
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
157
|
/* @__PURE__ */ t.jsx(
|
|
158
158
|
"text",
|
|
159
159
|
{
|
|
160
|
-
x:
|
|
160
|
+
x: p + 25,
|
|
161
161
|
y: e(i),
|
|
162
162
|
dy: "0.33em",
|
|
163
163
|
dx: -2,
|
|
164
164
|
style: {
|
|
165
165
|
textAnchor: "start",
|
|
166
|
-
fill:
|
|
167
|
-
...
|
|
166
|
+
fill: n,
|
|
167
|
+
...o?.yAxis?.labels || {}
|
|
168
168
|
},
|
|
169
|
-
className: _("text-xs",
|
|
170
|
-
children: oi(i,
|
|
169
|
+
className: _("text-xs", c?.yAxis?.labels),
|
|
170
|
+
children: oi(i, N, W, F, ei)
|
|
171
171
|
}
|
|
172
172
|
)
|
|
173
173
|
] }, M)),
|
|
@@ -176,19 +176,19 @@ function Ei(mi) {
|
|
|
176
176
|
{
|
|
177
177
|
y1: 0,
|
|
178
178
|
y2: f,
|
|
179
|
-
x1:
|
|
180
|
-
x2:
|
|
181
|
-
classNames: { axis:
|
|
182
|
-
styles: { axis: { stroke:
|
|
179
|
+
x1: p + 15,
|
|
180
|
+
x2: p + 15,
|
|
181
|
+
classNames: { axis: c?.xAxis?.axis },
|
|
182
|
+
styles: { axis: { stroke: n, ...o?.xAxis?.axis || {} } }
|
|
183
183
|
}
|
|
184
184
|
),
|
|
185
185
|
si ? /* @__PURE__ */ t.jsx(
|
|
186
186
|
yi,
|
|
187
187
|
{
|
|
188
|
-
x:
|
|
188
|
+
x: p + d.right - 15,
|
|
189
189
|
y: f / 2,
|
|
190
|
-
style: { fill:
|
|
191
|
-
className:
|
|
190
|
+
style: { fill: n, ...o?.yAxis?.title || {} },
|
|
191
|
+
className: c?.yAxis?.title,
|
|
192
192
|
text: a[1].length > 100 ? `${a[1].substring(0, 100)}...` : a[1],
|
|
193
193
|
rotate90: !0
|
|
194
194
|
}
|
|
@@ -197,12 +197,12 @@ function Ei(mi) {
|
|
|
197
197
|
/* @__PURE__ */ t.jsx(
|
|
198
198
|
pi,
|
|
199
199
|
{
|
|
200
|
-
y1: b ?
|
|
201
|
-
y2: b ?
|
|
200
|
+
y1: b ? l(0) : f,
|
|
201
|
+
y2: b ? l(0) : f,
|
|
202
202
|
x1: -15,
|
|
203
|
-
x2:
|
|
204
|
-
classNames: { axis:
|
|
205
|
-
styles: { axis:
|
|
203
|
+
x2: p + 15,
|
|
204
|
+
classNames: { axis: c?.xAxis?.axis },
|
|
205
|
+
styles: { axis: o?.xAxis?.axis }
|
|
206
206
|
}
|
|
207
207
|
),
|
|
208
208
|
T.filter((i) => i.position === "before").map((i) => i.layer),
|
|
@@ -213,16 +213,16 @@ function Ei(mi) {
|
|
|
213
213
|
className: "undp-viz-g-with-hover",
|
|
214
214
|
opacity: 0.85,
|
|
215
215
|
onMouseEnter: (g) => {
|
|
216
|
-
$(i),
|
|
216
|
+
$(i), h(g.clientY), I(g.clientX), H?.(i);
|
|
217
217
|
},
|
|
218
218
|
onClick: () => {
|
|
219
|
-
(w ||
|
|
219
|
+
(w || u) && (gi(L, i) && ii ? (V(void 0), w?.(void 0)) : (V(i), w?.(i)));
|
|
220
220
|
},
|
|
221
221
|
onMouseMove: (g) => {
|
|
222
|
-
$(i),
|
|
222
|
+
$(i), h(g.clientY), I(g.clientX);
|
|
223
223
|
},
|
|
224
224
|
onMouseLeave: () => {
|
|
225
|
-
$(void 0), I(void 0),
|
|
225
|
+
$(void 0), I(void 0), h(void 0), H?.(void 0);
|
|
226
226
|
},
|
|
227
227
|
children: [
|
|
228
228
|
/* @__PURE__ */ t.jsx(
|
|
@@ -230,74 +230,76 @@ function Ei(mi) {
|
|
|
230
230
|
{
|
|
231
231
|
variants: {
|
|
232
232
|
initial: {
|
|
233
|
-
attrY:
|
|
233
|
+
attrY: l(0),
|
|
234
234
|
height: 0,
|
|
235
|
-
opacity: 1
|
|
235
|
+
opacity: 1,
|
|
236
|
+
fill: x
|
|
236
237
|
},
|
|
237
238
|
whileInView: {
|
|
238
|
-
attrY: i.bar ? i.bar > 0 ?
|
|
239
|
-
height: i.bar ? Math.abs(
|
|
239
|
+
attrY: i.bar ? i.bar > 0 ? l(i.bar) : l(0) : 0,
|
|
240
|
+
height: i.bar ? Math.abs(l(i.bar) - l(0)) : 0,
|
|
240
241
|
opacity: 1,
|
|
241
|
-
|
|
242
|
+
fill: x,
|
|
243
|
+
transition: { duration: r.duration }
|
|
242
244
|
}
|
|
243
245
|
},
|
|
244
246
|
initial: "initial",
|
|
245
247
|
animate: C ? "whileInView" : "initial",
|
|
246
248
|
exit: {
|
|
247
|
-
attrY:
|
|
249
|
+
attrY: l(0),
|
|
248
250
|
height: 0,
|
|
249
251
|
opacity: 0,
|
|
250
|
-
transition: { duration:
|
|
252
|
+
transition: { duration: r.duration }
|
|
251
253
|
},
|
|
252
|
-
x:
|
|
253
|
-
width:
|
|
254
|
-
style: { fill: p }
|
|
254
|
+
x: m(`${M}`),
|
|
255
|
+
width: m.bandwidth()
|
|
255
256
|
}
|
|
256
257
|
),
|
|
257
258
|
K && !di(i.bar) ? /* @__PURE__ */ t.jsx(
|
|
258
259
|
D.text,
|
|
259
260
|
{
|
|
260
|
-
x:
|
|
261
|
+
x: m(`${i.id}`) + m.bandwidth() / 2,
|
|
261
262
|
exit: {
|
|
262
|
-
attrY:
|
|
263
|
+
attrY: l(0),
|
|
263
264
|
opacity: 0,
|
|
264
|
-
transition: { duration:
|
|
265
|
+
transition: { duration: r.duration }
|
|
265
266
|
},
|
|
266
267
|
variants: {
|
|
267
268
|
initial: {
|
|
268
|
-
attrY:
|
|
269
|
-
opacity: 0
|
|
269
|
+
attrY: l(0),
|
|
270
|
+
opacity: 0,
|
|
271
|
+
fill: x
|
|
270
272
|
},
|
|
271
273
|
whileInView: {
|
|
272
|
-
attrY:
|
|
274
|
+
attrY: l(i.bar || 0),
|
|
273
275
|
opacity: 1,
|
|
274
|
-
|
|
276
|
+
fill: x,
|
|
277
|
+
transition: { duration: r.duration }
|
|
275
278
|
}
|
|
276
279
|
},
|
|
277
280
|
initial: "initial",
|
|
278
281
|
animate: C ? "whileInView" : "initial",
|
|
279
282
|
style: {
|
|
280
|
-
fill: p,
|
|
281
283
|
textAnchor: "middle",
|
|
282
|
-
...
|
|
284
|
+
...o?.graphObjectValues || {}
|
|
283
285
|
},
|
|
284
|
-
className: _("graph-value text-sm",
|
|
286
|
+
className: _("graph-value text-sm", c?.graphObjectValues),
|
|
285
287
|
dy: i.bar ? i.bar >= 0 ? "-5px" : "1em" : "-5px",
|
|
286
|
-
children: oi(i.bar,
|
|
288
|
+
children: oi(i.bar, N, W, ai, B)
|
|
287
289
|
}
|
|
288
290
|
) : null,
|
|
289
291
|
Z ? /* @__PURE__ */ t.jsx(
|
|
290
|
-
|
|
292
|
+
Ni,
|
|
291
293
|
{
|
|
292
294
|
value: `${i.label}`.length < Q ? `${i.label}` : `${`${i.label}`.substring(0, Q)}...`,
|
|
293
295
|
y: f + 5,
|
|
294
|
-
x:
|
|
295
|
-
width:
|
|
296
|
-
height:
|
|
297
|
-
style:
|
|
298
|
-
className:
|
|
296
|
+
x: m(`${i.id}`),
|
|
297
|
+
width: m.bandwidth(),
|
|
298
|
+
height: d.bottom,
|
|
299
|
+
style: o?.xAxis?.labels,
|
|
300
|
+
className: c?.xAxis?.labels,
|
|
299
301
|
alignment: "top",
|
|
300
|
-
animate:
|
|
302
|
+
animate: r,
|
|
301
303
|
isInView: C
|
|
302
304
|
}
|
|
303
305
|
) : null
|
|
@@ -310,23 +312,24 @@ function Ei(mi) {
|
|
|
310
312
|
{
|
|
311
313
|
exit: {
|
|
312
314
|
opacity: 0,
|
|
313
|
-
transition: { duration:
|
|
315
|
+
transition: { duration: r.duration }
|
|
314
316
|
},
|
|
315
317
|
variants: {
|
|
316
318
|
initial: {
|
|
317
319
|
d: z(s.map((i) => ({ ...i, line: 0 }))),
|
|
318
|
-
opacity: 0
|
|
320
|
+
opacity: 0,
|
|
321
|
+
stroke: n
|
|
319
322
|
},
|
|
320
323
|
whileInView: {
|
|
321
324
|
d: z(s),
|
|
322
325
|
opacity: 1,
|
|
323
|
-
|
|
326
|
+
stroke: n,
|
|
327
|
+
transition: { duration: r.duration }
|
|
324
328
|
}
|
|
325
329
|
},
|
|
326
330
|
initial: "initial",
|
|
327
331
|
animate: C ? "whileInView" : "initial",
|
|
328
332
|
style: {
|
|
329
|
-
stroke: x,
|
|
330
333
|
fill: "none",
|
|
331
334
|
strokeWidth: 2
|
|
332
335
|
}
|
|
@@ -336,16 +339,16 @@ function Ei(mi) {
|
|
|
336
339
|
"g",
|
|
337
340
|
{
|
|
338
341
|
onMouseEnter: (g) => {
|
|
339
|
-
$(i),
|
|
342
|
+
$(i), h(g.clientY), I(g.clientX), H?.(i);
|
|
340
343
|
},
|
|
341
344
|
onClick: () => {
|
|
342
|
-
(w ||
|
|
345
|
+
(w || u) && (gi(L, i) && ii ? (V(void 0), w?.(void 0)) : (V(i), w?.(i)));
|
|
343
346
|
},
|
|
344
347
|
onMouseMove: (g) => {
|
|
345
|
-
$(i),
|
|
348
|
+
$(i), h(g.clientY), I(g.clientX);
|
|
346
349
|
},
|
|
347
350
|
onMouseLeave: () => {
|
|
348
|
-
$(void 0), I(void 0),
|
|
351
|
+
$(void 0), I(void 0), h(void 0), H?.(void 0);
|
|
349
352
|
},
|
|
350
353
|
children: [
|
|
351
354
|
/* @__PURE__ */ t.jsx(
|
|
@@ -354,59 +357,61 @@ function Ei(mi) {
|
|
|
354
357
|
exit: {
|
|
355
358
|
cy: e(0),
|
|
356
359
|
opacity: 0,
|
|
357
|
-
transition: { duration:
|
|
360
|
+
transition: { duration: r.duration }
|
|
358
361
|
},
|
|
359
362
|
variants: {
|
|
360
363
|
initial: {
|
|
361
364
|
cy: e(0),
|
|
362
|
-
opacity: 0
|
|
365
|
+
opacity: 0,
|
|
366
|
+
fill: n
|
|
363
367
|
},
|
|
364
368
|
whileInView: {
|
|
365
369
|
cy: e(i.line),
|
|
366
370
|
opacity: 1,
|
|
367
|
-
|
|
371
|
+
fill: n,
|
|
372
|
+
transition: { duration: r.duration }
|
|
368
373
|
}
|
|
369
374
|
},
|
|
370
375
|
initial: "initial",
|
|
371
376
|
animate: C ? "whileInView" : "initial",
|
|
372
|
-
cx:
|
|
373
|
-
r:
|
|
374
|
-
style: { fill: x }
|
|
377
|
+
cx: m(i.id) + m.bandwidth() / 2,
|
|
378
|
+
r: p / s.length < 5 ? 0 : p / s.length < 20 ? 2 : 4
|
|
375
379
|
}
|
|
376
380
|
),
|
|
377
381
|
K ? /* @__PURE__ */ t.jsx(
|
|
378
382
|
D.text,
|
|
379
383
|
{
|
|
380
|
-
x:
|
|
384
|
+
x: m(`${i.id}`) + m.bandwidth() / 2,
|
|
381
385
|
exit: {
|
|
382
386
|
y: e(0),
|
|
383
387
|
opacity: 0,
|
|
384
|
-
transition: { duration:
|
|
388
|
+
transition: { duration: r.duration }
|
|
385
389
|
},
|
|
386
390
|
style: {
|
|
387
|
-
fill: x,
|
|
388
391
|
textAnchor: "middle",
|
|
389
|
-
...
|
|
392
|
+
...o?.graphObjectValues || {}
|
|
390
393
|
},
|
|
391
394
|
variants: {
|
|
392
395
|
initial: {
|
|
393
396
|
y: e(0),
|
|
394
|
-
opacity: 0
|
|
397
|
+
opacity: 0,
|
|
398
|
+
fill: n
|
|
395
399
|
},
|
|
396
400
|
whileInView: {
|
|
397
401
|
y: e(i.line),
|
|
398
402
|
opacity: 1,
|
|
399
|
-
|
|
403
|
+
fill: n,
|
|
404
|
+
transition: { duration: r.duration }
|
|
400
405
|
}
|
|
401
406
|
},
|
|
402
407
|
initial: "initial",
|
|
403
408
|
animate: C ? "whileInView" : "initial",
|
|
404
|
-
className: _("graph-value text-sm",
|
|
409
|
+
className: _("graph-value text-sm", c?.graphObjectValues),
|
|
405
410
|
dy: "-5px",
|
|
406
411
|
children: oi(
|
|
407
412
|
i.line,
|
|
408
|
-
|
|
409
|
-
|
|
413
|
+
N,
|
|
414
|
+
W,
|
|
410
415
|
F,
|
|
411
416
|
ei
|
|
412
417
|
)
|
|
@@ -420,18 +425,18 @@ function Ei(mi) {
|
|
|
420
425
|
] })
|
|
421
426
|
}
|
|
422
427
|
),
|
|
423
|
-
|
|
428
|
+
ri && v && ni && j ? /* @__PURE__ */ t.jsx(
|
|
424
429
|
Mi,
|
|
425
430
|
{
|
|
426
|
-
data:
|
|
431
|
+
data: ri,
|
|
427
432
|
body: v,
|
|
428
433
|
xPos: ni,
|
|
429
434
|
yPos: j,
|
|
430
|
-
backgroundStyle:
|
|
431
|
-
className:
|
|
435
|
+
backgroundStyle: o?.tooltip,
|
|
436
|
+
className: c?.tooltip
|
|
432
437
|
}
|
|
433
438
|
) : null,
|
|
434
|
-
|
|
439
|
+
u && L !== void 0 ? /* @__PURE__ */ t.jsx(
|
|
435
440
|
Ai,
|
|
436
441
|
{
|
|
437
442
|
open: L !== void 0,
|
|
@@ -442,8 +447,8 @@ function Ei(mi) {
|
|
|
442
447
|
"div",
|
|
443
448
|
{
|
|
444
449
|
className: "graph-modal-content m-0",
|
|
445
|
-
dangerouslySetInnerHTML: typeof
|
|
446
|
-
children: typeof
|
|
450
|
+
dangerouslySetInnerHTML: typeof u == "string" ? { __html: ki(u, L) } : void 0,
|
|
451
|
+
children: typeof u == "function" ? u(L) : null
|
|
447
452
|
}
|
|
448
453
|
)
|
|
449
454
|
}
|
|
@@ -453,10 +458,10 @@ function Ei(mi) {
|
|
|
453
458
|
function mt(mi) {
|
|
454
459
|
const {
|
|
455
460
|
data: S,
|
|
456
|
-
graphTitle:
|
|
461
|
+
graphTitle: k,
|
|
457
462
|
sources: Y,
|
|
458
|
-
graphDescription:
|
|
459
|
-
height:
|
|
463
|
+
graphDescription: x,
|
|
464
|
+
height: n,
|
|
460
465
|
width: a,
|
|
461
466
|
footNote: b,
|
|
462
467
|
padding: q,
|
|
@@ -471,70 +476,70 @@ function mt(mi) {
|
|
|
471
476
|
lineAxisTitle: Z = "Line chart",
|
|
472
477
|
barAxisTitle: w = "Bar graph",
|
|
473
478
|
tooltip: ii,
|
|
474
|
-
relativeHeight:
|
|
479
|
+
relativeHeight: u,
|
|
475
480
|
onSeriesMouseOver: ti,
|
|
476
481
|
graphID: ei,
|
|
477
482
|
graphDownload: B = !1,
|
|
478
483
|
dataDownload: F = !1,
|
|
479
484
|
barPadding: ai = 0.25,
|
|
480
|
-
truncateBy:
|
|
481
|
-
showLabels:
|
|
482
|
-
onSeriesMouseClick:
|
|
483
|
-
language:
|
|
484
|
-
colorLegendTitle:
|
|
485
|
+
truncateBy: E = 999,
|
|
486
|
+
showLabels: o = !0,
|
|
487
|
+
onSeriesMouseClick: c,
|
|
488
|
+
language: r = "en",
|
|
489
|
+
colorLegendTitle: W,
|
|
485
490
|
minHeight: T = 0,
|
|
486
|
-
theme:
|
|
491
|
+
theme: N = "light",
|
|
487
492
|
ariaLabel: si,
|
|
488
|
-
resetSelectionOnDoubleClick:
|
|
493
|
+
resetSelectionOnDoubleClick: li = !0,
|
|
489
494
|
detailsOnClick: C,
|
|
490
495
|
showValues: ui = !0,
|
|
491
|
-
noOfTicks:
|
|
496
|
+
noOfTicks: ri = 5,
|
|
492
497
|
lineSuffix: $ = "",
|
|
493
498
|
barSuffix: L = "",
|
|
494
499
|
linePrefix: V = "",
|
|
495
500
|
barPrefix: ni = "",
|
|
496
501
|
curveType: I = "curve",
|
|
497
502
|
styles: j,
|
|
498
|
-
classNames:
|
|
499
|
-
animate:
|
|
500
|
-
precision:
|
|
503
|
+
classNames: h,
|
|
504
|
+
animate: d = !1,
|
|
505
|
+
precision: p = 2,
|
|
501
506
|
customLayers: f = [],
|
|
502
507
|
naLabel: s = "NA",
|
|
503
|
-
showColorScale:
|
|
508
|
+
showColorScale: m = !0,
|
|
504
509
|
showAxisLabels: G = !0
|
|
505
|
-
} = mi, [A, O] =
|
|
510
|
+
} = mi, [A, O] = X(0), [P, R] = X(0), y = fi(null), l = fi(null);
|
|
506
511
|
return ji(() => {
|
|
507
512
|
const e = new ResizeObserver((z) => {
|
|
508
|
-
O(a || z[0].target.clientWidth || 620), R(
|
|
513
|
+
O(a || z[0].target.clientWidth || 620), R(n || z[0].target.clientHeight || 480);
|
|
509
514
|
});
|
|
510
515
|
return y.current && (R(y.current.clientHeight || 480), O(y.current.clientWidth || 620), a || e.observe(y.current)), () => e.disconnect();
|
|
511
|
-
}, [a,
|
|
516
|
+
}, [a, n]), /* @__PURE__ */ t.jsx(
|
|
512
517
|
"div",
|
|
513
518
|
{
|
|
514
|
-
className: `${
|
|
515
|
-
dir:
|
|
519
|
+
className: `${N || "light"} flex ${a ? "w-fit grow-0" : "w-full grow"}`,
|
|
520
|
+
dir: r === "he" || r === "ar" ? "rtl" : void 0,
|
|
516
521
|
children: /* @__PURE__ */ t.jsx(
|
|
517
522
|
"div",
|
|
518
523
|
{
|
|
519
524
|
className: _(
|
|
520
|
-
`${v ? v === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${
|
|
525
|
+
`${v ? v === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${r || "en"}`,
|
|
521
526
|
a ? "w-fit" : "w-full",
|
|
522
|
-
|
|
527
|
+
h?.graphContainer
|
|
523
528
|
),
|
|
524
529
|
style: {
|
|
525
530
|
...j?.graphContainer || {},
|
|
526
531
|
...v && v !== !0 ? { backgroundColor: v } : {}
|
|
527
532
|
},
|
|
528
533
|
id: ei,
|
|
529
|
-
ref:
|
|
530
|
-
"aria-label": si || `${
|
|
534
|
+
ref: l,
|
|
535
|
+
"aria-label": si || `${k ? `The graph shows ${k}. ` : ""}This is a pareto chart that shows a variable as bars and another as line chart.${x ? ` ${x}` : ""}`,
|
|
531
536
|
children: /* @__PURE__ */ t.jsx(
|
|
532
537
|
"div",
|
|
533
538
|
{
|
|
534
539
|
className: "flex grow",
|
|
535
540
|
style: { padding: v ? q || "1rem" : q || 0 },
|
|
536
541
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
537
|
-
|
|
542
|
+
k || x || B || F ? /* @__PURE__ */ t.jsx(
|
|
538
543
|
Yi,
|
|
539
544
|
{
|
|
540
545
|
styles: {
|
|
@@ -542,26 +547,26 @@ function mt(mi) {
|
|
|
542
547
|
description: j?.description
|
|
543
548
|
},
|
|
544
549
|
classNames: {
|
|
545
|
-
title:
|
|
546
|
-
description:
|
|
550
|
+
title: h?.title,
|
|
551
|
+
description: h?.description
|
|
547
552
|
},
|
|
548
|
-
graphTitle:
|
|
549
|
-
graphDescription:
|
|
553
|
+
graphTitle: k,
|
|
554
|
+
graphDescription: x,
|
|
550
555
|
width: a,
|
|
551
|
-
graphDownload: B ?
|
|
556
|
+
graphDownload: B ? l.current : void 0,
|
|
552
557
|
dataDownload: F ? S.map((e) => e.data).filter((e) => e !== void 0).length > 0 ? S.map((e) => e.data).filter((e) => e !== void 0) : S.filter((e) => e !== void 0) : null
|
|
553
558
|
}
|
|
554
559
|
) : null,
|
|
555
|
-
/* @__PURE__ */ t.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: S.length === 0 ? /* @__PURE__ */ t.jsx(
|
|
556
|
-
|
|
560
|
+
/* @__PURE__ */ t.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: S.length === 0 ? /* @__PURE__ */ t.jsx(Ei, {}) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
561
|
+
m ? /* @__PURE__ */ t.jsx(
|
|
557
562
|
Hi,
|
|
558
563
|
{
|
|
559
564
|
colorDomain: [w, Z],
|
|
560
565
|
colors: [
|
|
561
|
-
J || ci[
|
|
562
|
-
U || ci[
|
|
566
|
+
J || ci[N].categoricalColors.colors[0],
|
|
567
|
+
U || ci[N].categoricalColors.colors[1]
|
|
563
568
|
],
|
|
564
|
-
colorLegendTitle:
|
|
569
|
+
colorLegendTitle: W,
|
|
565
570
|
showNAColor: !1
|
|
566
571
|
}
|
|
567
572
|
) : null,
|
|
@@ -571,8 +576,8 @@ function mt(mi) {
|
|
|
571
576
|
className: "flex flex-col grow justify-center leading-0",
|
|
572
577
|
ref: y,
|
|
573
578
|
"aria-label": "Graph area",
|
|
574
|
-
children: (a || A) && (
|
|
575
|
-
|
|
579
|
+
children: (a || A) && (n || P) ? /* @__PURE__ */ t.jsx(
|
|
580
|
+
Wi,
|
|
576
581
|
{
|
|
577
582
|
data: S,
|
|
578
583
|
sameAxes: xi,
|
|
@@ -581,9 +586,9 @@ function mt(mi) {
|
|
|
581
586
|
width: a || A,
|
|
582
587
|
height: Math.max(
|
|
583
588
|
T,
|
|
584
|
-
|
|
589
|
+
n || (u ? T ? (a || A) * u > T ? (a || A) * u : T : (a || A) * u : P)
|
|
585
590
|
),
|
|
586
|
-
truncateBy:
|
|
591
|
+
truncateBy: E,
|
|
587
592
|
leftMargin: K,
|
|
588
593
|
rightMargin: H,
|
|
589
594
|
topMargin: hi,
|
|
@@ -592,11 +597,11 @@ function mt(mi) {
|
|
|
592
597
|
tooltip: ii,
|
|
593
598
|
onSeriesMouseOver: ti,
|
|
594
599
|
barPadding: ai,
|
|
595
|
-
showLabels:
|
|
596
|
-
onSeriesMouseClick:
|
|
597
|
-
resetSelectionOnDoubleClick:
|
|
600
|
+
showLabels: o,
|
|
601
|
+
onSeriesMouseClick: c,
|
|
602
|
+
resetSelectionOnDoubleClick: li,
|
|
598
603
|
detailsOnClick: C,
|
|
599
|
-
noOfTicks:
|
|
604
|
+
noOfTicks: ri,
|
|
600
605
|
lineSuffix: $,
|
|
601
606
|
barSuffix: L,
|
|
602
607
|
linePrefix: V,
|
|
@@ -604,9 +609,9 @@ function mt(mi) {
|
|
|
604
609
|
curveType: I,
|
|
605
610
|
showValues: ui,
|
|
606
611
|
styles: j,
|
|
607
|
-
classNames:
|
|
608
|
-
animate:
|
|
609
|
-
precision:
|
|
612
|
+
classNames: h,
|
|
613
|
+
animate: d === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : d || { duration: 0, once: !0, amount: 0 },
|
|
614
|
+
precision: p,
|
|
610
615
|
customLayers: f,
|
|
611
616
|
naLabel: s,
|
|
612
617
|
showAxisLabels: G
|
|
@@ -620,8 +625,8 @@ function mt(mi) {
|
|
|
620
625
|
{
|
|
621
626
|
styles: { footnote: j?.footnote, source: j?.source },
|
|
622
627
|
classNames: {
|
|
623
|
-
footnote:
|
|
624
|
-
source:
|
|
628
|
+
footnote: h?.footnote,
|
|
629
|
+
source: h?.source
|
|
625
630
|
},
|
|
626
631
|
sources: Y,
|
|
627
632
|
footNote: b,
|