@undp/data-viz 1.3.0 → 1.3.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/AreaChart.cjs +2 -0
- package/dist/AreaChart.cjs.map +1 -0
- package/dist/AreaChart.js +530 -1
- package/dist/AreaChart.js.map +1 -1
- package/dist/Axis-DE7dSn1_.cjs +2 -0
- package/dist/{Axis-BlyBRMNw.cjs.map → Axis-DE7dSn1_.cjs.map} +1 -1
- package/dist/{Axis-CvK-w3E2.js → Axis-Ddg-seDi.js} +10 -11
- package/dist/{Axis-CvK-w3E2.js.map → Axis-Ddg-seDi.js.map} +1 -1
- package/dist/AxisTitle-BmHLMRJZ.js +20 -0
- package/dist/{AxisTitle-BeMxcw5I.js.map → AxisTitle-BmHLMRJZ.js.map} +1 -1
- package/dist/AxisTitle-CK9YeovX.cjs +2 -0
- package/dist/{AxisTitle-BY8MI9jC.cjs.map → AxisTitle-CK9YeovX.cjs.map} +1 -1
- package/dist/BarGraph.cjs +2 -0
- package/dist/BarGraph.cjs.map +1 -0
- package/dist/BarGraph.js +4043 -1
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +2 -0
- package/dist/BasicStatCard.cjs.map +1 -0
- package/dist/BasicStatCard.js +190 -1
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +2 -0
- package/dist/BeeSwarmChart.cjs.map +1 -0
- package/dist/BeeSwarmChart.d.ts +0 -8
- package/dist/BeeSwarmChart.js +1042 -1
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +2 -0
- package/dist/BiVariateChoroplethMap.cjs.map +1 -0
- package/dist/BiVariateChoroplethMap.js +720 -1
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +2 -0
- package/dist/BulletChart.cjs.map +1 -0
- package/dist/BulletChart.js +1431 -1
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +2 -0
- package/dist/ButterflyChart.cjs.map +1 -0
- package/dist/ButterflyChart.js +692 -1
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +2 -0
- package/dist/ChoroplethMap.cjs.map +1 -0
- package/dist/ChoroplethMap.js +745 -1
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +2 -0
- package/dist/CirclePackingGraph.cjs.map +1 -0
- package/dist/CirclePackingGraph.d.ts +0 -8
- package/dist/CirclePackingGraph.js +14 -1
- package/dist/CirclePackingGraph.js.map +1 -1
- package/dist/ColorLegend.cjs +2 -0
- package/dist/ColorLegend.cjs.map +1 -0
- package/dist/ColorLegend.js +47 -1
- package/dist/ColorLegend.js.map +1 -1
- package/dist/ColorLegendWithMouseOver.cjs +2 -0
- package/dist/ColorLegendWithMouseOver.cjs.map +1 -0
- package/dist/ColorLegendWithMouseOver.js +70 -1
- package/dist/ColorLegendWithMouseOver.js.map +1 -1
- package/dist/Colors.cjs +2 -0
- package/dist/Colors.cjs.map +1 -0
- package/dist/Colors.js +561 -1
- package/dist/Colors.js.map +1 -1
- package/dist/CopyTextButton.cjs +17 -0
- package/dist/CopyTextButton.cjs.map +1 -0
- package/dist/CopyTextButton.js +698 -16
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +23 -0
- package/dist/CsvDownloadButton.cjs.map +1 -0
- package/dist/CsvDownloadButton.js +852 -7
- package/dist/CsvDownloadButton.js.map +1 -1
- package/dist/DataCards.cjs +2 -0
- package/dist/DataCards.cjs.map +1 -0
- package/dist/DataCards.js +14 -1
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +2 -0
- package/dist/DataTable.cjs.map +1 -0
- package/dist/DataTable.js +331 -1
- package/dist/DataTable.js.map +1 -1
- package/dist/DifferenceLineChart.cjs +2 -0
- package/dist/DifferenceLineChart.cjs.map +1 -0
- package/dist/DifferenceLineChart.js +805 -1
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +2 -0
- package/dist/DonutChart.cjs.map +1 -0
- package/dist/DonutChart.js +478 -1
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +2 -0
- package/dist/DotDensityMap.cjs.map +1 -0
- package/dist/DotDensityMap.js +600 -1
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DropdownSelect-0I2QxaVy.cjs +29 -0
- package/dist/DropdownSelect-0I2QxaVy.cjs.map +1 -0
- package/dist/DropdownSelect-CDC9lEqU.js +4193 -0
- package/dist/DropdownSelect-CDC9lEqU.js.map +1 -0
- package/dist/DualAxisLineChart.cjs +2 -0
- package/dist/DualAxisLineChart.cjs.map +1 -0
- package/dist/DualAxisLineChart.js +699 -1
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +2 -0
- package/dist/DumbbellChart.cjs.map +1 -0
- package/dist/DumbbellChart.js +1510 -1
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-b2Ln487i.js → EmptyState-DdTp-Mdn.js} +8 -8
- package/dist/{EmptyState-b2Ln487i.js.map → EmptyState-DdTp-Mdn.js.map} +1 -1
- package/dist/EmptyState-d8_8SxeW.cjs +2 -0
- package/dist/{EmptyState-BQguKAp5.cjs.map → EmptyState-d8_8SxeW.cjs.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +2 -0
- package/dist/ExcelDownloadButton.cjs.map +1 -0
- package/dist/ExcelDownloadButton.js +29 -1
- package/dist/ExcelDownloadButton.js.map +1 -1
- package/dist/FootNote.cjs +2 -0
- package/dist/FootNote.cjs.map +1 -0
- package/dist/FootNote.js +20 -1
- package/dist/FootNote.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +2 -0
- package/dist/GeoHubCompareMaps.cjs.map +1 -0
- package/dist/GeoHubCompareMaps.js +370 -1
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +2 -0
- package/dist/GeoHubMap.cjs.map +1 -0
- package/dist/GeoHubMap.js +429 -1
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +2 -0
- package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -0
- package/dist/GeoHubMapWithLayerSelection.js +307 -1
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/GraphDescription.cjs +2 -0
- package/dist/GraphDescription.cjs.map +1 -0
- package/dist/GraphDescription.js +20 -1
- package/dist/GraphDescription.js.map +1 -1
- package/dist/GraphFooter.cjs +2 -0
- package/dist/GraphFooter.cjs.map +1 -0
- package/dist/GraphFooter.js +21 -1
- package/dist/GraphFooter.js.map +1 -1
- package/dist/GraphHeader.cjs +2 -0
- package/dist/GraphHeader.cjs.map +1 -0
- package/dist/GraphHeader.js +63 -1
- package/dist/GraphHeader.js.map +1 -1
- package/dist/GraphTitle.cjs +2 -0
- package/dist/GraphTitle.cjs.map +1 -0
- package/dist/GraphTitle.js +28 -1
- package/dist/GraphTitle.js.map +1 -1
- package/dist/GriddedGraphs.cjs +2 -0
- package/dist/GriddedGraphs.cjs.map +1 -0
- package/dist/GriddedGraphs.js +482 -1
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.cjs +2 -0
- package/dist/GriddedGraphsFromConfig.cjs.map +1 -0
- package/dist/GriddedGraphsFromConfig.js +42 -1
- package/dist/GriddedGraphsFromConfig.js.map +1 -1
- package/dist/HeatMap.cjs +2 -0
- package/dist/HeatMap.cjs.map +1 -0
- package/dist/HeatMap.js +451 -1
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +2 -0
- package/dist/Histogram.cjs.map +1 -0
- package/dist/Histogram.js +287 -1
- package/dist/Histogram.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +2 -0
- package/dist/ImageDownloadButton.cjs.map +1 -0
- package/dist/ImageDownloadButton.js +28 -1
- package/dist/ImageDownloadButton.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +2 -0
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -0
- package/dist/LineChartWithConfidenceInterval.js +818 -1
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +2 -0
- package/dist/LinearColorLegend.cjs.map +1 -0
- package/dist/LinearColorLegend.js +33 -1
- package/dist/LinearColorLegend.js.map +1 -1
- package/dist/Modal-CUU6ZK3U.js +1019 -0
- package/dist/Modal-CUU6ZK3U.js.map +1 -0
- package/dist/Modal-C_dl0EtQ.cjs +46 -0
- package/dist/Modal-C_dl0EtQ.cjs.map +1 -0
- package/dist/MultiGraphDashboard.cjs +2 -0
- package/dist/MultiGraphDashboard.cjs.map +1 -0
- package/dist/MultiGraphDashboard.js +303 -1
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.cjs +2 -0
- package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -0
- package/dist/MultiGraphDashboardFromConfig.js +37 -1
- package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +243 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +2 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +30 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +2 -0
- package/dist/MultiLineAltChart.cjs.map +1 -0
- package/dist/MultiLineAltChart.js +689 -1
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +2 -0
- package/dist/MultiLineChart.cjs.map +1 -0
- package/dist/MultiLineChart.js +722 -1
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +2 -0
- package/dist/ParetoChart.cjs.map +1 -0
- package/dist/ParetoChart.js +636 -1
- package/dist/ParetoChart.js.map +1 -1
- package/dist/RadarChart.cjs +2 -0
- package/dist/RadarChart.cjs.map +1 -0
- package/dist/RadarChart.js +677 -1
- package/dist/RadarChart.js.map +1 -1
- package/dist/{ReferenceLine-BgDdQbDI.js → ReferenceLine-C1GpoG9d.js} +33 -34
- package/dist/ReferenceLine-C1GpoG9d.js.map +1 -0
- package/dist/ReferenceLine-CuFMk0cI.cjs +2 -0
- package/dist/ReferenceLine-CuFMk0cI.cjs.map +1 -0
- package/dist/RegressionLine-7_rKTHN_.cjs +2 -0
- package/dist/{RegressionLine-BfpCuD7B.cjs.map → RegressionLine-7_rKTHN_.cjs.map} +1 -1
- package/dist/{RegressionLine-cSljpHaE.js → RegressionLine-BFwDCTUU.js} +17 -18
- package/dist/{RegressionLine-cSljpHaE.js.map → RegressionLine-BFwDCTUU.js.map} +1 -1
- package/dist/SVGDownloadButton.cjs +2 -0
- package/dist/SVGDownloadButton.cjs.map +1 -0
- package/dist/SVGDownloadButton.js +28 -1
- package/dist/SVGDownloadButton.js.map +1 -1
- package/dist/SankeyChart.cjs +2 -0
- package/dist/SankeyChart.cjs.map +1 -0
- package/dist/SankeyChart.js +989 -1
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +2 -0
- package/dist/ScatterPlot.cjs.map +1 -0
- package/dist/ScatterPlot.js +828 -1
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.cjs +2 -0
- package/dist/ScrollStory.cjs.map +1 -0
- package/dist/ScrollStory.js +105 -1
- package/dist/ScrollStory.js.map +1 -1
- package/dist/SimpleLineChart.cjs +2 -0
- package/dist/SimpleLineChart.cjs.map +1 -0
- package/dist/SimpleLineChart.js +619 -1
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +2 -0
- package/dist/SingleGraphDashboard.cjs.map +1 -0
- package/dist/SingleGraphDashboard.js +522 -1
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.cjs +2 -0
- package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -0
- package/dist/SingleGraphDashboardFromConfig.js +34 -1
- package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
- package/dist/SlopeChart.cjs +2 -0
- package/dist/SlopeChart.cjs.map +1 -0
- package/dist/SlopeChart.js +582 -1
- package/dist/SlopeChart.js.map +1 -1
- package/dist/Source.cjs +2 -0
- package/dist/Source.cjs.map +1 -0
- package/dist/Source.js +40 -1
- package/dist/Source.js.map +1 -1
- package/dist/SparkLine.cjs +2 -0
- package/dist/SparkLine.cjs.map +1 -0
- package/dist/SparkLine.js +320 -1
- package/dist/SparkLine.js.map +1 -1
- package/dist/Spinner-C85UF28E.js +30 -0
- package/dist/Spinner-C85UF28E.js.map +1 -0
- package/dist/Spinner-DA6Z5E4n.cjs +2 -0
- package/dist/Spinner-DA6Z5E4n.cjs.map +1 -0
- package/dist/StatCardFromData.cjs +2 -0
- package/dist/StatCardFromData.cjs.map +1 -0
- package/dist/StatCardFromData.js +249 -1
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/StripChart.cjs +2 -0
- package/dist/StripChart.cjs.map +1 -0
- package/dist/StripChart.js +988 -1
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +2 -0
- package/dist/ThreeDGlobe.cjs.map +1 -0
- package/dist/ThreeDGlobe.js +451 -1
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +2 -0
- package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -0
- package/dist/ThresholdColorLegendWithMouseOver.js +130 -1
- package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
- package/dist/{Tooltip-CzZ1wFyF.js → Tooltip-DyM5snqx.js} +15 -16
- package/dist/{Tooltip-CzZ1wFyF.js.map → Tooltip-DyM5snqx.js.map} +1 -1
- package/dist/Tooltip-n8z5bfav.cjs +2 -0
- package/dist/{Tooltip-BM18N_3l.cjs.map → Tooltip-n8z5bfav.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +2 -0
- package/dist/TreeMapGraph.cjs.map +1 -0
- package/dist/TreeMapGraph.js +760 -1
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.cjs +2 -0
- package/dist/Types.cjs.map +1 -0
- package/dist/Types.js +1 -1
- package/dist/Typography-Ctgfl1J5.js +140 -0
- package/dist/Typography-Ctgfl1J5.js.map +1 -0
- package/dist/Typography-k-kOjICQ.cjs +2 -0
- package/dist/Typography-k-kOjICQ.cjs.map +1 -0
- package/dist/UnitChart.cjs +2 -0
- package/dist/UnitChart.cjs.map +1 -0
- package/dist/UnitChart.js +216 -1
- package/dist/UnitChart.js.map +1 -1
- package/dist/XAxesLabels-CJMQbfVy.cjs +2 -0
- package/dist/{XAxesLabels-C9REbQQs.cjs.map → XAxesLabels-CJMQbfVy.cjs.map} +1 -1
- package/dist/{XAxesLabels-DVw7Lvuz.js → XAxesLabels-DQFo_z2R.js} +21 -22
- package/dist/{XAxesLabels-DVw7Lvuz.js.map → XAxesLabels-DQFo_z2R.js.map} +1 -1
- package/dist/{XTicksAndGridLines-CUefTINd.js → XTicksAndGridLines-Bn9u5gOM.js} +19 -20
- package/dist/{XTicksAndGridLines-CUefTINd.js.map → XTicksAndGridLines-Bn9u5gOM.js.map} +1 -1
- package/dist/XTicksAndGridLines-CCzXIV8d.cjs +2 -0
- package/dist/{XTicksAndGridLines-DuK35ROS.cjs.map → XTicksAndGridLines-CCzXIV8d.cjs.map} +1 -1
- package/dist/YAxesLabels-BXLTX7AI.cjs +2 -0
- package/dist/{YAxesLabels-DhBdLk3Z.cjs.map → YAxesLabels-BXLTX7AI.cjs.map} +1 -1
- package/dist/{YAxesLabels-CYVY053X.js → YAxesLabels-H5-002X5.js} +11 -12
- package/dist/{YAxesLabels-CYVY053X.js.map → YAxesLabels-H5-002X5.js.map} +1 -1
- package/dist/{YTicksAndGridLines-BJRXuBdC.js → YTicksAndGridLines-B6ah7CRf.js} +14 -15
- package/dist/{YTicksAndGridLines-BJRXuBdC.js.map → YTicksAndGridLines-B6ah7CRf.js.map} +1 -1
- package/dist/YTicksAndGridLines-DBDuz6vb.cjs +2 -0
- package/dist/{YTicksAndGridLines-CtLvzExe.cjs.map → YTicksAndGridLines-DBDuz6vb.cjs.map} +1 -1
- package/dist/{checkIfMultiple-CaefP4X2.js → checkIfMultiple-BB7PlCNh.js} +1013 -518
- package/dist/checkIfMultiple-BB7PlCNh.js.map +1 -0
- package/dist/checkIfMultiple-D5ysrI7G.cjs +12 -0
- package/dist/checkIfMultiple-D5ysrI7G.cjs.map +1 -0
- package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs +2 -0
- package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs.map +1 -0
- package/dist/checkIfNullOrUndefined-DmfiKkNw.js +7 -0
- package/dist/checkIfNullOrUndefined-DmfiKkNw.js.map +1 -0
- package/dist/customArea-BYNyxAkm.cjs +2 -0
- package/dist/{customArea-B47Ew5cT.cjs.map → customArea-BYNyxAkm.cjs.map} +1 -1
- package/dist/{customArea-I3MsoqIl.js → customArea-CaxScFmW.js} +29 -30
- package/dist/{customArea-I3MsoqIl.js.map → customArea-CaxScFmW.js.map} +1 -1
- package/dist/excelDownload-BOA-lskf.js +19 -0
- package/dist/excelDownload-BOA-lskf.js.map +1 -0
- package/dist/excelDownload-BQpsCa62.cjs +2 -0
- package/dist/excelDownload-BQpsCa62.cjs.map +1 -0
- package/dist/fetchAndParseData-Bcmr659B.js +1196 -0
- package/dist/fetchAndParseData-Bcmr659B.js.map +1 -0
- package/dist/fetchAndParseData-DmgQtB9n.cjs +16 -0
- package/dist/fetchAndParseData-DmgQtB9n.cjs.map +1 -0
- package/dist/fetchAndParseData.cjs +2 -0
- package/dist/fetchAndParseData.cjs.map +1 -0
- package/dist/fetchAndParseData.js +9 -15
- package/dist/fetchAndParseData.js.map +1 -1
- package/dist/getGraphList-DuColTJM.js +265 -0
- package/dist/getGraphList-DuColTJM.js.map +1 -0
- package/dist/getGraphList-gf02xgT2.cjs +2 -0
- package/dist/getGraphList-gf02xgT2.cjs.map +1 -0
- package/dist/getJenks-TWQvbuOz.cjs +2 -0
- package/dist/getJenks-TWQvbuOz.cjs.map +1 -0
- package/dist/getJenks-VhM3GIoC.js +23 -0
- package/dist/getJenks-VhM3GIoC.js.map +1 -0
- package/dist/getSchema.cjs +2 -0
- package/dist/getSchema.cjs.map +1 -0
- package/dist/getSchema.js +910 -1
- package/dist/getSchema.js.map +1 -1
- package/dist/getSliderMarks-C0jptXeP.js +1054 -0
- package/dist/getSliderMarks-C0jptXeP.js.map +1 -0
- package/dist/getSliderMarks-CtsEXiLV.cjs +6 -0
- package/dist/getSliderMarks-CtsEXiLV.cjs.map +1 -0
- package/dist/getTextColorBasedOnBgColor-B6Nk2WBf.js +28 -0
- package/dist/getTextColorBasedOnBgColor-B6Nk2WBf.js.map +1 -0
- package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs +2 -0
- package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -0
- package/dist/getUniqValue-BtUENB2H.js +20 -0
- package/dist/getUniqValue-BtUENB2H.js.map +1 -0
- package/dist/getUniqValue-CHqgSss5.cjs +2 -0
- package/dist/getUniqValue-CHqgSss5.cjs.map +1 -0
- package/dist/imageDownload-CgDcm1Sj.cjs +3 -0
- package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -0
- package/dist/imageDownload-Dcci2LEy.js +495 -0
- package/dist/imageDownload-Dcci2LEy.js.map +1 -0
- package/dist/index-BVnYktl4.js +435 -0
- package/dist/index-BVnYktl4.js.map +1 -0
- package/dist/index-BW_-wD2k.cjs +2 -0
- package/dist/index-BW_-wD2k.cjs.map +1 -0
- package/dist/{index-DXmF_0ez.js → index-BmCqpO1B.js} +74 -40
- package/dist/index-BmCqpO1B.js.map +1 -0
- package/dist/{index-Db-Yg_Ud.js → index-BxAUvrua.js} +19 -19
- package/dist/{index-Db-Yg_Ud.js.map → index-BxAUvrua.js.map} +1 -1
- package/dist/index-CHPV5EwG-BPSP-7Jg.js +3341 -0
- package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +1 -0
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs +44 -0
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +1 -0
- package/dist/index-CylX-pWB.cjs +2 -0
- package/dist/{index-BYroABPm.cjs.map → index-CylX-pWB.cjs.map} +1 -1
- package/dist/index-D9h2WYDS.cjs +22 -0
- package/dist/index-D9h2WYDS.cjs.map +1 -0
- package/dist/index-DG3YrCr5-D3FrrXj8.js +459 -0
- package/dist/index-DG3YrCr5-D3FrrXj8.js.map +1 -0
- package/dist/index-DG3YrCr5-v7rayV3N.cjs +2 -0
- package/dist/index-DG3YrCr5-v7rayV3N.cjs.map +1 -0
- package/dist/index-DVOJ7vxH.cjs +10 -0
- package/dist/{index-a2C2Bqn2.cjs.map → index-DVOJ7vxH.cjs.map} +1 -1
- package/dist/index-D_n8aamX.cjs +2 -0
- package/dist/index-D_n8aamX.cjs.map +1 -0
- package/dist/index-OCoyy1wG.js +635 -0
- package/dist/index-OCoyy1wG.js.map +1 -0
- package/dist/{index-DzdwZ2OA.js → index-n_RI8T0n.js} +3 -3
- package/dist/{index-DzdwZ2OA.js.map → index-n_RI8T0n.js.map} +1 -1
- package/dist/index-tvAyXPPW-DBlMKnNB.js +47 -0
- package/dist/index-tvAyXPPW-DBlMKnNB.js.map +1 -0
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs +2 -0
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.js +180 -1
- package/dist/index.js.map +1 -1
- package/dist/numberFormattingFunction-02t-wJta.cjs +2 -0
- package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -0
- package/dist/numberFormattingFunction-14YCbkN2.js +13 -0
- package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -0
- package/dist/{use-in-view-CZPXmTZM.js → proxy-DJxJg1kD.js} +699 -732
- package/dist/proxy-DJxJg1kD.js.map +1 -0
- package/dist/{use-in-view-Dl1CsAIo.cjs → proxy-PQd2AItT.cjs} +2 -2
- package/dist/proxy-PQd2AItT.cjs.map +1 -0
- package/dist/removeOutliers-DR48e-18.js +57 -0
- package/dist/removeOutliers-DR48e-18.js.map +1 -0
- package/dist/removeOutliers-WELHHqiI.cjs +2 -0
- package/dist/removeOutliers-WELHHqiI.cjs.map +1 -0
- package/dist/{string2HTML-BX0oNw83.js → string2HTML-CWHGfz_d.js} +2 -2
- package/dist/{string2HTML-BX0oNw83.js.map → string2HTML-CWHGfz_d.js.map} +1 -1
- package/dist/{string2HTML-X4ZYX5jI.cjs → string2HTML-D2Avudmb.cjs} +2 -2
- package/dist/{string2HTML-X4ZYX5jI.cjs.map → string2HTML-D2Avudmb.cjs.map} +1 -1
- package/dist/svgDownload-C2-E3yf2.js +9 -0
- package/dist/svgDownload-C2-E3yf2.js.map +1 -0
- package/dist/svgDownload-D9zEGjTF.cjs +2 -0
- package/dist/svgDownload-D9zEGjTF.cjs.map +1 -0
- package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs +4 -0
- package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs.map +1 -0
- package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js +145 -0
- package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js.map +1 -0
- package/dist/transformData.cjs +2 -0
- package/dist/transformData.cjs.map +1 -0
- package/dist/transformData.d.ts +170 -0
- package/dist/transformData.js +10 -0
- package/dist/transformData.js.map +1 -0
- package/dist/transformDataForAggregation-BUGJnson.cjs +2 -0
- package/dist/transformDataForAggregation-BUGJnson.cjs.map +1 -0
- package/dist/transformDataForAggregation-DAQJWGNL.js +759 -0
- package/dist/transformDataForAggregation-DAQJWGNL.js.map +1 -0
- package/dist/transformDataForGraphFromFile-CrntpaMU.cjs +2 -0
- package/dist/transformDataForGraphFromFile-CrntpaMU.cjs.map +1 -0
- package/dist/transformDataForGraphFromFile-DdNiOWeC.js +24 -0
- package/dist/transformDataForGraphFromFile-DdNiOWeC.js.map +1 -0
- package/dist/use-in-view-BAHrBy6b.js +40 -0
- package/dist/use-in-view-BAHrBy6b.js.map +1 -0
- package/dist/use-in-view-BCmzDU2O.cjs +2 -0
- package/dist/use-in-view-BCmzDU2O.cjs.map +1 -0
- package/dist/utils.cjs +2 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.ts +217 -0
- package/dist/utils.js +27 -0
- package/dist/utils.js.map +1 -0
- package/dist/validateSchema.cjs +2 -0
- package/dist/validateSchema.cjs.map +1 -0
- package/dist/validateSchema.js +104 -1
- package/dist/validateSchema.js.map +1 -1
- package/dist/x-CnsEH4Ox-CGGXQl4M.cjs +27 -0
- package/dist/x-CnsEH4Ox-CGGXQl4M.cjs.map +1 -0
- package/dist/x-CnsEH4Ox-DDvAJndW.js +101 -0
- package/dist/x-CnsEH4Ox-DDvAJndW.js.map +1 -0
- package/package.json +15 -90
- package/dist/Axis-BlyBRMNw.cjs +0 -2
- package/dist/AxisTitle-BY8MI9jC.cjs +0 -2
- package/dist/AxisTitle-BeMxcw5I.js +0 -21
- package/dist/DropdownSelect-CuzV7gdj.cjs +0 -29
- package/dist/DropdownSelect-CuzV7gdj.cjs.map +0 -1
- package/dist/DropdownSelect-DmZsXrhY.js +0 -2698
- package/dist/DropdownSelect-DmZsXrhY.js.map +0 -1
- package/dist/EmptyState-BQguKAp5.cjs +0 -2
- package/dist/Modal-C9txyGOk.js +0 -723
- package/dist/Modal-C9txyGOk.js.map +0 -1
- package/dist/Modal-cQF2UQIa.cjs +0 -46
- package/dist/Modal-cQF2UQIa.cjs.map +0 -1
- package/dist/ReferenceLine-BgDdQbDI.js.map +0 -1
- package/dist/ReferenceLine-Bsb5jeE4.cjs +0 -2
- package/dist/ReferenceLine-Bsb5jeE4.cjs.map +0 -1
- package/dist/RegressionLine-BfpCuD7B.cjs +0 -2
- package/dist/Spinner-DN3s4S0H.js +0 -17
- package/dist/Spinner-DN3s4S0H.js.map +0 -1
- package/dist/Spinner-UmN-KPe9.cjs +0 -2
- package/dist/Spinner-UmN-KPe9.cjs.map +0 -1
- package/dist/Tooltip-BM18N_3l.cjs +0 -2
- package/dist/Typography-CDR-DAHH.cjs +0 -2
- package/dist/Typography-CDR-DAHH.cjs.map +0 -1
- package/dist/Typography-XJoSE-By.js +0 -58
- package/dist/Typography-XJoSE-By.js.map +0 -1
- package/dist/XAxesLabels-C9REbQQs.cjs +0 -2
- package/dist/XTicksAndGridLines-DuK35ROS.cjs +0 -2
- package/dist/YAxesLabels-DhBdLk3Z.cjs +0 -2
- package/dist/YTicksAndGridLines-CtLvzExe.cjs +0 -2
- package/dist/checkIfMultiple-CaefP4X2.js.map +0 -1
- package/dist/checkIfMultiple-D3h8to1T.cjs +0 -12
- package/dist/checkIfMultiple-D3h8to1T.cjs.map +0 -1
- package/dist/checkIfNullOrUndefined.d.ts +0 -15
- package/dist/checkIfNullOrUndefined.js +0 -2
- package/dist/checkIfNullOrUndefined.js.map +0 -1
- package/dist/customArea-B47Ew5cT.cjs +0 -2
- package/dist/excelDownload.d.ts +0 -31
- package/dist/excelDownload.js +0 -2
- package/dist/excelDownload.js.map +0 -1
- package/dist/generateCodes.d.ts +0 -25
- package/dist/generateCodes.js +0 -2
- package/dist/generateCodes.js.map +0 -1
- package/dist/getJenks.d.ts +0 -17
- package/dist/getJenks.js +0 -2
- package/dist/getJenks.js.map +0 -1
- package/dist/getPercentileValue.d.ts +0 -13
- package/dist/getPercentileValue.js +0 -2
- package/dist/getPercentileValue.js.map +0 -1
- package/dist/getQueryParamsFromLink.d.ts +0 -18
- package/dist/getQueryParamsFromLink.js +0 -2
- package/dist/getQueryParamsFromLink.js.map +0 -1
- package/dist/getSliderMarks-CWajGCGq.js +0 -719
- package/dist/getSliderMarks-CWajGCGq.js.map +0 -1
- package/dist/getSliderMarks-DDJ1CdhL.cjs +0 -6
- package/dist/getSliderMarks-DDJ1CdhL.cjs.map +0 -1
- package/dist/getTextColorBasedOnBgColor.d.ts +0 -13
- package/dist/getTextColorBasedOnBgColor.js +0 -2
- package/dist/getTextColorBasedOnBgColor.js.map +0 -1
- package/dist/getUniqValue.d.ts +0 -18
- package/dist/getUniqValue.js +0 -2
- package/dist/getUniqValue.js.map +0 -1
- package/dist/graphList.d.ts +0 -9
- package/dist/graphList.js +0 -2
- package/dist/graphList.js.map +0 -1
- package/dist/imageDownload.d.ts +0 -16
- package/dist/imageDownload.js +0 -3
- package/dist/imageDownload.js.map +0 -1
- package/dist/index-01r5X3Gr-9jE0ObrK.cjs +0 -2
- package/dist/index-01r5X3Gr-9jE0ObrK.cjs.map +0 -1
- package/dist/index-01r5X3Gr-kH7FxQ7P.js +0 -451
- package/dist/index-01r5X3Gr-kH7FxQ7P.js.map +0 -1
- package/dist/index-BGMGC-HN.cjs +0 -22
- package/dist/index-BGMGC-HN.cjs.map +0 -1
- package/dist/index-BHm2KTjD-2e-Fu8L-.js +0 -702
- package/dist/index-BHm2KTjD-2e-Fu8L-.js.map +0 -1
- package/dist/index-BHm2KTjD-D8FylaKc.cjs +0 -44
- package/dist/index-BHm2KTjD-D8FylaKc.cjs.map +0 -1
- package/dist/index-BIPNFFja.js +0 -506
- package/dist/index-BIPNFFja.js.map +0 -1
- package/dist/index-BYroABPm.cjs +0 -2
- package/dist/index-CEc_9zWy.cjs +0 -2
- package/dist/index-CEc_9zWy.cjs.map +0 -1
- package/dist/index-CbVeVrla.cjs +0 -2
- package/dist/index-CbVeVrla.cjs.map +0 -1
- package/dist/index-CqzhBPuO-CfQywbdq.js +0 -41
- package/dist/index-CqzhBPuO-CfQywbdq.js.map +0 -1
- package/dist/index-CqzhBPuO-raKZqS7l.cjs +0 -2
- package/dist/index-CqzhBPuO-raKZqS7l.cjs.map +0 -1
- package/dist/index-DSnvdkHZ.js +0 -495
- package/dist/index-DSnvdkHZ.js.map +0 -1
- package/dist/index-DXmF_0ez.js.map +0 -1
- package/dist/index-a2C2Bqn2.cjs +0 -10
- package/dist/numberFormattingFunction.d.ts +0 -22
- package/dist/numberFormattingFunction.js +0 -2
- package/dist/numberFormattingFunction.js.map +0 -1
- package/dist/removeOutliers.d.ts +0 -16
- package/dist/removeOutliers.js +0 -2
- package/dist/removeOutliers.js.map +0 -1
- package/dist/svgDownload.d.ts +0 -16
- package/dist/svgDownload.js +0 -2
- package/dist/svgDownload.js.map +0 -1
- package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js +0 -139
- package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js.map +0 -1
- package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs +0 -4
- package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs.map +0 -1
- package/dist/transformColumnsToArray.d.ts +0 -38
- package/dist/transformColumnsToArray.js +0 -2
- package/dist/transformColumnsToArray.js.map +0 -1
- package/dist/transformDataForAggregation.d.ts +0 -38
- package/dist/transformDataForAggregation.js +0 -2
- package/dist/transformDataForAggregation.js.map +0 -1
- package/dist/transformDataForGraph.d.ts +0 -47
- package/dist/transformDataForGraph.js +0 -2
- package/dist/transformDataForGraph.js.map +0 -1
- package/dist/transformDataForGraphFromFile.d.ts +0 -66
- package/dist/transformDataForGraphFromFile.js +0 -2
- package/dist/transformDataForGraphFromFile.js.map +0 -1
- package/dist/use-in-view-CZPXmTZM.js.map +0 -1
- package/dist/use-in-view-Dl1CsAIo.cjs.map +0 -1
- package/dist/x-Dft9NVe_-DcB7wtv5.js +0 -61
- package/dist/x-Dft9NVe_-DcB7wtv5.js.map +0 -1
- package/dist/x-Dft9NVe_-LeyJu02C.cjs +0 -27
- package/dist/x-Dft9NVe_-LeyJu02C.cjs.map +0 -1
package/dist/BeeSwarmChart.js
CHANGED
|
@@ -1,2 +1,1043 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-BHm2KTjD-D8FylaKc.cjs"),xe=require("./index-CZbIGs8q.cjs"),u=require("react"),de=require("./Typography-CDR-DAHH.cjs"),he=require("./index-BXns0-ng.cjs"),me=require("./index-BczVvEBZ.cjs"),pe=require("./Modal-cQF2UQIa.cjs"),fe=require("./Spinner-UmN-KPe9.cjs"),ge=require("./numberFormattingFunction.js"),je=require("./Tooltip-BM18N_3l.cjs"),N=require("./checkIfNullOrUndefined.js"),ye=require("./getTextColorBasedOnBgColor.js"),ie=require("./Colors.js"),ve=require("./string2HTML-X4ZYX5jI.cjs"),we=require("./Axis-BlyBRMNw.cjs"),Se=require("./XTicksAndGridLines-DuK35ROS.cjs"),be=require("./ReferenceLine-Bsb5jeE4.cjs"),ae=require("./use-in-view-Dl1CsAIo.cjs"),Ee=require("./pow-B5-jkdHU.cjs"),Re=require("./linear-BVckp9RD.cjs"),le=require("./y-QcCbqrzx.cjs"),Me=require("./index-a2C2Bqn2.cjs"),Ce=require("./GraphFooter.js"),Oe=require("./GraphHeader.js"),ke=require("./ColorLegendWithMouseOver.js"),Ne=require("./EmptyState-BQguKAp5.cjs"),De=require("./YTicksAndGridLines-CtLvzExe.cjs");function $e(ce){const{data:s,circleColors:a,showTicks:M,leftMargin:oe,width:b,height:E,colorDomain:c,rightMargin:se,topMargin:U,bottomMargin:P,showLabels:F,tooltip:j,onSeriesMouseOver:L,refValues:h,selectedColor:G,startFromZero:W,radius:g,maxRadiusValue:X,maxValue:l,minValue:K,highlightedDataPoints:J,onSeriesMouseClick:Y,rtl:re,resetSelectionOnDoubleClick:Q,detailsOnClick:I,suffix:S,prefix:D,styles:y,classNames:q,noOfTicks:C,animate:f,dimmedOpacity:A,precision:O,customLayers:B}=ce,v=u.useRef(null),k=ae.useInView(v,{once:f.once,amount:f.amount}),[z,$]=u.useState(void 0),[T,_]=u.useState(void 0),[ee,m]=u.useState(null),[p,Z]=u.useState(void 0),[H,x]=u.useState(void 0),d={top:U,bottom:P,left:oe,right:se},ne=b-d.left-d.right,w=E-d.top-d.bottom,te=s.filter(e=>!N.checkIfNullOrUndefined(e.radius)).length===0?s:me.orderBy(s.filter(e=>!N.checkIfNullOrUndefined(e.radius)),"radius","desc"),R=N.checkIfNullOrUndefined(l)?Math.max(...s.filter(e=>!N.checkIfNullOrUndefined(e.position)).map(e=>e.position))<0&&!W?0:Math.max(...s.filter(e=>!N.checkIfNullOrUndefined(e.position)).map(e=>e.position)):l,r=N.checkIfNullOrUndefined(K)?Math.min(...s.filter(e=>!N.checkIfNullOrUndefined(e.position)).map(e=>e.position))>=0&&!W?0:Math.min(...s.filter(e=>!N.checkIfNullOrUndefined(e.position)).map(e=>e.position)):K,n=s.filter(e=>e.radius===void 0||e.radius===null).length!==s.length?Ee.sqrt().domain([0,N.checkIfNullOrUndefined(X)?Math.max(...s.map(e=>e.radius).filter(e=>e!=null)):X]).range([.25,g]).nice():void 0,V=Re.linear().domain([r,R]).range([0,ne]).nice(),t=V.ticks(C);return u.useEffect(()=>{m(null);const e=te.filter(o=>o.position);le.forceSimulation(e).force("x",le.forceX(o=>V(o.position)).strength(5)).force("y",le.forceY(o=>w/2).strength(1)).force("collide",le.forceCollide(o=>n?n(o.radius||0)+1:g+1)).force("charge",le.forceManyBody().strength(-15)).alphaDecay(.05).tick(1e4).on("tick",()=>{m(e)}).on("end",()=>{m(e)})},[s,g,w,ne,r,R,te,V,n]),i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[ee?i.jsxRuntimeExports.jsx(ae.motion.svg,{width:`${b}px`,height:`${E}px`,viewBox:`0 0 ${b} ${E}`,direction:"ltr",ref:v,children:i.jsxRuntimeExports.jsxs("g",{transform:`translate(${d.left},${d.top})`,children:[M?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(we.Axis,{x1:V(r<0?0:r),x2:V(r<0?0:r),y1:0-d.top,y2:w+d.bottom,label:ge.numberFormattingFunction(r<0?0:r,"NA",O,D,S),labelPos:{x:V(r<0?0:r),y:0-U,dy:"0.75em",dx:3},classNames:{axis:q?.xAxis?.axis,label:q?.yAxis?.labels},styles:{axis:y?.xAxis?.axis,label:y?.yAxis?.labels}}),i.jsxRuntimeExports.jsx(Se.XTicksAndGridLines,{values:t.filter(e=>e!==0),x:t.filter(e=>e!==0).map(e=>V(e)),y1:0-U,y2:w+d.bottom,styles:{gridLines:y?.xAxis?.gridLines,labels:y?.xAxis?.labels},classNames:{gridLines:q?.xAxis?.gridLines,labels:q?.xAxis?.labels},suffix:S,prefix:D,labelType:"secondary",showGridLines:!0,precision:O})]}):null,B.filter(e=>e.position==="before").map(e=>e.layer),i.jsxRuntimeExports.jsxs(Me.AnimatePresence,{children:[ee.map(e=>i.jsxRuntimeExports.jsxs(ae.motion.g,{className:"undp-viz-g-with-hover",transform:`translate(${e.x},${e.y})`,variants:{initial:{opacity:0},whileInView:{opacity:G?e.color&&a[c.indexOf(e.color)]===G?1:A:J.length!==0?J.indexOf(e.label)!==-1?.85:A:.85,transition:{duration:f.duration}}},initial:"initial",animate:k?"whileInView":"initial",exit:{opacity:0,transition:{duration:f.duration}},onMouseEnter:o=>{$(e),x(o.clientY),Z(o.clientX),L?.(e)},onMouseMove:o=>{$(e),x(o.clientY),Z(o.clientX)},onClick:()=>{(Y||I)&&(he.isEqual(T,e)&&Q?(_(void 0),Y?.(void 0)):(_(e),Y?.(e)))},onMouseLeave:()=>{$(void 0),Z(void 0),x(void 0),L?.(void 0)},children:[i.jsxRuntimeExports.jsx(ae.motion.circle,{cx:0,cy:0,variants:{initial:{fill:s.filter(o=>o.color).length===0?a[0]:e.color?a[c.indexOf(e.color)]:ie.Colors.gray,opacity:0,radius:0},whileInView:{fill:s.filter(o=>o.color).length===0?a[0]:e.color?a[c.indexOf(e.color)]:ie.Colors.gray,opacity:1,radius:n?n(e.radius||0):g,transition:{duration:f.duration}}},initial:"initial",animate:k?"whileInView":"initial",exit:{opacity:0,radius:0,transition:{duration:f.duration}}}),(n?n(e.radius||0):g)>10&&F?i.jsxRuntimeExports.jsx(ae.motion.g,{variants:{initial:{opacity:0},whileInView:{opacity:1,transition:{duration:f.duration}}},initial:"initial",animate:k?"whileInView":"initial",exit:{opacity:0,transition:{duration:f.duration}},children:i.jsxRuntimeExports.jsx("foreignObject",{y:0-(n?n(e.radius||0):g),x:0-(n?n(e.radius||0):g),width:2*(n?n(e.radius||0):g),height:2*(n?n(e.radius||0):g),children:i.jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-1.5",children:F?i.jsxRuntimeExports.jsx("p",{className:de.cnExports.cn("text-center leading-none m-0",q?.graphObjectValues),style:{fontSize:`${Math.min(Math.max(Math.round((n?n(e.radius||0):g)/4),10),Math.max(Math.round((n?n(e.radius||0):g)*12/`${e.label}`.length),10),20)}px`,color:ye.getTextColorBasedOnBgColor(s.filter(o=>o.color).length===0?a[0]:e.color?a[c.indexOf(e.color)]:ie.Colors.gray),hyphens:"auto",...y?.graphObjectValues||{}},children:e.label}):null})})}):null]},e.label)),h?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:h.map((e,o)=>i.jsxRuntimeExports.jsx(be.RefLineX,{text:e.text,color:e.color,x:V(e.value),y1:0-d.top,y2:w+d.bottom,textSide:V(e.value)>ne*.75||re?"left":"right",classNames:e.classNames,styles:e.styles,animate:f,isInView:k},o))}):null]}),B.filter(e=>e.position==="after").map(e=>e.layer)]})}):i.jsxRuntimeExports.jsx("div",{style:{width:`${b}px`,height:`${E}px`},children:i.jsxRuntimeExports.jsx("div",{className:"flex m-auto items-center justify-center p-0 leading-none text-base h-40",children:i.jsxRuntimeExports.jsx(fe.SpinnerExports.Spinner,{})})}),z&&j&&p&&H?i.jsxRuntimeExports.jsx(je.Tooltip,{data:z,body:j,xPos:p,yPos:H,backgroundStyle:y?.tooltip,className:q?.tooltip}):null,I&&T!==void 0?i.jsxRuntimeExports.jsx(pe.ModalExports.Modal,{open:T!==void 0,onClose:()=>{_(void 0)},children:i.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof I=="string"?{__html:ve.string2HTML(I,T)}:void 0,children:typeof I=="function"?I(T):null})}):null]})}function Te(ce){const{data:s,graphTitle:a,backgroundColor:M=!1,topMargin:oe=25,bottomMargin:b=10,leftMargin:E=10,rightMargin:c=10,showLabels:se=!0,showTicks:U=!0,colors:P,sources:F,graphDescription:j,height:L,width:h,footNote:G,colorDomain:W,colorLegendTitle:g,padding:X,relativeHeight:l,tooltip:K,onSeriesMouseOver:J,refValues:Y,showColorScale:re,graphID:Q,radius:I=5,maxRadiusValue:S,maxValue:D,minValue:y,highlightedDataPoints:q=[],onSeriesMouseClick:C,graphDownload:f=!1,dataDownload:A=!1,language:O="en",showNAColor:B=!0,minHeight:v=0,theme:k="light",ariaLabel:z,resetSelectionOnDoubleClick:$=!0,detailsOnClick:T,suffix:_="",prefix:ee="",styles:m,classNames:p,noOfTicks:Z,animate:H=!1,dimmedOpacity:x=.3,precision:d=2,customLayers:ne=[]}=ce,[w,te]=u.useState(0),[R,r]=u.useState(0),[n,V]=u.useState(void 0),t=u.useRef(null),e=u.useRef(null);return u.useEffect(()=>{const o=new ResizeObserver(ue=>{te(h||ue[0].target.clientWidth||620),r(L||ue[0].target.clientHeight||480)});return t.current&&(r(t.current.clientHeight||480),te(t.current.clientWidth||620),h||o.observe(t.current)),()=>o.disconnect()},[h,L]),i.jsxRuntimeExports.jsx("div",{className:`${k||"light"} flex ${h?"w-fit grow-0":"w-full grow"}`,dir:O==="he"||O==="ar"?"rtl":void 0,children:i.jsxRuntimeExports.jsx("div",{className:de.cnExports.cn(`${M?M===!0?"bg-primary-gray-200 dark:bg-primary-gray-650 ":"":"bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${O||"en"}`,p?.graphContainer),style:{...m?.graphContainer||{},...M&&M!==!0?{backgroundColor:M}:{}},id:Q,ref:e,"aria-label":z||`${a?`The graph shows ${a}. `:""}This is a bee swarm chart showing the distribution along the x-axes. ${j?` ${j}`:""}`,children:i.jsxRuntimeExports.jsx("div",{className:"flex grow",style:{padding:M?X||"1rem":X||0},children:i.jsxRuntimeExports.jsxs("div",{className:"flex flex-col w-full gap-4 grow justify-between",children:[a||j||f||A?i.jsxRuntimeExports.jsx(Oe.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:p?.title,description:p?.description},graphTitle:a,graphDescription:j,width:h,graphDownload:f?e.current:void 0,dataDownload:A?s.map(o=>o.data).filter(o=>o!==void 0).length>0?s.map(o=>o.data).filter(o=>o!==void 0):s.filter(o=>o!==void 0):null}):null,i.jsxRuntimeExports.jsx("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:s.length===0?i.jsxRuntimeExports.jsx(Ne.EmptyState,{}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[re!==!1&&s.filter(o=>o.color).length!==0?i.jsxRuntimeExports.jsx(ke.ColorLegendWithMouseOver,{width:h,colorLegendTitle:g,colors:P||ie.Colors[k].categoricalColors.colors,colorDomain:W||xe.uniqBy(s.filter(o=>o.color),"color").map(o=>o.color),setSelectedColor:V,showNAColor:B??!0}):null,i.jsxRuntimeExports.jsx("div",{className:"flex flex-col grow justify-center w-full leading-0",ref:t,"aria-label":"Graph area",children:(h||w)&&(L||R)?i.jsxRuntimeExports.jsx($e,{data:s,circleColors:s.filter(o=>o.color).length===0?P?[P]:[ie.Colors.primaryColors["blue-600"]]:P||ie.Colors[k].categoricalColors.colors,colorDomain:s.filter(o=>o.color).length===0?[]:W||xe.uniqBy(s.filter(o=>o.color),"color").map(o=>o.color),width:h||w,selectedColor:n,height:Math.max(v,L||(l?v?(h||w)*l>v?(h||w)*l:v:(h||w)*l:R)),showTicks:U,leftMargin:E,rightMargin:c,topMargin:oe,bottomMargin:b,showLabels:se,tooltip:K,onSeriesMouseOver:J,refValues:Y,startFromZero:!1,radius:I,maxRadiusValue:S,maxValue:D,minValue:y,highlightedDataPoints:q,onSeriesMouseClick:C,rtl:O==="he"||O==="ar",resetSelectionOnDoubleClick:$,detailsOnClick:T,suffix:_,prefix:ee,styles:m,classNames:p,noOfTicks:Z||5,animate:H===!0?{duration:.5,once:!0,amount:.5}:H||{duration:0,once:!0,amount:0},dimmedOpacity:x,precision:d,customLayers:ne}):null})]})}),F||G?i.jsxRuntimeExports.jsx(Ce.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:p?.footnote,source:p?.source},sources:F,footNote:G,width:h}):null]})})})})}function Ve(ce){const{data:s,circleColors:a,showTicks:M,leftMargin:oe,width:b,height:E,colorDomain:c,rightMargin:se,topMargin:U,bottomMargin:P,suffix:F,prefix:j,showLabels:L,tooltip:h,onSeriesMouseOver:G,refValues:W,selectedColor:g,startFromZero:X,radius:l,maxRadiusValue:K,maxValue:J,minValue:Y,highlightedDataPoints:re,onSeriesMouseClick:Q,resetSelectionOnDoubleClick:I,detailsOnClick:S,styles:D,classNames:y,noOfTicks:q,animate:C,dimmedOpacity:f,precision:A,customLayers:O}=ce,B=u.useRef(null),v=ae.useInView(B,{once:C.once,amount:C.amount}),[k,z]=u.useState(void 0),[$,T]=u.useState(void 0),[_,ee]=u.useState(null),[m,p]=u.useState(void 0),[Z,H]=u.useState(void 0),x={top:U,bottom:P,left:oe,right:se},d=b-x.left-x.right,ne=E-x.top-x.bottom,w=s.filter(t=>!N.checkIfNullOrUndefined(t.radius)).length===0?s:me.orderBy(s.filter(t=>!N.checkIfNullOrUndefined(t.radius)),"radius","desc"),te=N.checkIfNullOrUndefined(J)?Math.max(...s.filter(t=>!N.checkIfNullOrUndefined(t.position)).map(t=>t.position))<0&&!X?0:Math.max(...s.filter(t=>!N.checkIfNullOrUndefined(t.position)).map(t=>t.position)):J,R=N.checkIfNullOrUndefined(Y)?Math.min(...s.filter(t=>!N.checkIfNullOrUndefined(t.position)).map(t=>t.position))>=0&&!X?0:Math.min(...s.filter(t=>!N.checkIfNullOrUndefined(t.position)).map(t=>t.position)):Y,r=s.filter(t=>t.radius===void 0||t.radius===null).length!==s.length?Ee.sqrt().domain([0,N.checkIfNullOrUndefined(K)?Math.max(...s.map(t=>t.radius).filter(t=>t!=null)):K]).range([.25,l]).nice():void 0,n=Re.linear().domain([R,te]).range([ne,0]).nice(),V=n.ticks(q);return u.useEffect(()=>{ee(null);const t=w.filter(e=>e.position);le.forceSimulation(t).force("y",le.forceY(e=>n(e.position)).strength(5)).force("x",le.forceX(e=>d/2).strength(1)).force("collide",le.forceCollide(e=>r?r(e.radius||0)+1:l+1)).force("charge",le.forceManyBody().strength(-15)).alphaDecay(.05).tick(1e4).on("tick",()=>{ee(t)}).on("end",()=>{ee(t)})},[s,l,ne,d,R,te,w,n,r]),i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[_?i.jsxRuntimeExports.jsx(ae.motion.svg,{width:`${b}px`,height:`${E}px`,viewBox:`0 0 ${b} ${E}`,direction:"ltr",ref:B,children:i.jsxRuntimeExports.jsxs("g",{transform:`translate(${x.left},${x.top})`,children:[M?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(we.Axis,{y1:n(R<0?0:R),y2:n(R<0?0:R),x1:0-x.left,x2:d+x.right,label:ge.numberFormattingFunction(R<0?0:R,"NA",A,j,F),labelPos:{x:0-x.left,y:n(R<0?0:R),dx:0,dy:te<0?"1em":-5},classNames:{axis:y?.xAxis?.axis,label:y?.yAxis?.labels},styles:{axis:D?.xAxis?.axis,label:D?.yAxis?.labels}}),i.jsxRuntimeExports.jsx(De.YTicksAndGridLines,{values:V.filter(t=>t!==0),y:V.filter(t=>t!==0).map(t=>n(t)),x1:0-x.left,x2:d+x.right,styles:{gridLines:D?.yAxis?.gridLines,labels:D?.yAxis?.labels},classNames:{gridLines:y?.yAxis?.gridLines,labels:y?.yAxis?.labels},suffix:F,prefix:j,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:A})]}):null,O.filter(t=>t.position==="before").map(t=>t.layer),i.jsxRuntimeExports.jsxs(Me.AnimatePresence,{children:[_.map(t=>i.jsxRuntimeExports.jsxs(ae.motion.g,{className:"undp-viz-g-with-hover",transform:`translate(${t.x},${t.y})`,variants:{initial:{opacity:0},whileInView:{opacity:g?t.color&&a[c.indexOf(t.color)]===g?1:f:re.length!==0?re.indexOf(t.label)!==-1?.85:f:.85,transition:{duration:C.duration}}},initial:"initial",animate:v?"whileInView":"initial",exit:{opacity:0,transition:{duration:C.duration}},onMouseEnter:e=>{z(t),H(e.clientY),p(e.clientX),G?.(t)},onMouseMove:e=>{z(t),H(e.clientY),p(e.clientX)},onClick:()=>{(Q||S)&&(he.isEqual($,t)&&I?(T(void 0),Q?.(void 0)):(T(t),Q?.(t)))},onMouseLeave:()=>{z(void 0),p(void 0),H(void 0),G?.(void 0)},children:[i.jsxRuntimeExports.jsx(ae.motion.circle,{cx:0,cy:0,r:r?r(t.radius||0):l,variants:{initial:{fill:s.filter(e=>e.color).length===0?a[0]:t.color?a[c.indexOf(t.color)]:ie.Colors.gray,opacity:0,radius:0},whileInView:{fill:s.filter(e=>e.color).length===0?a[0]:t.color?a[c.indexOf(t.color)]:ie.Colors.gray,opacity:1,radius:r?r(t.radius||0):l,transition:{duration:C.duration}}},initial:"initial",animate:v?"whileInView":"initial",exit:{opacity:0,radius:0,transition:{duration:C.duration}}}),(r?r(t.radius||0):l)>10&&L?i.jsxRuntimeExports.jsx(ae.motion.g,{variants:{initial:{opacity:0},whileInView:{opacity:1,transition:{duration:C.duration}}},initial:"initial",animate:v?"whileInView":"initial",exit:{opacity:0,transition:{duration:C.duration}},children:i.jsxRuntimeExports.jsx("foreignObject",{y:0-(r?r(t.radius||0):l),x:0-(r?r(t.radius||0):l),width:2*(r?r(t.radius||0):l),height:2*(r?r(t.radius||0):l),children:i.jsxRuntimeExports.jsx("div",{className:"flex flex-col justify-center items-center h-inherit py-0 px-1.5",children:L?i.jsxRuntimeExports.jsx("p",{className:de.cnExports.cn("text-center leading-none m-0",y?.graphObjectValues),style:{fontSize:`${Math.min(Math.max(Math.round((r?r(t.radius||0):l)/4),10),Math.max(Math.round((r?r(t.radius||0):l)*12/`${t.label}`.length),10),20)}px`,hyphens:"auto",color:ye.getTextColorBasedOnBgColor(s.filter(e=>e.color).length===0?a[0]:t.color?a[c.indexOf(t.color)]:ie.Colors.gray),...D?.graphObjectValues||{}},children:t.label}):null})})}):null]},t.label)),W?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:W.map((t,e)=>i.jsxRuntimeExports.jsx(be.RefLineY,{text:t.text,color:t.color,y:n(t.value),x1:0-x.left,x2:d+x.right,classNames:t.classNames,styles:t.styles,animate:C,isInView:v},e))}):null]}),O.filter(t=>t.position==="after").map(t=>t.layer)]})}):i.jsxRuntimeExports.jsx("div",{style:{width:`${b}px`,height:`${E}px`},children:i.jsxRuntimeExports.jsx("div",{className:"flex m-auto items-center justify-center p-0 leading-none text-base h-40",children:i.jsxRuntimeExports.jsx(fe.SpinnerExports.Spinner,{})})}),k&&h&&m&&Z?i.jsxRuntimeExports.jsx(je.Tooltip,{data:k,body:h,xPos:m,yPos:Z,backgroundStyle:D?.tooltip,className:y?.tooltip}):null,S&&$!==void 0?i.jsxRuntimeExports.jsx(pe.ModalExports.Modal,{open:$!==void 0,onClose:()=>{T(void 0)},children:i.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof S=="string"?{__html:ve.string2HTML(S,$)}:void 0,children:typeof S=="function"?S($):null})}):null]})}function Le(ce){const{data:s,graphTitle:a,colors:M,sources:oe,graphDescription:b,height:E,width:c,footNote:se,colorDomain:U,colorLegendTitle:P,padding:F,backgroundColor:j=!1,topMargin:L=25,bottomMargin:h=10,leftMargin:G=100,rightMargin:W=40,showLabels:g=!0,showTicks:X=!0,relativeHeight:l,tooltip:K,onSeriesMouseOver:J,refValues:Y,showColorScale:re,graphID:Q,radius:I=5,maxRadiusValue:S,maxValue:D,minValue:y,highlightedDataPoints:q=[],onSeriesMouseClick:C,graphDownload:f=!1,dataDownload:A=!1,language:O="en",showNAColor:B=!0,minHeight:v=0,theme:k="light",ariaLabel:z,resetSelectionOnDoubleClick:$=!0,detailsOnClick:T,suffix:_="",prefix:ee="",styles:m,classNames:p,noOfTicks:Z,animate:H=!1,dimmedOpacity:x=.3,precision:d=2,customLayers:ne=[]}=ce,[w,te]=u.useState(0),[R,r]=u.useState(0),[n,V]=u.useState(void 0),t=u.useRef(null),e=u.useRef(null);return u.useEffect(()=>{const o=new ResizeObserver(ue=>{te(c||ue[0].target.clientWidth||620),r(E||ue[0].target.clientHeight||480)});return t.current&&(r(t.current.clientHeight||480),te(t.current.clientWidth||620),c||o.observe(t.current)),()=>o.disconnect()},[c,E]),i.jsxRuntimeExports.jsx("div",{className:`${k||"light"} flex ${c?"w-fit grow-0":"w-full grow"}`,dir:O==="he"||O==="ar"?"rtl":void 0,children:i.jsxRuntimeExports.jsx("div",{className:de.cnExports.cn(`${j?j===!0?"bg-primary-gray-200 dark:bg-primary-gray-650 ":"":"bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${O||"en"}`,p?.graphContainer),style:{...m?.graphContainer||{},...j&&j!==!0?{backgroundColor:j}:{}},id:Q,ref:e,"aria-label":z||`${a?`The graph shows ${a}. `:""}This is a bee swarm chart showing the distribution along the y-axes. ${b?` ${b}`:""}`,children:i.jsxRuntimeExports.jsx("div",{className:"flex grow",style:{padding:j?F||"1rem":F||0},children:i.jsxRuntimeExports.jsxs("div",{className:"flex flex-col w-full gap-4 grow justify-between",children:[a||b||f||A?i.jsxRuntimeExports.jsx(Oe.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:p?.title,description:p?.description},graphTitle:a,graphDescription:b,width:c,graphDownload:f?e.current:void 0,dataDownload:A?s.map(o=>o.data).filter(o=>o!==void 0).length>0?s.map(o=>o.data).filter(o=>o!==void 0):s.filter(o=>o!==void 0):null}):null,i.jsxRuntimeExports.jsx("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:s.length===0?i.jsxRuntimeExports.jsx(Ne.EmptyState,{}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[re!==!1&&s.filter(o=>o.color).length!==0?i.jsxRuntimeExports.jsx(ke.ColorLegendWithMouseOver,{width:c,colorLegendTitle:P,colors:M||ie.Colors[k].categoricalColors.colors,colorDomain:U||xe.uniqBy(s.filter(o=>o.color),"color").map(o=>o.color),setSelectedColor:V,showNAColor:B}):null,i.jsxRuntimeExports.jsx("div",{className:"flex flex-col grow justify-center w-full leading-0",ref:t,"aria-label":"Graph area",children:(c||w)&&(E||R)?i.jsxRuntimeExports.jsx(Ve,{data:s,circleColors:s.filter(o=>o.color).length===0?M?[M]:[ie.Colors.primaryColors["blue-600"]]:M||ie.Colors[k].categoricalColors.colors,colorDomain:s.filter(o=>o.color).length===0?[]:U||xe.uniqBy(s.filter(o=>o.color),"color").map(o=>o.color),width:c||w,selectedColor:n,height:Math.max(v,E||(l?v?(c||w)*l>v?(c||w)*l:v:(c||w)*l:R)),showTicks:X,leftMargin:G,rightMargin:W,topMargin:L,bottomMargin:h,showLabels:g,tooltip:K,onSeriesMouseOver:J,refValues:Y,startFromZero:!1,radius:I,maxRadiusValue:S,maxValue:D,minValue:y,highlightedDataPoints:q,onSeriesMouseClick:C,resetSelectionOnDoubleClick:$,detailsOnClick:T,styles:m,classNames:p,suffix:_,prefix:ee,noOfTicks:Z||5,animate:H===!0?{duration:.5,once:!0,amount:.5}:H||{duration:0,once:!0,amount:0},dimmedOpacity:x,precision:d,customLayers:ne}):null})]})}),oe||se?i.jsxRuntimeExports.jsx(Ce.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:p?.footnote,source:p?.source},sources:oe,footNote:se,width:c}):null]})})})})}function Ie(ce){const{data:s,graphTitle:a,backgroundColor:M,topMargin:oe,bottomMargin:b,leftMargin:E,rightMargin:c,showLabels:se,showTicks:U,colors:P,sources:F,graphDescription:j,height:L,width:h,footNote:G,colorDomain:W,colorLegendTitle:g,padding:X,relativeHeight:l,tooltip:K,onSeriesMouseOver:J,refValues:Y,showColorScale:re,graphID:Q,radius:I,maxRadiusValue:S,maxValue:D,minValue:y,highlightedDataPoints:q,onSeriesMouseClick:C,graphDownload:f,dataDownload:A,language:O,showNAColor:B,minHeight:v,theme:k,ariaLabel:z,resetSelectionOnDoubleClick:$,detailsOnClick:T,noOfTicks:_,orientation:ee="vertical",styles:m,classNames:p,animate:Z,dimmedOpacity:H,precision:x,customLayers:d}=ce;return ee==="vertical"?i.jsxRuntimeExports.jsx(Le,{data:s,graphTitle:a,backgroundColor:M,topMargin:oe,bottomMargin:b,leftMargin:E,rightMargin:c,showLabels:se,showTicks:U,colors:P,sources:F,graphDescription:j,height:L,width:h,footNote:G,colorDomain:W,colorLegendTitle:g,padding:X,relativeHeight:l,tooltip:K,onSeriesMouseOver:J,refValues:Y,showColorScale:re,graphID:Q,radius:I,maxRadiusValue:S,maxValue:D,minValue:y,highlightedDataPoints:q,onSeriesMouseClick:C,graphDownload:f,dataDownload:A,language:O,showNAColor:B,minHeight:v,theme:k,ariaLabel:z,resetSelectionOnDoubleClick:$,styles:m,detailsOnClick:T,classNames:p,noOfTicks:_,animate:Z,dimmedOpacity:H,precision:x,customLayers:d}):i.jsxRuntimeExports.jsx(Te,{data:s,graphTitle:a,backgroundColor:M,topMargin:oe,bottomMargin:b,leftMargin:E,rightMargin:c,showLabels:se,showTicks:U,colors:P,sources:F,graphDescription:j,height:L,width:h,footNote:G,colorDomain:W,colorLegendTitle:g,padding:X,relativeHeight:l,tooltip:K,onSeriesMouseOver:J,refValues:Y,showColorScale:re,graphID:Q,radius:I,maxRadiusValue:S,maxValue:D,minValue:y,highlightedDataPoints:q,onSeriesMouseClick:C,graphDownload:f,dataDownload:A,language:O,showNAColor:B,minHeight:v,theme:k,ariaLabel:z,resetSelectionOnDoubleClick:$,styles:m,detailsOnClick:T,classNames:p,noOfTicks:_,animate:Z,dimmedOpacity:H,precision:x,customLayers:d})}exports.BeeSwarmChart=Ie;
|
|
1
|
+
import { j as i, m as he } from "./index-CHPV5EwG-BPSP-7Jg.js";
|
|
2
|
+
import { u as ce } from "./index-CaAIPGZo.js";
|
|
3
|
+
import { useRef as ae, useState as T, useEffect as de } from "react";
|
|
4
|
+
import { i as ge } from "./index-27yTRcko.js";
|
|
5
|
+
import { o as ue } from "./index-BLizQDlg.js";
|
|
6
|
+
import { X as me } from "./Modal-CUU6ZK3U.js";
|
|
7
|
+
import { y as fe } from "./Spinner-C85UF28E.js";
|
|
8
|
+
import { n as xe } from "./numberFormattingFunction-14YCbkN2.js";
|
|
9
|
+
import { T as pe } from "./Tooltip-DyM5snqx.js";
|
|
10
|
+
import { c as D } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
|
+
import { g as ye } from "./getTextColorBasedOnBgColor-B6Nk2WBf.js";
|
|
12
|
+
import { Colors as le } from "./Colors.js";
|
|
13
|
+
import { s as ve } from "./string2HTML-CWHGfz_d.js";
|
|
14
|
+
import { A as be } from "./Axis-Ddg-seDi.js";
|
|
15
|
+
import { X as Te } from "./XTicksAndGridLines-Bn9u5gOM.js";
|
|
16
|
+
import { a as Ve, R as Ae } from "./ReferenceLine-C1GpoG9d.js";
|
|
17
|
+
import { s as we } from "./pow-e8zx3AQJ.js";
|
|
18
|
+
import { a as je } from "./linear-DUdu7l2G.js";
|
|
19
|
+
import { f as Me, b as Ce, a as Oe, c as De, d as ke } from "./y-D0sAaVii.js";
|
|
20
|
+
import { GraphFooter as Ne } from "./GraphFooter.js";
|
|
21
|
+
import { GraphHeader as $e } from "./GraphHeader.js";
|
|
22
|
+
import { ColorLegendWithMouseOver as Se } from "./ColorLegendWithMouseOver.js";
|
|
23
|
+
import { E as Le } from "./EmptyState-DdTp-Mdn.js";
|
|
24
|
+
import { Y as He } from "./YTicksAndGridLines-B6ah7CRf.js";
|
|
25
|
+
function Fe(se) {
|
|
26
|
+
const {
|
|
27
|
+
data: r,
|
|
28
|
+
circleColors: c,
|
|
29
|
+
showTicks: C,
|
|
30
|
+
leftMargin: ie,
|
|
31
|
+
width: b,
|
|
32
|
+
height: w,
|
|
33
|
+
colorDomain: n,
|
|
34
|
+
rightMargin: oe,
|
|
35
|
+
topMargin: X,
|
|
36
|
+
bottomMargin: Y,
|
|
37
|
+
showLabels: P,
|
|
38
|
+
tooltip: p,
|
|
39
|
+
onSeriesMouseOver: V,
|
|
40
|
+
refValues: u,
|
|
41
|
+
selectedColor: E,
|
|
42
|
+
startFromZero: W,
|
|
43
|
+
radius: x,
|
|
44
|
+
maxRadiusValue: B,
|
|
45
|
+
maxValue: a,
|
|
46
|
+
minValue: U,
|
|
47
|
+
highlightedDataPoints: J,
|
|
48
|
+
onSeriesMouseClick: G,
|
|
49
|
+
rtl: re,
|
|
50
|
+
resetSelectionOnDoubleClick: K,
|
|
51
|
+
detailsOnClick: A,
|
|
52
|
+
suffix: N,
|
|
53
|
+
prefix: $,
|
|
54
|
+
styles: y,
|
|
55
|
+
classNames: H,
|
|
56
|
+
noOfTicks: Q,
|
|
57
|
+
dimmedOpacity: F,
|
|
58
|
+
precision: R,
|
|
59
|
+
customLayers: k
|
|
60
|
+
} = se, z = ae(null), [j, v] = T(void 0), [S, I] = T(void 0), [_, Z] = T(null), [ee, m] = T(void 0), [f, h] = T(void 0), d = {
|
|
61
|
+
top: X,
|
|
62
|
+
bottom: Y,
|
|
63
|
+
left: ie,
|
|
64
|
+
right: oe
|
|
65
|
+
}, q = b - d.left - d.right, te = w - d.top - d.bottom, O = r.filter((e) => !D(e.radius)).length === 0 ? r : ue(
|
|
66
|
+
r.filter((e) => !D(e.radius)),
|
|
67
|
+
"radius",
|
|
68
|
+
"desc"
|
|
69
|
+
), M = D(a) ? Math.max(...r.filter((e) => !D(e.position)).map((e) => e.position)) < 0 && !W ? 0 : Math.max(...r.filter((e) => !D(e.position)).map((e) => e.position)) : a, l = D(U) ? Math.min(...r.filter((e) => !D(e.position)).map((e) => e.position)) >= 0 && !W ? 0 : Math.min(...r.filter((e) => !D(e.position)).map((e) => e.position)) : U, s = r.filter((e) => e.radius === void 0 || e.radius === null).length !== r.length ? we().domain([
|
|
70
|
+
0,
|
|
71
|
+
D(B) ? Math.max(...r.map((e) => e.radius).filter((e) => e != null)) : B
|
|
72
|
+
]).range([0.25, x]).nice() : void 0, L = je().domain([l, M]).range([0, q]).nice(), t = L.ticks(Q);
|
|
73
|
+
return de(() => {
|
|
74
|
+
Z(null);
|
|
75
|
+
const e = O.filter((g) => g.position);
|
|
76
|
+
Me(e).force("x", Ce((g) => L(g.position)).strength(5)).force("y", Oe((g) => te / 2).strength(1)).force(
|
|
77
|
+
"collide",
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
|
+
De((g) => s ? s(g.radius || 0) + 1 : x + 1)
|
|
80
|
+
).force("charge", ke().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
81
|
+
Z(e);
|
|
82
|
+
}).on("end", () => {
|
|
83
|
+
Z(e);
|
|
84
|
+
});
|
|
85
|
+
}, [r, x, te, q, l, M, O, L, s]), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
86
|
+
_ ? /* @__PURE__ */ i.jsx(
|
|
87
|
+
"svg",
|
|
88
|
+
{
|
|
89
|
+
width: `${b}px`,
|
|
90
|
+
height: `${w}px`,
|
|
91
|
+
viewBox: `0 0 ${b} ${w}`,
|
|
92
|
+
direction: "ltr",
|
|
93
|
+
ref: z,
|
|
94
|
+
children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${d.left},${d.top})`, children: [
|
|
95
|
+
C ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
96
|
+
/* @__PURE__ */ i.jsx(
|
|
97
|
+
be,
|
|
98
|
+
{
|
|
99
|
+
x1: L(l < 0 ? 0 : l),
|
|
100
|
+
x2: L(l < 0 ? 0 : l),
|
|
101
|
+
y1: 0 - d.top,
|
|
102
|
+
y2: te + d.bottom,
|
|
103
|
+
label: xe(
|
|
104
|
+
l < 0 ? 0 : l,
|
|
105
|
+
"NA",
|
|
106
|
+
R,
|
|
107
|
+
$,
|
|
108
|
+
N
|
|
109
|
+
),
|
|
110
|
+
labelPos: {
|
|
111
|
+
x: L(l < 0 ? 0 : l),
|
|
112
|
+
y: 0 - X,
|
|
113
|
+
dy: "0.75em",
|
|
114
|
+
dx: 3
|
|
115
|
+
},
|
|
116
|
+
classNames: {
|
|
117
|
+
axis: H?.xAxis?.axis,
|
|
118
|
+
label: H?.yAxis?.labels
|
|
119
|
+
},
|
|
120
|
+
styles: {
|
|
121
|
+
axis: y?.xAxis?.axis,
|
|
122
|
+
label: y?.yAxis?.labels
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ i.jsx(
|
|
127
|
+
Te,
|
|
128
|
+
{
|
|
129
|
+
values: t.filter((e) => e !== 0),
|
|
130
|
+
x: t.filter((e) => e !== 0).map((e) => L(e)),
|
|
131
|
+
y1: 0 - X,
|
|
132
|
+
y2: te + d.bottom,
|
|
133
|
+
styles: {
|
|
134
|
+
gridLines: y?.xAxis?.gridLines,
|
|
135
|
+
labels: y?.xAxis?.labels
|
|
136
|
+
},
|
|
137
|
+
classNames: {
|
|
138
|
+
gridLines: H?.xAxis?.gridLines,
|
|
139
|
+
labels: H?.xAxis?.labels
|
|
140
|
+
},
|
|
141
|
+
suffix: N,
|
|
142
|
+
prefix: $,
|
|
143
|
+
labelType: "secondary",
|
|
144
|
+
showGridLines: !0,
|
|
145
|
+
precision: R
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] }) : null,
|
|
149
|
+
k.filter((e) => e.position === "before").map((e) => e.layer),
|
|
150
|
+
_.map((e) => /* @__PURE__ */ i.jsxs(
|
|
151
|
+
"g",
|
|
152
|
+
{
|
|
153
|
+
className: "undp-viz-g-with-hover",
|
|
154
|
+
transform: `translate(${e.x},${e.y})`,
|
|
155
|
+
opacity: E ? e.color && c[n.indexOf(e.color)] === E ? 1 : F : J.length !== 0 ? J.indexOf(e.label) !== -1 ? 0.85 : F : 0.85,
|
|
156
|
+
onMouseEnter: (g) => {
|
|
157
|
+
v(e), h(g.clientY), m(g.clientX), V?.(e);
|
|
158
|
+
},
|
|
159
|
+
onMouseMove: (g) => {
|
|
160
|
+
v(e), h(g.clientY), m(g.clientX);
|
|
161
|
+
},
|
|
162
|
+
onClick: () => {
|
|
163
|
+
(G || A) && (ge(S, e) && K ? (I(void 0), G?.(void 0)) : (I(e), G?.(e)));
|
|
164
|
+
},
|
|
165
|
+
onMouseLeave: () => {
|
|
166
|
+
v(void 0), m(void 0), h(void 0), V?.(void 0);
|
|
167
|
+
},
|
|
168
|
+
children: [
|
|
169
|
+
/* @__PURE__ */ i.jsx(
|
|
170
|
+
"circle",
|
|
171
|
+
{
|
|
172
|
+
cx: 0,
|
|
173
|
+
cy: 0,
|
|
174
|
+
fill: r.filter((g) => g.color).length === 0 ? c[0] : e.color ? c[n.indexOf(e.color)] : le.gray,
|
|
175
|
+
radius: s ? s(e.radius || 0) : x
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
(s ? s(e.radius || 0) : x) > 10 && P ? /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx(
|
|
179
|
+
"foreignObject",
|
|
180
|
+
{
|
|
181
|
+
y: 0 - (s ? s(e.radius || 0) : x),
|
|
182
|
+
x: 0 - (s ? s(e.radius || 0) : x),
|
|
183
|
+
width: 2 * (s ? s(e.radius || 0) : x),
|
|
184
|
+
height: 2 * (s ? s(e.radius || 0) : x),
|
|
185
|
+
children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-1.5", children: P ? /* @__PURE__ */ i.jsx(
|
|
186
|
+
"p",
|
|
187
|
+
{
|
|
188
|
+
className: he(
|
|
189
|
+
"text-center leading-none m-0",
|
|
190
|
+
H?.graphObjectValues
|
|
191
|
+
),
|
|
192
|
+
style: {
|
|
193
|
+
fontSize: `${Math.min(
|
|
194
|
+
Math.max(
|
|
195
|
+
Math.round(
|
|
196
|
+
(s ? s(e.radius || 0) : x) / 4
|
|
197
|
+
),
|
|
198
|
+
10
|
|
199
|
+
),
|
|
200
|
+
Math.max(
|
|
201
|
+
Math.round(
|
|
202
|
+
(s ? s(e.radius || 0) : x) * 12 / `${e.label}`.length
|
|
203
|
+
),
|
|
204
|
+
10
|
|
205
|
+
),
|
|
206
|
+
20
|
|
207
|
+
)}px`,
|
|
208
|
+
color: ye(
|
|
209
|
+
r.filter((g) => g.color).length === 0 ? c[0] : e.color ? c[n.indexOf(e.color)] : le.gray
|
|
210
|
+
),
|
|
211
|
+
hyphens: "auto",
|
|
212
|
+
...y?.graphObjectValues || {}
|
|
213
|
+
},
|
|
214
|
+
children: e.label
|
|
215
|
+
}
|
|
216
|
+
) : null })
|
|
217
|
+
}
|
|
218
|
+
) }) : null
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
e.label
|
|
222
|
+
)),
|
|
223
|
+
u ? /* @__PURE__ */ i.jsx(i.Fragment, { children: u.map((e, g) => /* @__PURE__ */ i.jsx(
|
|
224
|
+
Ve,
|
|
225
|
+
{
|
|
226
|
+
text: e.text,
|
|
227
|
+
color: e.color,
|
|
228
|
+
x: L(e.value),
|
|
229
|
+
y1: 0 - d.top,
|
|
230
|
+
y2: te + d.bottom,
|
|
231
|
+
textSide: L(e.value) > q * 0.75 || re ? "left" : "right",
|
|
232
|
+
classNames: e.classNames,
|
|
233
|
+
styles: e.styles,
|
|
234
|
+
isInView: !0
|
|
235
|
+
},
|
|
236
|
+
g
|
|
237
|
+
)) }) : null,
|
|
238
|
+
k.filter((e) => e.position === "after").map((e) => e.layer)
|
|
239
|
+
] })
|
|
240
|
+
}
|
|
241
|
+
) : /* @__PURE__ */ i.jsx("div", { style: { width: `${b}px`, height: `${w}px` }, children: /* @__PURE__ */ i.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ i.jsx(fe, {}) }) }),
|
|
242
|
+
j && p && ee && f ? /* @__PURE__ */ i.jsx(
|
|
243
|
+
pe,
|
|
244
|
+
{
|
|
245
|
+
data: j,
|
|
246
|
+
body: p,
|
|
247
|
+
xPos: ee,
|
|
248
|
+
yPos: f,
|
|
249
|
+
backgroundStyle: y?.tooltip,
|
|
250
|
+
className: H?.tooltip
|
|
251
|
+
}
|
|
252
|
+
) : null,
|
|
253
|
+
A && S !== void 0 ? /* @__PURE__ */ i.jsx(
|
|
254
|
+
me,
|
|
255
|
+
{
|
|
256
|
+
open: S !== void 0,
|
|
257
|
+
onClose: () => {
|
|
258
|
+
I(void 0);
|
|
259
|
+
},
|
|
260
|
+
children: /* @__PURE__ */ i.jsx(
|
|
261
|
+
"div",
|
|
262
|
+
{
|
|
263
|
+
className: "graph-modal-content m-0",
|
|
264
|
+
dangerouslySetInnerHTML: typeof A == "string" ? { __html: ve(A, S) } : void 0,
|
|
265
|
+
children: typeof A == "function" ? A(S) : null
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
}
|
|
269
|
+
) : null
|
|
270
|
+
] });
|
|
271
|
+
}
|
|
272
|
+
function Pe(se) {
|
|
273
|
+
const {
|
|
274
|
+
data: r,
|
|
275
|
+
graphTitle: c,
|
|
276
|
+
backgroundColor: C = !1,
|
|
277
|
+
topMargin: ie = 25,
|
|
278
|
+
bottomMargin: b = 10,
|
|
279
|
+
leftMargin: w = 10,
|
|
280
|
+
rightMargin: n = 10,
|
|
281
|
+
showLabels: oe = !0,
|
|
282
|
+
showTicks: X = !0,
|
|
283
|
+
colors: Y,
|
|
284
|
+
sources: P,
|
|
285
|
+
graphDescription: p,
|
|
286
|
+
height: V,
|
|
287
|
+
width: u,
|
|
288
|
+
footNote: E,
|
|
289
|
+
colorDomain: W,
|
|
290
|
+
colorLegendTitle: x,
|
|
291
|
+
padding: B,
|
|
292
|
+
relativeHeight: a,
|
|
293
|
+
tooltip: U,
|
|
294
|
+
onSeriesMouseOver: J,
|
|
295
|
+
refValues: G,
|
|
296
|
+
showColorScale: re,
|
|
297
|
+
graphID: K,
|
|
298
|
+
radius: A = 5,
|
|
299
|
+
maxRadiusValue: N,
|
|
300
|
+
maxValue: $,
|
|
301
|
+
minValue: y,
|
|
302
|
+
highlightedDataPoints: H = [],
|
|
303
|
+
onSeriesMouseClick: Q,
|
|
304
|
+
graphDownload: F = !1,
|
|
305
|
+
dataDownload: R = !1,
|
|
306
|
+
language: k = "en",
|
|
307
|
+
showNAColor: z = !0,
|
|
308
|
+
minHeight: j = 0,
|
|
309
|
+
theme: v = "light",
|
|
310
|
+
ariaLabel: S,
|
|
311
|
+
resetSelectionOnDoubleClick: I = !0,
|
|
312
|
+
detailsOnClick: _,
|
|
313
|
+
suffix: Z = "",
|
|
314
|
+
prefix: ee = "",
|
|
315
|
+
styles: m,
|
|
316
|
+
classNames: f,
|
|
317
|
+
noOfTicks: h,
|
|
318
|
+
dimmedOpacity: d = 0.3,
|
|
319
|
+
precision: q = 2,
|
|
320
|
+
customLayers: te = []
|
|
321
|
+
} = se, [O, M] = T(0), [l, s] = T(0), [L, t] = T(void 0), e = ae(null), g = ae(null);
|
|
322
|
+
return de(() => {
|
|
323
|
+
const o = new ResizeObserver((ne) => {
|
|
324
|
+
M(u || ne[0].target.clientWidth || 620), s(V || ne[0].target.clientHeight || 480);
|
|
325
|
+
});
|
|
326
|
+
return e.current && (s(e.current.clientHeight || 480), M(e.current.clientWidth || 620), u || o.observe(e.current)), () => o.disconnect();
|
|
327
|
+
}, [u, V]), /* @__PURE__ */ i.jsx(
|
|
328
|
+
"div",
|
|
329
|
+
{
|
|
330
|
+
className: `${v || "light"} flex ${u ? "w-fit grow-0" : "w-full grow"}`,
|
|
331
|
+
dir: k === "he" || k === "ar" ? "rtl" : void 0,
|
|
332
|
+
children: /* @__PURE__ */ i.jsx(
|
|
333
|
+
"div",
|
|
334
|
+
{
|
|
335
|
+
className: he(
|
|
336
|
+
`${C ? C === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${k || "en"}`,
|
|
337
|
+
f?.graphContainer
|
|
338
|
+
),
|
|
339
|
+
style: {
|
|
340
|
+
...m?.graphContainer || {},
|
|
341
|
+
...C && C !== !0 ? { backgroundColor: C } : {}
|
|
342
|
+
},
|
|
343
|
+
id: K,
|
|
344
|
+
ref: g,
|
|
345
|
+
"aria-label": S || `${c ? `The graph shows ${c}. ` : ""}This is a bee swarm chart showing the distribution along the x-axes. ${p ? ` ${p}` : ""}`,
|
|
346
|
+
children: /* @__PURE__ */ i.jsx(
|
|
347
|
+
"div",
|
|
348
|
+
{
|
|
349
|
+
className: "flex grow",
|
|
350
|
+
style: { padding: C ? B || "1rem" : B || 0 },
|
|
351
|
+
children: /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
352
|
+
c || p || F || R ? /* @__PURE__ */ i.jsx(
|
|
353
|
+
$e,
|
|
354
|
+
{
|
|
355
|
+
styles: {
|
|
356
|
+
title: m?.title,
|
|
357
|
+
description: m?.description
|
|
358
|
+
},
|
|
359
|
+
classNames: {
|
|
360
|
+
title: f?.title,
|
|
361
|
+
description: f?.description
|
|
362
|
+
},
|
|
363
|
+
graphTitle: c,
|
|
364
|
+
graphDescription: p,
|
|
365
|
+
width: u,
|
|
366
|
+
graphDownload: F ? g.current : void 0,
|
|
367
|
+
dataDownload: R ? r.map((o) => o.data).filter((o) => o !== void 0).length > 0 ? r.map((o) => o.data).filter((o) => o !== void 0) : r.filter((o) => o !== void 0) : null
|
|
368
|
+
}
|
|
369
|
+
) : null,
|
|
370
|
+
/* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: r.length === 0 ? /* @__PURE__ */ i.jsx(Le, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
371
|
+
re !== !1 && r.filter((o) => o.color).length !== 0 ? /* @__PURE__ */ i.jsx(
|
|
372
|
+
Se,
|
|
373
|
+
{
|
|
374
|
+
width: u,
|
|
375
|
+
colorLegendTitle: x,
|
|
376
|
+
colors: Y || le[v].categoricalColors.colors,
|
|
377
|
+
colorDomain: W || ce(
|
|
378
|
+
r.filter((o) => o.color),
|
|
379
|
+
"color"
|
|
380
|
+
).map((o) => o.color),
|
|
381
|
+
setSelectedColor: t,
|
|
382
|
+
showNAColor: z ?? !0
|
|
383
|
+
}
|
|
384
|
+
) : null,
|
|
385
|
+
/* @__PURE__ */ i.jsx(
|
|
386
|
+
"div",
|
|
387
|
+
{
|
|
388
|
+
className: "flex flex-col grow justify-center w-full leading-0",
|
|
389
|
+
ref: e,
|
|
390
|
+
"aria-label": "Graph area",
|
|
391
|
+
children: (u || O) && (V || l) ? /* @__PURE__ */ i.jsx(
|
|
392
|
+
Fe,
|
|
393
|
+
{
|
|
394
|
+
data: r,
|
|
395
|
+
circleColors: r.filter((o) => o.color).length === 0 ? Y ? [Y] : [le.primaryColors["blue-600"]] : Y || le[v].categoricalColors.colors,
|
|
396
|
+
colorDomain: r.filter((o) => o.color).length === 0 ? [] : W || ce(
|
|
397
|
+
r.filter((o) => o.color),
|
|
398
|
+
"color"
|
|
399
|
+
).map((o) => o.color),
|
|
400
|
+
width: u || O,
|
|
401
|
+
selectedColor: L,
|
|
402
|
+
height: Math.max(
|
|
403
|
+
j,
|
|
404
|
+
V || (a ? j ? (u || O) * a > j ? (u || O) * a : j : (u || O) * a : l)
|
|
405
|
+
),
|
|
406
|
+
showTicks: X,
|
|
407
|
+
leftMargin: w,
|
|
408
|
+
rightMargin: n,
|
|
409
|
+
topMargin: ie,
|
|
410
|
+
bottomMargin: b,
|
|
411
|
+
showLabels: oe,
|
|
412
|
+
tooltip: U,
|
|
413
|
+
onSeriesMouseOver: J,
|
|
414
|
+
refValues: G,
|
|
415
|
+
startFromZero: !1,
|
|
416
|
+
radius: A,
|
|
417
|
+
maxRadiusValue: N,
|
|
418
|
+
maxValue: $,
|
|
419
|
+
minValue: y,
|
|
420
|
+
highlightedDataPoints: H,
|
|
421
|
+
onSeriesMouseClick: Q,
|
|
422
|
+
rtl: k === "he" || k === "ar",
|
|
423
|
+
resetSelectionOnDoubleClick: I,
|
|
424
|
+
detailsOnClick: _,
|
|
425
|
+
suffix: Z,
|
|
426
|
+
prefix: ee,
|
|
427
|
+
styles: m,
|
|
428
|
+
classNames: f,
|
|
429
|
+
noOfTicks: h || 5,
|
|
430
|
+
dimmedOpacity: d,
|
|
431
|
+
precision: q,
|
|
432
|
+
customLayers: te
|
|
433
|
+
}
|
|
434
|
+
) : null
|
|
435
|
+
}
|
|
436
|
+
)
|
|
437
|
+
] }) }),
|
|
438
|
+
P || E ? /* @__PURE__ */ i.jsx(
|
|
439
|
+
Ne,
|
|
440
|
+
{
|
|
441
|
+
styles: { footnote: m?.footnote, source: m?.source },
|
|
442
|
+
classNames: {
|
|
443
|
+
footnote: f?.footnote,
|
|
444
|
+
source: f?.source
|
|
445
|
+
},
|
|
446
|
+
sources: P,
|
|
447
|
+
footNote: E,
|
|
448
|
+
width: u
|
|
449
|
+
}
|
|
450
|
+
) : null
|
|
451
|
+
] })
|
|
452
|
+
}
|
|
453
|
+
)
|
|
454
|
+
}
|
|
455
|
+
)
|
|
456
|
+
}
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
function Re(se) {
|
|
460
|
+
const {
|
|
461
|
+
data: r,
|
|
462
|
+
circleColors: c,
|
|
463
|
+
showTicks: C,
|
|
464
|
+
leftMargin: ie,
|
|
465
|
+
width: b,
|
|
466
|
+
height: w,
|
|
467
|
+
colorDomain: n,
|
|
468
|
+
rightMargin: oe,
|
|
469
|
+
topMargin: X,
|
|
470
|
+
bottomMargin: Y,
|
|
471
|
+
suffix: P,
|
|
472
|
+
prefix: p,
|
|
473
|
+
showLabels: V,
|
|
474
|
+
tooltip: u,
|
|
475
|
+
onSeriesMouseOver: E,
|
|
476
|
+
refValues: W,
|
|
477
|
+
selectedColor: x,
|
|
478
|
+
startFromZero: B,
|
|
479
|
+
radius: a,
|
|
480
|
+
maxRadiusValue: U,
|
|
481
|
+
maxValue: J,
|
|
482
|
+
minValue: G,
|
|
483
|
+
highlightedDataPoints: re,
|
|
484
|
+
onSeriesMouseClick: K,
|
|
485
|
+
resetSelectionOnDoubleClick: A,
|
|
486
|
+
detailsOnClick: N,
|
|
487
|
+
styles: $,
|
|
488
|
+
classNames: y,
|
|
489
|
+
noOfTicks: H,
|
|
490
|
+
dimmedOpacity: Q,
|
|
491
|
+
precision: F,
|
|
492
|
+
customLayers: R
|
|
493
|
+
} = se, k = ae(null), [z, j] = T(void 0), [v, S] = T(void 0), [I, _] = T(null), [Z, ee] = T(void 0), [m, f] = T(void 0), h = {
|
|
494
|
+
top: X,
|
|
495
|
+
bottom: Y,
|
|
496
|
+
left: ie,
|
|
497
|
+
right: oe
|
|
498
|
+
}, d = b - h.left - h.right, q = w - h.top - h.bottom, te = r.filter((t) => !D(t.radius)).length === 0 ? r : ue(
|
|
499
|
+
r.filter((t) => !D(t.radius)),
|
|
500
|
+
"radius",
|
|
501
|
+
"desc"
|
|
502
|
+
), O = D(J) ? Math.max(...r.filter((t) => !D(t.position)).map((t) => t.position)) < 0 && !B ? 0 : Math.max(...r.filter((t) => !D(t.position)).map((t) => t.position)) : J, M = D(G) ? Math.min(...r.filter((t) => !D(t.position)).map((t) => t.position)) >= 0 && !B ? 0 : Math.min(...r.filter((t) => !D(t.position)).map((t) => t.position)) : G, l = r.filter((t) => t.radius === void 0 || t.radius === null).length !== r.length ? we().domain([
|
|
503
|
+
0,
|
|
504
|
+
D(U) ? Math.max(...r.map((t) => t.radius).filter((t) => t != null)) : U
|
|
505
|
+
]).range([0.25, a]).nice() : void 0, s = je().domain([M, O]).range([q, 0]).nice(), L = s.ticks(H);
|
|
506
|
+
return de(() => {
|
|
507
|
+
_(null);
|
|
508
|
+
const t = te.filter((e) => e.position);
|
|
509
|
+
Me(t).force("y", Oe((e) => s(e.position)).strength(5)).force("x", Ce((e) => d / 2).strength(1)).force(
|
|
510
|
+
"collide",
|
|
511
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
512
|
+
De((e) => l ? l(e.radius || 0) + 1 : a + 1)
|
|
513
|
+
).force("charge", ke().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
|
|
514
|
+
_(t);
|
|
515
|
+
}).on("end", () => {
|
|
516
|
+
_(t);
|
|
517
|
+
});
|
|
518
|
+
}, [r, a, q, d, M, O, te, s, l]), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
519
|
+
I ? /* @__PURE__ */ i.jsx(
|
|
520
|
+
"svg",
|
|
521
|
+
{
|
|
522
|
+
width: `${b}px`,
|
|
523
|
+
height: `${w}px`,
|
|
524
|
+
viewBox: `0 0 ${b} ${w}`,
|
|
525
|
+
direction: "ltr",
|
|
526
|
+
ref: k,
|
|
527
|
+
children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${h.left},${h.top})`, children: [
|
|
528
|
+
C ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
529
|
+
/* @__PURE__ */ i.jsx(
|
|
530
|
+
be,
|
|
531
|
+
{
|
|
532
|
+
y1: s(M < 0 ? 0 : M),
|
|
533
|
+
y2: s(M < 0 ? 0 : M),
|
|
534
|
+
x1: 0 - h.left,
|
|
535
|
+
x2: d + h.right,
|
|
536
|
+
label: xe(
|
|
537
|
+
M < 0 ? 0 : M,
|
|
538
|
+
"NA",
|
|
539
|
+
F,
|
|
540
|
+
p,
|
|
541
|
+
P
|
|
542
|
+
),
|
|
543
|
+
labelPos: {
|
|
544
|
+
x: 0 - h.left,
|
|
545
|
+
y: s(M < 0 ? 0 : M),
|
|
546
|
+
dx: 0,
|
|
547
|
+
dy: O < 0 ? "1em" : -5
|
|
548
|
+
},
|
|
549
|
+
classNames: {
|
|
550
|
+
axis: y?.xAxis?.axis,
|
|
551
|
+
label: y?.yAxis?.labels
|
|
552
|
+
},
|
|
553
|
+
styles: {
|
|
554
|
+
axis: $?.xAxis?.axis,
|
|
555
|
+
label: $?.yAxis?.labels
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
),
|
|
559
|
+
/* @__PURE__ */ i.jsx(
|
|
560
|
+
He,
|
|
561
|
+
{
|
|
562
|
+
values: L.filter((t) => t !== 0),
|
|
563
|
+
y: L.filter((t) => t !== 0).map((t) => s(t)),
|
|
564
|
+
x1: 0 - h.left,
|
|
565
|
+
x2: d + h.right,
|
|
566
|
+
styles: {
|
|
567
|
+
gridLines: $?.yAxis?.gridLines,
|
|
568
|
+
labels: $?.yAxis?.labels
|
|
569
|
+
},
|
|
570
|
+
classNames: {
|
|
571
|
+
gridLines: y?.yAxis?.gridLines,
|
|
572
|
+
labels: y?.yAxis?.labels
|
|
573
|
+
},
|
|
574
|
+
suffix: P,
|
|
575
|
+
prefix: p,
|
|
576
|
+
labelType: "secondary",
|
|
577
|
+
showGridLines: !0,
|
|
578
|
+
labelPos: "vertical",
|
|
579
|
+
precision: F
|
|
580
|
+
}
|
|
581
|
+
)
|
|
582
|
+
] }) : null,
|
|
583
|
+
R.filter((t) => t.position === "before").map((t) => t.layer),
|
|
584
|
+
I.map((t) => /* @__PURE__ */ i.jsxs(
|
|
585
|
+
"g",
|
|
586
|
+
{
|
|
587
|
+
className: "undp-viz-g-with-hover",
|
|
588
|
+
transform: `translate(${t.x},${t.y})`,
|
|
589
|
+
opacity: x ? t.color && c[n.indexOf(t.color)] === x ? 1 : Q : re.length !== 0 ? re.indexOf(t.label) !== -1 ? 0.85 : Q : 0.85,
|
|
590
|
+
onMouseEnter: (e) => {
|
|
591
|
+
j(t), f(e.clientY), ee(e.clientX), E?.(t);
|
|
592
|
+
},
|
|
593
|
+
onMouseMove: (e) => {
|
|
594
|
+
j(t), f(e.clientY), ee(e.clientX);
|
|
595
|
+
},
|
|
596
|
+
onClick: () => {
|
|
597
|
+
(K || N) && (ge(v, t) && A ? (S(void 0), K?.(void 0)) : (S(t), K?.(t)));
|
|
598
|
+
},
|
|
599
|
+
onMouseLeave: () => {
|
|
600
|
+
j(void 0), ee(void 0), f(void 0), E?.(void 0);
|
|
601
|
+
},
|
|
602
|
+
children: [
|
|
603
|
+
/* @__PURE__ */ i.jsx(
|
|
604
|
+
"circle",
|
|
605
|
+
{
|
|
606
|
+
cx: 0,
|
|
607
|
+
cy: 0,
|
|
608
|
+
r: l ? l(t.radius || 0) : a,
|
|
609
|
+
fill: r.filter((e) => e.color).length === 0 ? c[0] : t.color ? c[n.indexOf(t.color)] : le.gray
|
|
610
|
+
}
|
|
611
|
+
),
|
|
612
|
+
(l ? l(t.radius || 0) : a) > 10 && V ? /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx(
|
|
613
|
+
"foreignObject",
|
|
614
|
+
{
|
|
615
|
+
y: 0 - (l ? l(t.radius || 0) : a),
|
|
616
|
+
x: 0 - (l ? l(t.radius || 0) : a),
|
|
617
|
+
width: 2 * (l ? l(t.radius || 0) : a),
|
|
618
|
+
height: 2 * (l ? l(t.radius || 0) : a),
|
|
619
|
+
children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-col justify-center items-center h-inherit py-0 px-1.5", children: V ? /* @__PURE__ */ i.jsx(
|
|
620
|
+
"p",
|
|
621
|
+
{
|
|
622
|
+
className: he(
|
|
623
|
+
"text-center leading-none m-0",
|
|
624
|
+
y?.graphObjectValues
|
|
625
|
+
),
|
|
626
|
+
style: {
|
|
627
|
+
fontSize: `${Math.min(
|
|
628
|
+
Math.max(
|
|
629
|
+
Math.round(
|
|
630
|
+
(l ? l(t.radius || 0) : a) / 4
|
|
631
|
+
),
|
|
632
|
+
10
|
|
633
|
+
),
|
|
634
|
+
Math.max(
|
|
635
|
+
Math.round(
|
|
636
|
+
(l ? l(t.radius || 0) : a) * 12 / `${t.label}`.length
|
|
637
|
+
),
|
|
638
|
+
10
|
|
639
|
+
),
|
|
640
|
+
20
|
|
641
|
+
)}px`,
|
|
642
|
+
hyphens: "auto",
|
|
643
|
+
color: ye(
|
|
644
|
+
r.filter((e) => e.color).length === 0 ? c[0] : t.color ? c[n.indexOf(t.color)] : le.gray
|
|
645
|
+
),
|
|
646
|
+
...$?.graphObjectValues || {}
|
|
647
|
+
},
|
|
648
|
+
children: t.label
|
|
649
|
+
}
|
|
650
|
+
) : null })
|
|
651
|
+
}
|
|
652
|
+
) }) : null
|
|
653
|
+
]
|
|
654
|
+
},
|
|
655
|
+
t.label
|
|
656
|
+
)),
|
|
657
|
+
W ? /* @__PURE__ */ i.jsx(i.Fragment, { children: W.map((t, e) => /* @__PURE__ */ i.jsx(
|
|
658
|
+
Ae,
|
|
659
|
+
{
|
|
660
|
+
text: t.text,
|
|
661
|
+
color: t.color,
|
|
662
|
+
y: s(t.value),
|
|
663
|
+
x1: 0 - h.left,
|
|
664
|
+
x2: d + h.right,
|
|
665
|
+
classNames: t.classNames,
|
|
666
|
+
styles: t.styles,
|
|
667
|
+
isInView: !0
|
|
668
|
+
},
|
|
669
|
+
e
|
|
670
|
+
)) }) : null,
|
|
671
|
+
R.filter((t) => t.position === "after").map((t) => t.layer)
|
|
672
|
+
] })
|
|
673
|
+
}
|
|
674
|
+
) : /* @__PURE__ */ i.jsx("div", { style: { width: `${b}px`, height: `${w}px` }, children: /* @__PURE__ */ i.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ i.jsx(fe, {}) }) }),
|
|
675
|
+
z && u && Z && m ? /* @__PURE__ */ i.jsx(
|
|
676
|
+
pe,
|
|
677
|
+
{
|
|
678
|
+
data: z,
|
|
679
|
+
body: u,
|
|
680
|
+
xPos: Z,
|
|
681
|
+
yPos: m,
|
|
682
|
+
backgroundStyle: $?.tooltip,
|
|
683
|
+
className: y?.tooltip
|
|
684
|
+
}
|
|
685
|
+
) : null,
|
|
686
|
+
N && v !== void 0 ? /* @__PURE__ */ i.jsx(
|
|
687
|
+
me,
|
|
688
|
+
{
|
|
689
|
+
open: v !== void 0,
|
|
690
|
+
onClose: () => {
|
|
691
|
+
S(void 0);
|
|
692
|
+
},
|
|
693
|
+
children: /* @__PURE__ */ i.jsx(
|
|
694
|
+
"div",
|
|
695
|
+
{
|
|
696
|
+
className: "graph-modal-content m-0",
|
|
697
|
+
dangerouslySetInnerHTML: typeof N == "string" ? { __html: ve(N, v) } : void 0,
|
|
698
|
+
children: typeof N == "function" ? N(v) : null
|
|
699
|
+
}
|
|
700
|
+
)
|
|
701
|
+
}
|
|
702
|
+
) : null
|
|
703
|
+
] });
|
|
704
|
+
}
|
|
705
|
+
function Xe(se) {
|
|
706
|
+
const {
|
|
707
|
+
data: r,
|
|
708
|
+
graphTitle: c,
|
|
709
|
+
colors: C,
|
|
710
|
+
sources: ie,
|
|
711
|
+
graphDescription: b,
|
|
712
|
+
height: w,
|
|
713
|
+
width: n,
|
|
714
|
+
footNote: oe,
|
|
715
|
+
colorDomain: X,
|
|
716
|
+
colorLegendTitle: Y,
|
|
717
|
+
padding: P,
|
|
718
|
+
backgroundColor: p = !1,
|
|
719
|
+
topMargin: V = 25,
|
|
720
|
+
bottomMargin: u = 10,
|
|
721
|
+
leftMargin: E = 100,
|
|
722
|
+
rightMargin: W = 40,
|
|
723
|
+
showLabels: x = !0,
|
|
724
|
+
showTicks: B = !0,
|
|
725
|
+
relativeHeight: a,
|
|
726
|
+
tooltip: U,
|
|
727
|
+
onSeriesMouseOver: J,
|
|
728
|
+
refValues: G,
|
|
729
|
+
showColorScale: re,
|
|
730
|
+
graphID: K,
|
|
731
|
+
radius: A = 5,
|
|
732
|
+
maxRadiusValue: N,
|
|
733
|
+
maxValue: $,
|
|
734
|
+
minValue: y,
|
|
735
|
+
highlightedDataPoints: H = [],
|
|
736
|
+
onSeriesMouseClick: Q,
|
|
737
|
+
graphDownload: F = !1,
|
|
738
|
+
dataDownload: R = !1,
|
|
739
|
+
language: k = "en",
|
|
740
|
+
showNAColor: z = !0,
|
|
741
|
+
minHeight: j = 0,
|
|
742
|
+
theme: v = "light",
|
|
743
|
+
ariaLabel: S,
|
|
744
|
+
resetSelectionOnDoubleClick: I = !0,
|
|
745
|
+
detailsOnClick: _,
|
|
746
|
+
suffix: Z = "",
|
|
747
|
+
prefix: ee = "",
|
|
748
|
+
styles: m,
|
|
749
|
+
classNames: f,
|
|
750
|
+
noOfTicks: h,
|
|
751
|
+
dimmedOpacity: d = 0.3,
|
|
752
|
+
precision: q = 2,
|
|
753
|
+
customLayers: te = []
|
|
754
|
+
} = se, [O, M] = T(0), [l, s] = T(0), [L, t] = T(void 0), e = ae(null), g = ae(null);
|
|
755
|
+
return de(() => {
|
|
756
|
+
const o = new ResizeObserver((ne) => {
|
|
757
|
+
M(n || ne[0].target.clientWidth || 620), s(w || ne[0].target.clientHeight || 480);
|
|
758
|
+
});
|
|
759
|
+
return e.current && (s(e.current.clientHeight || 480), M(e.current.clientWidth || 620), n || o.observe(e.current)), () => o.disconnect();
|
|
760
|
+
}, [n, w]), /* @__PURE__ */ i.jsx(
|
|
761
|
+
"div",
|
|
762
|
+
{
|
|
763
|
+
className: `${v || "light"} flex ${n ? "w-fit grow-0" : "w-full grow"}`,
|
|
764
|
+
dir: k === "he" || k === "ar" ? "rtl" : void 0,
|
|
765
|
+
children: /* @__PURE__ */ i.jsx(
|
|
766
|
+
"div",
|
|
767
|
+
{
|
|
768
|
+
className: he(
|
|
769
|
+
`${p ? p === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${k || "en"}`,
|
|
770
|
+
f?.graphContainer
|
|
771
|
+
),
|
|
772
|
+
style: {
|
|
773
|
+
...m?.graphContainer || {},
|
|
774
|
+
...p && p !== !0 ? { backgroundColor: p } : {}
|
|
775
|
+
},
|
|
776
|
+
id: K,
|
|
777
|
+
ref: g,
|
|
778
|
+
"aria-label": S || `${c ? `The graph shows ${c}. ` : ""}This is a bee swarm chart showing the distribution along the y-axes. ${b ? ` ${b}` : ""}`,
|
|
779
|
+
children: /* @__PURE__ */ i.jsx(
|
|
780
|
+
"div",
|
|
781
|
+
{
|
|
782
|
+
className: "flex grow",
|
|
783
|
+
style: { padding: p ? P || "1rem" : P || 0 },
|
|
784
|
+
children: /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
785
|
+
c || b || F || R ? /* @__PURE__ */ i.jsx(
|
|
786
|
+
$e,
|
|
787
|
+
{
|
|
788
|
+
styles: {
|
|
789
|
+
title: m?.title,
|
|
790
|
+
description: m?.description
|
|
791
|
+
},
|
|
792
|
+
classNames: {
|
|
793
|
+
title: f?.title,
|
|
794
|
+
description: f?.description
|
|
795
|
+
},
|
|
796
|
+
graphTitle: c,
|
|
797
|
+
graphDescription: b,
|
|
798
|
+
width: n,
|
|
799
|
+
graphDownload: F ? g.current : void 0,
|
|
800
|
+
dataDownload: R ? r.map((o) => o.data).filter((o) => o !== void 0).length > 0 ? r.map((o) => o.data).filter((o) => o !== void 0) : r.filter((o) => o !== void 0) : null
|
|
801
|
+
}
|
|
802
|
+
) : null,
|
|
803
|
+
/* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: r.length === 0 ? /* @__PURE__ */ i.jsx(Le, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
804
|
+
re !== !1 && r.filter((o) => o.color).length !== 0 ? /* @__PURE__ */ i.jsx(
|
|
805
|
+
Se,
|
|
806
|
+
{
|
|
807
|
+
width: n,
|
|
808
|
+
colorLegendTitle: Y,
|
|
809
|
+
colors: C || le[v].categoricalColors.colors,
|
|
810
|
+
colorDomain: X || ce(
|
|
811
|
+
r.filter((o) => o.color),
|
|
812
|
+
"color"
|
|
813
|
+
).map((o) => o.color),
|
|
814
|
+
setSelectedColor: t,
|
|
815
|
+
showNAColor: z
|
|
816
|
+
}
|
|
817
|
+
) : null,
|
|
818
|
+
/* @__PURE__ */ i.jsx(
|
|
819
|
+
"div",
|
|
820
|
+
{
|
|
821
|
+
className: "flex flex-col grow justify-center w-full leading-0",
|
|
822
|
+
ref: e,
|
|
823
|
+
"aria-label": "Graph area",
|
|
824
|
+
children: (n || O) && (w || l) ? /* @__PURE__ */ i.jsx(
|
|
825
|
+
Re,
|
|
826
|
+
{
|
|
827
|
+
data: r,
|
|
828
|
+
circleColors: r.filter((o) => o.color).length === 0 ? C ? [C] : [le.primaryColors["blue-600"]] : C || le[v].categoricalColors.colors,
|
|
829
|
+
colorDomain: r.filter((o) => o.color).length === 0 ? [] : X || ce(
|
|
830
|
+
r.filter((o) => o.color),
|
|
831
|
+
"color"
|
|
832
|
+
).map((o) => o.color),
|
|
833
|
+
width: n || O,
|
|
834
|
+
selectedColor: L,
|
|
835
|
+
height: Math.max(
|
|
836
|
+
j,
|
|
837
|
+
w || (a ? j ? (n || O) * a > j ? (n || O) * a : j : (n || O) * a : l)
|
|
838
|
+
),
|
|
839
|
+
showTicks: B,
|
|
840
|
+
leftMargin: E,
|
|
841
|
+
rightMargin: W,
|
|
842
|
+
topMargin: V,
|
|
843
|
+
bottomMargin: u,
|
|
844
|
+
showLabels: x,
|
|
845
|
+
tooltip: U,
|
|
846
|
+
onSeriesMouseOver: J,
|
|
847
|
+
refValues: G,
|
|
848
|
+
startFromZero: !1,
|
|
849
|
+
radius: A,
|
|
850
|
+
maxRadiusValue: N,
|
|
851
|
+
maxValue: $,
|
|
852
|
+
minValue: y,
|
|
853
|
+
highlightedDataPoints: H,
|
|
854
|
+
onSeriesMouseClick: Q,
|
|
855
|
+
resetSelectionOnDoubleClick: I,
|
|
856
|
+
detailsOnClick: _,
|
|
857
|
+
styles: m,
|
|
858
|
+
classNames: f,
|
|
859
|
+
suffix: Z,
|
|
860
|
+
prefix: ee,
|
|
861
|
+
noOfTicks: h || 5,
|
|
862
|
+
dimmedOpacity: d,
|
|
863
|
+
precision: q,
|
|
864
|
+
customLayers: te
|
|
865
|
+
}
|
|
866
|
+
) : null
|
|
867
|
+
}
|
|
868
|
+
)
|
|
869
|
+
] }) }),
|
|
870
|
+
ie || oe ? /* @__PURE__ */ i.jsx(
|
|
871
|
+
Ne,
|
|
872
|
+
{
|
|
873
|
+
styles: { footnote: m?.footnote, source: m?.source },
|
|
874
|
+
classNames: {
|
|
875
|
+
footnote: f?.footnote,
|
|
876
|
+
source: f?.source
|
|
877
|
+
},
|
|
878
|
+
sources: ie,
|
|
879
|
+
footNote: oe,
|
|
880
|
+
width: n
|
|
881
|
+
}
|
|
882
|
+
) : null
|
|
883
|
+
] })
|
|
884
|
+
}
|
|
885
|
+
)
|
|
886
|
+
}
|
|
887
|
+
)
|
|
888
|
+
}
|
|
889
|
+
);
|
|
890
|
+
}
|
|
891
|
+
function ht(se) {
|
|
892
|
+
const {
|
|
893
|
+
data: r,
|
|
894
|
+
graphTitle: c,
|
|
895
|
+
backgroundColor: C,
|
|
896
|
+
topMargin: ie,
|
|
897
|
+
bottomMargin: b,
|
|
898
|
+
leftMargin: w,
|
|
899
|
+
rightMargin: n,
|
|
900
|
+
showLabels: oe,
|
|
901
|
+
showTicks: X,
|
|
902
|
+
colors: Y,
|
|
903
|
+
sources: P,
|
|
904
|
+
graphDescription: p,
|
|
905
|
+
height: V,
|
|
906
|
+
width: u,
|
|
907
|
+
footNote: E,
|
|
908
|
+
colorDomain: W,
|
|
909
|
+
colorLegendTitle: x,
|
|
910
|
+
padding: B,
|
|
911
|
+
relativeHeight: a,
|
|
912
|
+
tooltip: U,
|
|
913
|
+
onSeriesMouseOver: J,
|
|
914
|
+
refValues: G,
|
|
915
|
+
showColorScale: re,
|
|
916
|
+
graphID: K,
|
|
917
|
+
radius: A,
|
|
918
|
+
maxRadiusValue: N,
|
|
919
|
+
maxValue: $,
|
|
920
|
+
minValue: y,
|
|
921
|
+
highlightedDataPoints: H,
|
|
922
|
+
onSeriesMouseClick: Q,
|
|
923
|
+
graphDownload: F,
|
|
924
|
+
dataDownload: R,
|
|
925
|
+
language: k,
|
|
926
|
+
showNAColor: z,
|
|
927
|
+
minHeight: j,
|
|
928
|
+
theme: v,
|
|
929
|
+
ariaLabel: S,
|
|
930
|
+
resetSelectionOnDoubleClick: I,
|
|
931
|
+
detailsOnClick: _,
|
|
932
|
+
noOfTicks: Z,
|
|
933
|
+
orientation: ee = "vertical",
|
|
934
|
+
styles: m,
|
|
935
|
+
classNames: f,
|
|
936
|
+
dimmedOpacity: h,
|
|
937
|
+
precision: d,
|
|
938
|
+
customLayers: q
|
|
939
|
+
} = se;
|
|
940
|
+
return ee === "vertical" ? /* @__PURE__ */ i.jsx(
|
|
941
|
+
Xe,
|
|
942
|
+
{
|
|
943
|
+
data: r,
|
|
944
|
+
graphTitle: c,
|
|
945
|
+
backgroundColor: C,
|
|
946
|
+
topMargin: ie,
|
|
947
|
+
bottomMargin: b,
|
|
948
|
+
leftMargin: w,
|
|
949
|
+
rightMargin: n,
|
|
950
|
+
showLabels: oe,
|
|
951
|
+
showTicks: X,
|
|
952
|
+
colors: Y,
|
|
953
|
+
sources: P,
|
|
954
|
+
graphDescription: p,
|
|
955
|
+
height: V,
|
|
956
|
+
width: u,
|
|
957
|
+
footNote: E,
|
|
958
|
+
colorDomain: W,
|
|
959
|
+
colorLegendTitle: x,
|
|
960
|
+
padding: B,
|
|
961
|
+
relativeHeight: a,
|
|
962
|
+
tooltip: U,
|
|
963
|
+
onSeriesMouseOver: J,
|
|
964
|
+
refValues: G,
|
|
965
|
+
showColorScale: re,
|
|
966
|
+
graphID: K,
|
|
967
|
+
radius: A,
|
|
968
|
+
maxRadiusValue: N,
|
|
969
|
+
maxValue: $,
|
|
970
|
+
minValue: y,
|
|
971
|
+
highlightedDataPoints: H,
|
|
972
|
+
onSeriesMouseClick: Q,
|
|
973
|
+
graphDownload: F,
|
|
974
|
+
dataDownload: R,
|
|
975
|
+
language: k,
|
|
976
|
+
showNAColor: z,
|
|
977
|
+
minHeight: j,
|
|
978
|
+
theme: v,
|
|
979
|
+
ariaLabel: S,
|
|
980
|
+
resetSelectionOnDoubleClick: I,
|
|
981
|
+
styles: m,
|
|
982
|
+
detailsOnClick: _,
|
|
983
|
+
classNames: f,
|
|
984
|
+
noOfTicks: Z,
|
|
985
|
+
dimmedOpacity: h,
|
|
986
|
+
precision: d,
|
|
987
|
+
customLayers: q
|
|
988
|
+
}
|
|
989
|
+
) : /* @__PURE__ */ i.jsx(
|
|
990
|
+
Pe,
|
|
991
|
+
{
|
|
992
|
+
data: r,
|
|
993
|
+
graphTitle: c,
|
|
994
|
+
backgroundColor: C,
|
|
995
|
+
topMargin: ie,
|
|
996
|
+
bottomMargin: b,
|
|
997
|
+
leftMargin: w,
|
|
998
|
+
rightMargin: n,
|
|
999
|
+
showLabels: oe,
|
|
1000
|
+
showTicks: X,
|
|
1001
|
+
colors: Y,
|
|
1002
|
+
sources: P,
|
|
1003
|
+
graphDescription: p,
|
|
1004
|
+
height: V,
|
|
1005
|
+
width: u,
|
|
1006
|
+
footNote: E,
|
|
1007
|
+
colorDomain: W,
|
|
1008
|
+
colorLegendTitle: x,
|
|
1009
|
+
padding: B,
|
|
1010
|
+
relativeHeight: a,
|
|
1011
|
+
tooltip: U,
|
|
1012
|
+
onSeriesMouseOver: J,
|
|
1013
|
+
refValues: G,
|
|
1014
|
+
showColorScale: re,
|
|
1015
|
+
graphID: K,
|
|
1016
|
+
radius: A,
|
|
1017
|
+
maxRadiusValue: N,
|
|
1018
|
+
maxValue: $,
|
|
1019
|
+
minValue: y,
|
|
1020
|
+
highlightedDataPoints: H,
|
|
1021
|
+
onSeriesMouseClick: Q,
|
|
1022
|
+
graphDownload: F,
|
|
1023
|
+
dataDownload: R,
|
|
1024
|
+
language: k,
|
|
1025
|
+
showNAColor: z,
|
|
1026
|
+
minHeight: j,
|
|
1027
|
+
theme: v,
|
|
1028
|
+
ariaLabel: S,
|
|
1029
|
+
resetSelectionOnDoubleClick: I,
|
|
1030
|
+
styles: m,
|
|
1031
|
+
detailsOnClick: _,
|
|
1032
|
+
classNames: f,
|
|
1033
|
+
noOfTicks: Z,
|
|
1034
|
+
dimmedOpacity: h,
|
|
1035
|
+
precision: d,
|
|
1036
|
+
customLayers: q
|
|
1037
|
+
}
|
|
1038
|
+
);
|
|
1039
|
+
}
|
|
1040
|
+
export {
|
|
1041
|
+
ht as BeeSwarmChart
|
|
1042
|
+
};
|
|
2
1043
|
//# sourceMappingURL=BeeSwarmChart.js.map
|