@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/StripChart.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { j as l, m as ni } from "./index-CHPV5EwG-
|
|
2
|
-
import { useRef as si, useState as E, useEffect as
|
|
1
|
+
import { j as l, m as ni } from "./index-CHPV5EwG-DBWUSD9b.js";
|
|
2
|
+
import { useRef as si, useState as E, useEffect as ui } from "react";
|
|
3
3
|
import { i as pi } from "./index-Bwrro8-q.js";
|
|
4
|
-
import {
|
|
4
|
+
import { G as mi } from "./Modal-Cg8daIlV.js";
|
|
5
5
|
import { o as xi } from "./index-DvVprvy6.js";
|
|
6
|
-
import { T as yi } from "./Tooltip-
|
|
6
|
+
import { T as yi } from "./Tooltip-6LIdPQGC.js";
|
|
7
7
|
import { c as J } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
8
|
import { n as gi } from "./numberFormattingFunction-14YCbkN2.js";
|
|
9
|
-
import { Colors as
|
|
9
|
+
import { Colors as h } from "./Colors.js";
|
|
10
10
|
import { s as vi } from "./string2HTML-oFCROsus.js";
|
|
11
11
|
import { a as wi } from "./linear-DUdu7l2G.js";
|
|
12
|
-
import { u as Oi } from "./use-in-view-
|
|
13
|
-
import { m as ai } from "./proxy-
|
|
14
|
-
import { A as bi } from "./index-
|
|
12
|
+
import { u as Oi } from "./use-in-view-DR-UTB96.js";
|
|
13
|
+
import { m as ai } from "./proxy-BYIC9BuT.js";
|
|
14
|
+
import { A as bi } from "./index-Cwgh7i7X.js";
|
|
15
15
|
import { GraphFooter as Ci } from "./GraphFooter.js";
|
|
16
16
|
import { GraphHeader as ji } from "./GraphHeader.js";
|
|
17
17
|
import { ColorLegendWithMouseOver as Mi } from "./ColorLegendWithMouseOver.js";
|
|
18
|
-
import { E as Di } from "./EmptyState-
|
|
19
|
-
import { u as
|
|
20
|
-
function Ni(P,
|
|
18
|
+
import { E as Di } from "./EmptyState-36lXXyui.js";
|
|
19
|
+
import { u as fi } from "./uniqBy-BHy4I8PK.js";
|
|
20
|
+
function Ni(P, o) {
|
|
21
21
|
if (P < 2) return [];
|
|
22
|
-
const
|
|
23
|
-
return Array.from({ length: P }, (
|
|
22
|
+
const f = o / (P - 1);
|
|
23
|
+
return Array.from({ length: P }, (m, e) => e * f);
|
|
24
24
|
}
|
|
25
25
|
function Vi(P) {
|
|
26
26
|
const {
|
|
27
|
-
data:
|
|
28
|
-
width:
|
|
29
|
-
height:
|
|
30
|
-
colors:
|
|
31
|
-
colorDomain:
|
|
32
|
-
radius:
|
|
27
|
+
data: o,
|
|
28
|
+
width: f,
|
|
29
|
+
height: m,
|
|
30
|
+
colors: e,
|
|
31
|
+
colorDomain: a,
|
|
32
|
+
radius: c,
|
|
33
33
|
leftMargin: s,
|
|
34
34
|
rightMargin: X,
|
|
35
35
|
topMargin: Y,
|
|
36
36
|
bottomMargin: ii,
|
|
37
37
|
tooltip: F,
|
|
38
|
-
onSeriesMouseOver:
|
|
38
|
+
onSeriesMouseOver: S,
|
|
39
39
|
highlightedDataPoints: r,
|
|
40
|
-
selectedColor:
|
|
41
|
-
minValue:
|
|
40
|
+
selectedColor: G,
|
|
41
|
+
minValue: R,
|
|
42
42
|
maxValue: _,
|
|
43
|
-
onSeriesMouseClick:
|
|
43
|
+
onSeriesMouseClick: $,
|
|
44
44
|
prefix: K,
|
|
45
45
|
suffix: b,
|
|
46
46
|
stripType: Q,
|
|
47
|
-
highlightColor:
|
|
48
|
-
dotOpacity:
|
|
47
|
+
highlightColor: x,
|
|
48
|
+
dotOpacity: y,
|
|
49
49
|
resetSelectionOnDoubleClick: ti,
|
|
50
50
|
detailsOnClick: N,
|
|
51
51
|
styles: j,
|
|
52
|
-
classNames:
|
|
53
|
-
valueColor:
|
|
54
|
-
animate:
|
|
52
|
+
classNames: I,
|
|
53
|
+
valueColor: V,
|
|
54
|
+
animate: d,
|
|
55
55
|
noOfTicks: w,
|
|
56
56
|
dimmedOpacity: T,
|
|
57
57
|
precision: B,
|
|
58
58
|
customLayers: M
|
|
59
59
|
} = P, q = si(null), D = Oi(q, {
|
|
60
|
-
once:
|
|
61
|
-
amount:
|
|
62
|
-
}), [H,
|
|
60
|
+
once: d.once,
|
|
61
|
+
amount: d.amount
|
|
62
|
+
}), [H, v] = E(void 0), [u, A] = E(void 0), [U, L] = E(void 0), [p, g] = E(void 0), O = {
|
|
63
63
|
top: Y,
|
|
64
64
|
bottom: ii,
|
|
65
65
|
left: s,
|
|
66
66
|
right: X
|
|
67
|
-
},
|
|
68
|
-
|
|
67
|
+
}, k = f - O.left - O.right, W = m - O.top - O.bottom, oi = o.map((i, t) => ({ ...i, id: `${t}` })), ei = xi(
|
|
68
|
+
oi,
|
|
69
69
|
[
|
|
70
70
|
(i) => {
|
|
71
71
|
const t = (r || []).indexOf(i.label);
|
|
@@ -73,20 +73,20 @@ function Vi(P) {
|
|
|
73
73
|
}
|
|
74
74
|
],
|
|
75
75
|
["desc"]
|
|
76
|
-
), li = J(_) ? Math.max(...
|
|
76
|
+
), li = J(_) ? Math.max(...o.filter((i) => !J(i.position)).map((i) => i.position)) < 0 ? 0 : Math.max(...o.filter((i) => !J(i.position)).map((i) => i.position)) : _, C = J(R) ? Math.min(...o.filter((i) => !J(i.position)).map((i) => i.position)) >= 0 ? 0 : Math.min(...o.filter((i) => !J(i.position)).map((i) => i.position)) : R, z = wi().domain([C, li]).range([0, k]).nice(), ri = Ni(w, k);
|
|
77
77
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
78
78
|
/* @__PURE__ */ l.jsx(
|
|
79
79
|
ai.svg,
|
|
80
80
|
{
|
|
81
|
-
width: `${
|
|
82
|
-
height: `${
|
|
83
|
-
viewBox: `0 0 ${
|
|
81
|
+
width: `${f}px`,
|
|
82
|
+
height: `${m}px`,
|
|
83
|
+
viewBox: `0 0 ${f} ${m}`,
|
|
84
84
|
direction: "ltr",
|
|
85
85
|
ref: q,
|
|
86
86
|
children: /* @__PURE__ */ l.jsxs("g", { transform: `translate(${O.left},${O.top})`, children: [
|
|
87
87
|
M.filter((i) => i.position === "before").map((i) => i.layer),
|
|
88
88
|
/* @__PURE__ */ l.jsxs(bi, { children: [
|
|
89
|
-
|
|
89
|
+
ei.map((i) => /* @__PURE__ */ l.jsxs(
|
|
90
90
|
ai.g,
|
|
91
91
|
{
|
|
92
92
|
className: "undp-viz-g-with-hover",
|
|
@@ -99,24 +99,24 @@ function Vi(P) {
|
|
|
99
99
|
whileInView: {
|
|
100
100
|
x: z(i.position),
|
|
101
101
|
y: W / 2,
|
|
102
|
-
opacity:
|
|
103
|
-
transition: { duration:
|
|
102
|
+
opacity: G ? i.color && e[a.indexOf(i.color)] === G ? 0.95 : T : r.length !== 0 ? r.indexOf(i.label) !== -1 ? 0.95 : T : y,
|
|
103
|
+
transition: { duration: d.duration }
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
initial: "initial",
|
|
107
107
|
animate: D ? "whileInView" : "initial",
|
|
108
|
-
exit: { opacity: 0, transition: { duration:
|
|
108
|
+
exit: { opacity: 0, transition: { duration: d.duration } },
|
|
109
109
|
onMouseEnter: (t) => {
|
|
110
|
-
|
|
110
|
+
v(i), g(t.clientY), L(t.clientX), S?.(i);
|
|
111
111
|
},
|
|
112
112
|
onClick: () => {
|
|
113
|
-
(
|
|
113
|
+
($ || N) && (pi(u, i) && ti ? (A(void 0), $?.(void 0)) : (A(i), $?.(i)));
|
|
114
114
|
},
|
|
115
115
|
onMouseMove: (t) => {
|
|
116
|
-
|
|
116
|
+
v(i), g(t.clientY), L(t.clientX);
|
|
117
117
|
},
|
|
118
118
|
onMouseLeave: () => {
|
|
119
|
-
|
|
119
|
+
v(void 0), L(void 0), g(void 0), S?.(void 0);
|
|
120
120
|
},
|
|
121
121
|
children: [
|
|
122
122
|
Q === "dot" ? /* @__PURE__ */ l.jsx(
|
|
@@ -126,62 +126,68 @@ function Vi(P) {
|
|
|
126
126
|
cx: 0,
|
|
127
127
|
variants: {
|
|
128
128
|
initial: {
|
|
129
|
-
fill:
|
|
129
|
+
fill: x && r ? r.indexOf(i.label) !== -1 ? x : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray
|
|
130
130
|
},
|
|
131
131
|
whileInView: {
|
|
132
|
-
fill:
|
|
133
|
-
transition: { duration:
|
|
132
|
+
fill: x && r ? r.indexOf(i.label) !== -1 ? x : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray,
|
|
133
|
+
transition: { duration: d.duration }
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
initial: "initial",
|
|
137
137
|
animate: D ? "whileInView" : "initial",
|
|
138
|
-
exit: { opacity: 0, transition: { duration:
|
|
139
|
-
r:
|
|
138
|
+
exit: { opacity: 0, transition: { duration: d.duration } },
|
|
139
|
+
r: c
|
|
140
140
|
}
|
|
141
141
|
) : /* @__PURE__ */ l.jsx(
|
|
142
142
|
ai.rect,
|
|
143
143
|
{
|
|
144
|
-
y: 0 - h,
|
|
145
144
|
x: -1,
|
|
146
|
-
height: h * 2,
|
|
147
145
|
width: 2,
|
|
148
146
|
variants: {
|
|
149
147
|
initial: {
|
|
150
|
-
|
|
148
|
+
y: 0 - c,
|
|
149
|
+
height: c * 2,
|
|
150
|
+
fill: x && r ? r.indexOf(i.label) !== -1 ? x : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray
|
|
151
151
|
},
|
|
152
152
|
whileInView: {
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
y: 0 - c,
|
|
154
|
+
height: c * 2,
|
|
155
|
+
fill: x && r ? r.indexOf(i.label) !== -1 ? x : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray,
|
|
156
|
+
transition: { duration: d.duration }
|
|
155
157
|
}
|
|
156
158
|
},
|
|
157
159
|
initial: "initial",
|
|
158
160
|
animate: D ? "whileInView" : "initial",
|
|
159
|
-
exit: { opacity: 0, transition: { duration:
|
|
161
|
+
exit: { opacity: 0, transition: { duration: d.duration } }
|
|
160
162
|
}
|
|
161
163
|
),
|
|
162
164
|
r.length !== 0 && r.indexOf(i.label) !== -1 ? /* @__PURE__ */ l.jsx(
|
|
163
165
|
ai.text,
|
|
164
166
|
{
|
|
165
167
|
x: 0,
|
|
166
|
-
y: 0 - h - 5,
|
|
167
168
|
variants: {
|
|
168
|
-
initial: {
|
|
169
|
+
initial: {
|
|
170
|
+
opacity: 0,
|
|
171
|
+
y: 0 - c - 5,
|
|
172
|
+
fill: V || (x && r ? r.indexOf(i.label) !== -1 ? x : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray)
|
|
173
|
+
},
|
|
169
174
|
whileInView: {
|
|
170
175
|
opacity: 1,
|
|
171
|
-
|
|
176
|
+
y: 0 - c - 5,
|
|
177
|
+
fill: V || (x && r ? r.indexOf(i.label) !== -1 ? x : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray),
|
|
178
|
+
transition: { duration: d.duration }
|
|
172
179
|
}
|
|
173
180
|
},
|
|
174
181
|
initial: "initial",
|
|
175
182
|
animate: D ? "whileInView" : "initial",
|
|
176
|
-
exit: { opacity: 0, transition: { duration:
|
|
183
|
+
exit: { opacity: 0, transition: { duration: d.duration } },
|
|
177
184
|
style: {
|
|
178
|
-
fill: I || (y && r ? r.indexOf(i.label) !== -1 ? y : e.filter((t) => t.color).length === 0 ? o[0] : i.color ? o[n.indexOf(i.color)] : c.gray : e.filter((t) => t.color).length === 0 ? o[0] : i.color ? o[n.indexOf(i.color)] : c.gray),
|
|
179
185
|
textAnchor: "middle",
|
|
180
186
|
...j?.graphObjectValues || {}
|
|
181
187
|
},
|
|
182
188
|
className: ni(
|
|
183
189
|
"graph-value text-sm font-bold",
|
|
184
|
-
|
|
190
|
+
I?.graphObjectValues
|
|
185
191
|
),
|
|
186
192
|
children: gi(i.position, "NA", B, K, b)
|
|
187
193
|
}
|
|
@@ -194,14 +200,14 @@ function Vi(P) {
|
|
|
194
200
|
"text",
|
|
195
201
|
{
|
|
196
202
|
x: i,
|
|
197
|
-
y: W / 2 +
|
|
203
|
+
y: W / 2 + c,
|
|
198
204
|
style: {
|
|
199
205
|
textAnchor: t === 0 ? "start" : t === ri.length - 1 ? "end" : "middle",
|
|
200
206
|
...j?.xAxis?.labels || {}
|
|
201
207
|
},
|
|
202
208
|
className: ni(
|
|
203
209
|
"fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",
|
|
204
|
-
|
|
210
|
+
I?.xAxis?.labels
|
|
205
211
|
),
|
|
206
212
|
dy: "1em",
|
|
207
213
|
children: gi(z.invert(i), "NA", B, K, b)
|
|
@@ -213,15 +219,15 @@ function Vi(P) {
|
|
|
213
219
|
] })
|
|
214
220
|
}
|
|
215
221
|
),
|
|
216
|
-
H && F && U &&
|
|
222
|
+
H && F && U && p ? /* @__PURE__ */ l.jsx(
|
|
217
223
|
yi,
|
|
218
224
|
{
|
|
219
225
|
data: H,
|
|
220
226
|
body: F,
|
|
221
227
|
xPos: U,
|
|
222
|
-
yPos:
|
|
228
|
+
yPos: p,
|
|
223
229
|
backgroundStyle: j?.tooltip,
|
|
224
|
-
className:
|
|
230
|
+
className: I?.tooltip
|
|
225
231
|
}
|
|
226
232
|
) : null,
|
|
227
233
|
N && u !== void 0 ? /* @__PURE__ */ l.jsx(
|
|
@@ -245,34 +251,34 @@ function Vi(P) {
|
|
|
245
251
|
}
|
|
246
252
|
function ki(P) {
|
|
247
253
|
const {
|
|
248
|
-
data:
|
|
249
|
-
graphTitle:
|
|
250
|
-
colors:
|
|
251
|
-
sources:
|
|
252
|
-
graphDescription:
|
|
253
|
-
height:
|
|
254
|
+
data: o,
|
|
255
|
+
graphTitle: f,
|
|
256
|
+
colors: m,
|
|
257
|
+
sources: e,
|
|
258
|
+
graphDescription: a,
|
|
259
|
+
height: c,
|
|
254
260
|
width: s,
|
|
255
261
|
footNote: X,
|
|
256
262
|
colorDomain: Y,
|
|
257
263
|
colorLegendTitle: ii,
|
|
258
264
|
radius: F = 5,
|
|
259
|
-
padding:
|
|
265
|
+
padding: S,
|
|
260
266
|
backgroundColor: r = !1,
|
|
261
|
-
leftMargin:
|
|
262
|
-
rightMargin:
|
|
267
|
+
leftMargin: G = 5,
|
|
268
|
+
rightMargin: R = 5,
|
|
263
269
|
topMargin: _ = 10,
|
|
264
|
-
bottomMargin:
|
|
270
|
+
bottomMargin: $ = 10,
|
|
265
271
|
tooltip: K,
|
|
266
272
|
relativeHeight: b,
|
|
267
273
|
onSeriesMouseOver: Q,
|
|
268
|
-
showColorScale:
|
|
269
|
-
highlightedDataPoints:
|
|
274
|
+
showColorScale: x = !0,
|
|
275
|
+
highlightedDataPoints: y = [],
|
|
270
276
|
graphID: ti,
|
|
271
277
|
minValue: N,
|
|
272
278
|
maxValue: j,
|
|
273
|
-
onSeriesMouseClick:
|
|
274
|
-
graphDownload:
|
|
275
|
-
dataDownload:
|
|
279
|
+
onSeriesMouseClick: I,
|
|
280
|
+
graphDownload: V = !1,
|
|
281
|
+
dataDownload: d = !1,
|
|
276
282
|
prefix: w = "",
|
|
277
283
|
suffix: T = "",
|
|
278
284
|
stripType: B = "dot",
|
|
@@ -280,26 +286,26 @@ function ki(P) {
|
|
|
280
286
|
highlightColor: q,
|
|
281
287
|
dotOpacity: D = 0.3,
|
|
282
288
|
showNAColor: H = !0,
|
|
283
|
-
minHeight:
|
|
289
|
+
minHeight: v = 0,
|
|
284
290
|
theme: u = "light",
|
|
285
291
|
ariaLabel: A,
|
|
286
292
|
resetSelectionOnDoubleClick: U = !0,
|
|
287
293
|
detailsOnClick: L,
|
|
288
|
-
styles:
|
|
294
|
+
styles: p,
|
|
289
295
|
classNames: g,
|
|
290
296
|
valueColor: O,
|
|
291
|
-
animate:
|
|
297
|
+
animate: k = !1,
|
|
292
298
|
noOfTicks: W = 2,
|
|
293
|
-
dimmedOpacity:
|
|
294
|
-
precision:
|
|
299
|
+
dimmedOpacity: oi = 0.3,
|
|
300
|
+
precision: ei = 2,
|
|
295
301
|
customLayers: li = []
|
|
296
|
-
} = P, [C, z] = E(0), [ri, i] = E(0), [t,
|
|
297
|
-
return
|
|
298
|
-
const
|
|
299
|
-
z(s || hi[0].target.clientWidth || 620), i(
|
|
302
|
+
} = P, [C, z] = E(0), [ri, i] = E(0), [t, di] = E(void 0), Z = si(null), ci = si(null);
|
|
303
|
+
return ui(() => {
|
|
304
|
+
const n = new ResizeObserver((hi) => {
|
|
305
|
+
z(s || hi[0].target.clientWidth || 620), i(c || hi[0].target.clientHeight || 480);
|
|
300
306
|
});
|
|
301
|
-
return Z.current && (i(Z.current.clientHeight || 480), z(Z.current.clientWidth || 620), s ||
|
|
302
|
-
}, [s,
|
|
307
|
+
return Z.current && (i(Z.current.clientHeight || 480), z(Z.current.clientWidth || 620), s || n.observe(Z.current)), () => n.disconnect();
|
|
308
|
+
}, [s, c]), /* @__PURE__ */ l.jsx(
|
|
303
309
|
"div",
|
|
304
310
|
{
|
|
305
311
|
className: `${u || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
|
|
@@ -313,45 +319,45 @@ function ki(P) {
|
|
|
313
319
|
g?.graphContainer
|
|
314
320
|
),
|
|
315
321
|
style: {
|
|
316
|
-
...
|
|
322
|
+
...p?.graphContainer || {},
|
|
317
323
|
...r && r !== !0 ? { backgroundColor: r } : {}
|
|
318
324
|
},
|
|
319
325
|
id: ti,
|
|
320
326
|
ref: ci,
|
|
321
|
-
"aria-label": A || `${
|
|
327
|
+
"aria-label": A || `${f ? `The graph shows ${f}. ` : ""}This is a strip chart showing distribution of data along the horizontal axis. Each dot represents an individual data point, helping to visualize the spread and clustering of values.${a ? ` ${a}` : ""}`,
|
|
322
328
|
children: /* @__PURE__ */ l.jsx(
|
|
323
329
|
"div",
|
|
324
330
|
{
|
|
325
331
|
className: "flex grow",
|
|
326
|
-
style: { padding: r ?
|
|
332
|
+
style: { padding: r ? S || "1rem" : S || 0 },
|
|
327
333
|
children: /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
328
|
-
|
|
334
|
+
f || a || V || d ? /* @__PURE__ */ l.jsx(
|
|
329
335
|
ji,
|
|
330
336
|
{
|
|
331
337
|
styles: {
|
|
332
|
-
title:
|
|
333
|
-
description:
|
|
338
|
+
title: p?.title,
|
|
339
|
+
description: p?.description
|
|
334
340
|
},
|
|
335
341
|
classNames: {
|
|
336
342
|
title: g?.title,
|
|
337
343
|
description: g?.description
|
|
338
344
|
},
|
|
339
|
-
graphTitle:
|
|
340
|
-
graphDescription:
|
|
345
|
+
graphTitle: f,
|
|
346
|
+
graphDescription: a,
|
|
341
347
|
width: s,
|
|
342
|
-
graphDownload:
|
|
343
|
-
dataDownload:
|
|
348
|
+
graphDownload: V ? ci.current : void 0,
|
|
349
|
+
dataDownload: d ? o.map((n) => n.data).filter((n) => n !== void 0).length > 0 ? o.map((n) => n.data).filter((n) => n !== void 0) : o.filter((n) => n !== void 0) : null
|
|
344
350
|
}
|
|
345
351
|
) : null,
|
|
346
|
-
/* @__PURE__ */ l.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children:
|
|
347
|
-
|
|
352
|
+
/* @__PURE__ */ l.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: o.length === 0 ? /* @__PURE__ */ l.jsx(Di, {}) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
353
|
+
x !== !1 && o.filter((n) => n.color).length !== 0 ? /* @__PURE__ */ l.jsx(
|
|
348
354
|
Mi,
|
|
349
355
|
{
|
|
350
356
|
width: s,
|
|
351
357
|
colorLegendTitle: ii,
|
|
352
|
-
colors:
|
|
353
|
-
colorDomain: Y ||
|
|
354
|
-
setSelectedColor:
|
|
358
|
+
colors: m || h[u].categoricalColors.colors,
|
|
359
|
+
colorDomain: Y || fi(o, "color", !0),
|
|
360
|
+
setSelectedColor: di,
|
|
355
361
|
showNAColor: H ?? !0
|
|
356
362
|
}
|
|
357
363
|
) : null,
|
|
@@ -361,29 +367,29 @@ function ki(P) {
|
|
|
361
367
|
className: "flex flex-col grow justify-center w-full leading-0",
|
|
362
368
|
ref: Z,
|
|
363
369
|
"aria-label": "Graph area",
|
|
364
|
-
children: (s || C) && (
|
|
370
|
+
children: (s || C) && (c || ri) ? /* @__PURE__ */ l.jsx(
|
|
365
371
|
Vi,
|
|
366
372
|
{
|
|
367
|
-
data:
|
|
373
|
+
data: o,
|
|
368
374
|
width: s || C,
|
|
369
375
|
height: Math.max(
|
|
370
|
-
|
|
371
|
-
|
|
376
|
+
v,
|
|
377
|
+
c || (b ? v ? (s || C) * b > v ? (s || C) * b : v : (s || C) * b : ri)
|
|
372
378
|
),
|
|
373
|
-
colorDomain:
|
|
374
|
-
colors:
|
|
379
|
+
colorDomain: o.filter((n) => n.color).length === 0 ? [] : Y || fi(o, "color", !0),
|
|
380
|
+
colors: o.filter((n) => n.color).length === 0 ? m ? [m] : [h.primaryColors["blue-600"]] : m || h[u].categoricalColors.colors,
|
|
375
381
|
selectedColor: t,
|
|
376
382
|
radius: F,
|
|
377
|
-
leftMargin:
|
|
378
|
-
rightMargin:
|
|
383
|
+
leftMargin: G,
|
|
384
|
+
rightMargin: R,
|
|
379
385
|
topMargin: _,
|
|
380
|
-
bottomMargin:
|
|
386
|
+
bottomMargin: $,
|
|
381
387
|
tooltip: K,
|
|
382
388
|
onSeriesMouseOver: Q,
|
|
383
|
-
highlightedDataPoints:
|
|
389
|
+
highlightedDataPoints: y,
|
|
384
390
|
minValue: N,
|
|
385
391
|
maxValue: j,
|
|
386
|
-
onSeriesMouseClick:
|
|
392
|
+
onSeriesMouseClick: I,
|
|
387
393
|
prefix: w,
|
|
388
394
|
suffix: T,
|
|
389
395
|
stripType: B,
|
|
@@ -391,28 +397,28 @@ function ki(P) {
|
|
|
391
397
|
dotOpacity: D,
|
|
392
398
|
resetSelectionOnDoubleClick: U,
|
|
393
399
|
detailsOnClick: L,
|
|
394
|
-
styles:
|
|
400
|
+
styles: p,
|
|
395
401
|
classNames: g,
|
|
396
402
|
valueColor: O,
|
|
397
|
-
animate:
|
|
403
|
+
animate: k === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : k || { duration: 0, once: !0, amount: 0 },
|
|
398
404
|
noOfTicks: W,
|
|
399
|
-
dimmedOpacity:
|
|
400
|
-
precision:
|
|
405
|
+
dimmedOpacity: oi,
|
|
406
|
+
precision: ei,
|
|
401
407
|
customLayers: li
|
|
402
408
|
}
|
|
403
409
|
) : null
|
|
404
410
|
}
|
|
405
411
|
)
|
|
406
412
|
] }) }),
|
|
407
|
-
|
|
413
|
+
e || X ? /* @__PURE__ */ l.jsx(
|
|
408
414
|
Ci,
|
|
409
415
|
{
|
|
410
|
-
styles: { footnote:
|
|
416
|
+
styles: { footnote: p?.footnote, source: p?.source },
|
|
411
417
|
classNames: {
|
|
412
418
|
footnote: g?.footnote,
|
|
413
419
|
source: g?.source
|
|
414
420
|
},
|
|
415
|
-
sources:
|
|
421
|
+
sources: e,
|
|
416
422
|
footNote: X,
|
|
417
423
|
width: s
|
|
418
424
|
}
|
|
@@ -427,34 +433,34 @@ function ki(P) {
|
|
|
427
433
|
}
|
|
428
434
|
function Si(P) {
|
|
429
435
|
const {
|
|
430
|
-
data:
|
|
431
|
-
width:
|
|
432
|
-
height:
|
|
433
|
-
colors:
|
|
434
|
-
colorDomain:
|
|
435
|
-
radius:
|
|
436
|
+
data: o,
|
|
437
|
+
width: f,
|
|
438
|
+
height: m,
|
|
439
|
+
colors: e,
|
|
440
|
+
colorDomain: a,
|
|
441
|
+
radius: c,
|
|
436
442
|
leftMargin: s,
|
|
437
443
|
rightMargin: X,
|
|
438
444
|
topMargin: Y,
|
|
439
445
|
bottomMargin: ii,
|
|
440
446
|
tooltip: F,
|
|
441
|
-
onSeriesMouseOver:
|
|
447
|
+
onSeriesMouseOver: S,
|
|
442
448
|
highlightedDataPoints: r,
|
|
443
|
-
selectedColor:
|
|
444
|
-
minValue:
|
|
449
|
+
selectedColor: G,
|
|
450
|
+
minValue: R,
|
|
445
451
|
maxValue: _,
|
|
446
|
-
onSeriesMouseClick:
|
|
452
|
+
onSeriesMouseClick: $,
|
|
447
453
|
noOfTicks: K,
|
|
448
454
|
prefix: b,
|
|
449
455
|
suffix: Q,
|
|
450
|
-
stripType:
|
|
451
|
-
highlightColor:
|
|
456
|
+
stripType: x,
|
|
457
|
+
highlightColor: y,
|
|
452
458
|
dotOpacity: ti,
|
|
453
459
|
resetSelectionOnDoubleClick: N,
|
|
454
460
|
detailsOnClick: j,
|
|
455
|
-
styles:
|
|
456
|
-
classNames:
|
|
457
|
-
valueColor:
|
|
461
|
+
styles: I,
|
|
462
|
+
classNames: V,
|
|
463
|
+
valueColor: d,
|
|
458
464
|
animate: w,
|
|
459
465
|
dimmedOpacity: T,
|
|
460
466
|
precision: B,
|
|
@@ -462,13 +468,13 @@ function Si(P) {
|
|
|
462
468
|
} = P, q = si(null), D = Oi(q, {
|
|
463
469
|
once: w.once,
|
|
464
470
|
amount: w.amount
|
|
465
|
-
}), [H,
|
|
471
|
+
}), [H, v] = E(void 0), [u, A] = E(void 0), [U, L] = E(void 0), [p, g] = E(void 0), O = {
|
|
466
472
|
top: Y,
|
|
467
473
|
bottom: ii,
|
|
468
474
|
left: s,
|
|
469
475
|
right: X
|
|
470
|
-
},
|
|
471
|
-
|
|
476
|
+
}, k = f - O.left - O.right, W = m - O.top - O.bottom, oi = o.map((i, t) => ({ ...i, id: `${t}` })), ei = xi(
|
|
477
|
+
oi,
|
|
472
478
|
[
|
|
473
479
|
(i) => {
|
|
474
480
|
const t = (r || []).indexOf(i.label);
|
|
@@ -476,33 +482,33 @@ function Si(P) {
|
|
|
476
482
|
}
|
|
477
483
|
],
|
|
478
484
|
["desc"]
|
|
479
|
-
), li = J(_) ? Math.max(...
|
|
485
|
+
), li = J(_) ? Math.max(...o.filter((i) => !J(i.position)).map((i) => i.position)) < 0 ? 0 : Math.max(...o.filter((i) => !J(i.position)).map((i) => i.position)) : _, C = J(R) ? Math.min(...o.filter((i) => !J(i.position)).map((i) => i.position)) >= 0 ? 0 : Math.min(...o.filter((i) => !J(i.position)).map((i) => i.position)) : R, z = wi().domain([C, li]).range([W, 0]).nice(), ri = Ni(K, W);
|
|
480
486
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
481
487
|
/* @__PURE__ */ l.jsx(
|
|
482
488
|
ai.svg,
|
|
483
489
|
{
|
|
484
|
-
width: `${
|
|
485
|
-
height: `${
|
|
486
|
-
viewBox: `0 0 ${
|
|
490
|
+
width: `${f}px`,
|
|
491
|
+
height: `${m}px`,
|
|
492
|
+
viewBox: `0 0 ${f} ${m}`,
|
|
487
493
|
direction: "ltr",
|
|
488
494
|
ref: q,
|
|
489
495
|
children: /* @__PURE__ */ l.jsxs("g", { transform: `translate(${O.left},${O.top})`, children: [
|
|
490
496
|
M.filter((i) => i.position === "before").map((i) => i.layer),
|
|
491
497
|
/* @__PURE__ */ l.jsxs(bi, { children: [
|
|
492
|
-
|
|
498
|
+
ei.map((i) => /* @__PURE__ */ l.jsxs(
|
|
493
499
|
ai.g,
|
|
494
500
|
{
|
|
495
501
|
className: "undp-viz-g-with-hover",
|
|
496
502
|
variants: {
|
|
497
503
|
initial: {
|
|
498
504
|
opacity: 0,
|
|
499
|
-
x:
|
|
505
|
+
x: k / 2,
|
|
500
506
|
y: z(0)
|
|
501
507
|
},
|
|
502
508
|
whileInView: {
|
|
503
|
-
x:
|
|
509
|
+
x: k / 2,
|
|
504
510
|
y: z(i.position),
|
|
505
|
-
opacity:
|
|
511
|
+
opacity: G ? i.color && e[a.indexOf(i.color)] === G ? 0.95 : T : r.length !== 0 ? r.indexOf(i.label) !== -1 ? 0.95 : T : ti,
|
|
506
512
|
transition: { duration: w.duration }
|
|
507
513
|
}
|
|
508
514
|
},
|
|
@@ -510,50 +516,52 @@ function Si(P) {
|
|
|
510
516
|
animate: D ? "whileInView" : "initial",
|
|
511
517
|
exit: { opacity: 0, transition: { duration: w.duration } },
|
|
512
518
|
onMouseEnter: (t) => {
|
|
513
|
-
|
|
519
|
+
v(i), g(t.clientY), L(t.clientX), S?.(i);
|
|
514
520
|
},
|
|
515
521
|
onClick: () => {
|
|
516
|
-
(
|
|
522
|
+
($ || j) && (pi(u, i) && N ? (A(void 0), $?.(void 0)) : (A(i), $?.(i)));
|
|
517
523
|
},
|
|
518
524
|
onMouseMove: (t) => {
|
|
519
|
-
|
|
525
|
+
v(i), g(t.clientY), L(t.clientX);
|
|
520
526
|
},
|
|
521
527
|
onMouseLeave: () => {
|
|
522
|
-
|
|
528
|
+
v(void 0), L(void 0), g(void 0), S?.(void 0);
|
|
523
529
|
},
|
|
524
530
|
children: [
|
|
525
|
-
|
|
531
|
+
x === "dot" ? /* @__PURE__ */ l.jsx(
|
|
526
532
|
ai.circle,
|
|
527
533
|
{
|
|
528
534
|
cy: 0,
|
|
529
535
|
cx: 0,
|
|
530
536
|
variants: {
|
|
531
537
|
initial: {
|
|
532
|
-
fill:
|
|
538
|
+
fill: y && r ? r.indexOf(i.label) !== -1 ? y : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray
|
|
533
539
|
},
|
|
534
540
|
whileInView: {
|
|
535
|
-
fill:
|
|
541
|
+
fill: y && r ? r.indexOf(i.label) !== -1 ? y : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray,
|
|
536
542
|
transition: { duration: w.duration }
|
|
537
543
|
}
|
|
538
544
|
},
|
|
539
545
|
initial: "initial",
|
|
540
546
|
animate: D ? "whileInView" : "initial",
|
|
541
547
|
exit: { opacity: 0, transition: { duration: w.duration } },
|
|
542
|
-
r:
|
|
548
|
+
r: c
|
|
543
549
|
}
|
|
544
550
|
) : /* @__PURE__ */ l.jsx(
|
|
545
551
|
ai.rect,
|
|
546
552
|
{
|
|
547
|
-
x: 0 - h,
|
|
548
553
|
y: -1,
|
|
549
|
-
width: h * 2,
|
|
550
554
|
height: 2,
|
|
551
555
|
variants: {
|
|
552
556
|
initial: {
|
|
553
|
-
|
|
557
|
+
x: 0 - c,
|
|
558
|
+
width: c * 2,
|
|
559
|
+
fill: y && r ? r.indexOf(i.label) !== -1 ? y : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray
|
|
554
560
|
},
|
|
555
561
|
whileInView: {
|
|
556
|
-
|
|
562
|
+
x: 0 - c,
|
|
563
|
+
width: c * 2,
|
|
564
|
+
fill: y && r ? r.indexOf(i.label) !== -1 ? y : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray,
|
|
557
565
|
transition: { duration: w.duration }
|
|
558
566
|
}
|
|
559
567
|
},
|
|
@@ -567,11 +575,16 @@ function Si(P) {
|
|
|
567
575
|
{
|
|
568
576
|
y: 0,
|
|
569
577
|
dy: "0.33em",
|
|
570
|
-
x: 0 + h + 3,
|
|
571
578
|
variants: {
|
|
572
|
-
initial: {
|
|
579
|
+
initial: {
|
|
580
|
+
opacity: 0,
|
|
581
|
+
x: 0 + c + 3,
|
|
582
|
+
fill: d || (y && r ? r.indexOf(i.label) !== -1 ? y : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray)
|
|
583
|
+
},
|
|
573
584
|
whileInView: {
|
|
574
585
|
opacity: 1,
|
|
586
|
+
x: 0 + c + 3,
|
|
587
|
+
fill: d || (y && r ? r.indexOf(i.label) !== -1 ? y : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray : o.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(i.color)] : h.gray),
|
|
575
588
|
transition: { duration: w.duration }
|
|
576
589
|
}
|
|
577
590
|
},
|
|
@@ -579,13 +592,12 @@ function Si(P) {
|
|
|
579
592
|
animate: D ? "whileInView" : "initial",
|
|
580
593
|
exit: { opacity: 0, transition: { duration: w.duration } },
|
|
581
594
|
style: {
|
|
582
|
-
fill: m || (v && r ? r.indexOf(i.label) !== -1 ? v : e.filter((t) => t.color).length === 0 ? o[0] : i.color ? o[n.indexOf(i.color)] : c.gray : e.filter((t) => t.color).length === 0 ? o[0] : i.color ? o[n.indexOf(i.color)] : c.gray),
|
|
583
595
|
textAnchor: "start",
|
|
584
|
-
|
|
596
|
+
...I?.graphObjectValues || {}
|
|
585
597
|
},
|
|
586
598
|
className: ni(
|
|
587
599
|
"graph-value text-sm font-bold",
|
|
588
|
-
|
|
600
|
+
V?.graphObjectValues
|
|
589
601
|
),
|
|
590
602
|
children: gi(i.position, "NA", B, b, Q)
|
|
591
603
|
}
|
|
@@ -598,14 +610,14 @@ function Si(P) {
|
|
|
598
610
|
"text",
|
|
599
611
|
{
|
|
600
612
|
y: i,
|
|
601
|
-
x:
|
|
613
|
+
x: k / 2 + c + 5,
|
|
602
614
|
style: {
|
|
603
615
|
textAnchor: "start",
|
|
604
|
-
|
|
616
|
+
...I?.yAxis?.labels || {}
|
|
605
617
|
},
|
|
606
618
|
className: ni(
|
|
607
619
|
"fill-primary-gray-550 dark:fill-primary-gray-500 text-xs",
|
|
608
|
-
|
|
620
|
+
V?.yAxis?.labels
|
|
609
621
|
),
|
|
610
622
|
children: gi(z.invert(i), "NA", B, b, Q)
|
|
611
623
|
},
|
|
@@ -616,15 +628,15 @@ function Si(P) {
|
|
|
616
628
|
] })
|
|
617
629
|
}
|
|
618
630
|
),
|
|
619
|
-
H && F && U &&
|
|
631
|
+
H && F && U && p ? /* @__PURE__ */ l.jsx(
|
|
620
632
|
yi,
|
|
621
633
|
{
|
|
622
634
|
data: H,
|
|
623
635
|
body: F,
|
|
624
636
|
xPos: U,
|
|
625
|
-
yPos:
|
|
626
|
-
backgroundStyle:
|
|
627
|
-
className:
|
|
637
|
+
yPos: p,
|
|
638
|
+
backgroundStyle: I?.tooltip,
|
|
639
|
+
className: V?.tooltip
|
|
628
640
|
}
|
|
629
641
|
) : null,
|
|
630
642
|
j && u !== void 0 ? /* @__PURE__ */ l.jsx(
|
|
@@ -648,34 +660,34 @@ function Si(P) {
|
|
|
648
660
|
}
|
|
649
661
|
function $i(P) {
|
|
650
662
|
const {
|
|
651
|
-
data:
|
|
652
|
-
graphTitle:
|
|
653
|
-
colors:
|
|
654
|
-
sources:
|
|
655
|
-
graphDescription:
|
|
656
|
-
height:
|
|
663
|
+
data: o,
|
|
664
|
+
graphTitle: f,
|
|
665
|
+
colors: m,
|
|
666
|
+
sources: e,
|
|
667
|
+
graphDescription: a,
|
|
668
|
+
height: c,
|
|
657
669
|
width: s,
|
|
658
670
|
footNote: X,
|
|
659
671
|
colorDomain: Y,
|
|
660
672
|
colorLegendTitle: ii,
|
|
661
673
|
radius: F = 5,
|
|
662
|
-
padding:
|
|
674
|
+
padding: S,
|
|
663
675
|
backgroundColor: r = !1,
|
|
664
|
-
leftMargin:
|
|
665
|
-
rightMargin:
|
|
676
|
+
leftMargin: G = 20,
|
|
677
|
+
rightMargin: R = 20,
|
|
666
678
|
topMargin: _ = 10,
|
|
667
|
-
bottomMargin:
|
|
679
|
+
bottomMargin: $ = 10,
|
|
668
680
|
tooltip: K,
|
|
669
681
|
relativeHeight: b,
|
|
670
682
|
onSeriesMouseOver: Q,
|
|
671
|
-
showColorScale:
|
|
672
|
-
highlightedDataPoints:
|
|
683
|
+
showColorScale: x = !0,
|
|
684
|
+
highlightedDataPoints: y = [],
|
|
673
685
|
graphID: ti,
|
|
674
686
|
minValue: N,
|
|
675
687
|
maxValue: j,
|
|
676
|
-
onSeriesMouseClick:
|
|
677
|
-
graphDownload:
|
|
678
|
-
dataDownload:
|
|
688
|
+
onSeriesMouseClick: I,
|
|
689
|
+
graphDownload: V = !1,
|
|
690
|
+
dataDownload: d = !1,
|
|
679
691
|
prefix: w = "",
|
|
680
692
|
suffix: T = "",
|
|
681
693
|
stripType: B = "dot",
|
|
@@ -683,26 +695,26 @@ function $i(P) {
|
|
|
683
695
|
highlightColor: q,
|
|
684
696
|
dotOpacity: D = 0.3,
|
|
685
697
|
showNAColor: H = !0,
|
|
686
|
-
minHeight:
|
|
698
|
+
minHeight: v = 0,
|
|
687
699
|
theme: u = "light",
|
|
688
700
|
ariaLabel: A,
|
|
689
701
|
resetSelectionOnDoubleClick: U = !0,
|
|
690
702
|
detailsOnClick: L,
|
|
691
|
-
styles:
|
|
703
|
+
styles: p,
|
|
692
704
|
classNames: g,
|
|
693
705
|
valueColor: O,
|
|
694
|
-
animate:
|
|
706
|
+
animate: k = !1,
|
|
695
707
|
noOfTicks: W = 2,
|
|
696
|
-
dimmedOpacity:
|
|
697
|
-
precision:
|
|
708
|
+
dimmedOpacity: oi = 0.3,
|
|
709
|
+
precision: ei = 2,
|
|
698
710
|
customLayers: li = []
|
|
699
|
-
} = P, [C, z] = E(0), [ri, i] = E(0), [t,
|
|
700
|
-
return
|
|
701
|
-
const
|
|
702
|
-
z(s || hi[0].target.clientWidth || 620), i(
|
|
711
|
+
} = P, [C, z] = E(0), [ri, i] = E(0), [t, di] = E(void 0), Z = si(null), ci = si(null);
|
|
712
|
+
return ui(() => {
|
|
713
|
+
const n = new ResizeObserver((hi) => {
|
|
714
|
+
z(s || hi[0].target.clientWidth || 620), i(c || hi[0].target.clientHeight || 480);
|
|
703
715
|
});
|
|
704
|
-
return Z.current && (i(Z.current.clientHeight || 480), z(Z.current.clientWidth || 620), s ||
|
|
705
|
-
}, [s,
|
|
716
|
+
return Z.current && (i(Z.current.clientHeight || 480), z(Z.current.clientWidth || 620), s || n.observe(Z.current)), () => n.disconnect();
|
|
717
|
+
}, [s, c]), /* @__PURE__ */ l.jsx(
|
|
706
718
|
"div",
|
|
707
719
|
{
|
|
708
720
|
className: `${u || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
|
|
@@ -716,45 +728,45 @@ function $i(P) {
|
|
|
716
728
|
g?.graphContainer
|
|
717
729
|
),
|
|
718
730
|
style: {
|
|
719
|
-
...
|
|
731
|
+
...p?.graphContainer || {},
|
|
720
732
|
...r && r !== !0 ? { backgroundColor: r } : {}
|
|
721
733
|
},
|
|
722
734
|
id: ti,
|
|
723
735
|
ref: ci,
|
|
724
|
-
"aria-label": A || `${
|
|
736
|
+
"aria-label": A || `${f ? `The graph shows ${f}. ` : ""}This is a strip chart showing distribution of data along the vertical axis. Each dot represents an individual data point, helping to visualize the spread and clustering of values.${a ? ` ${a}` : ""}`,
|
|
725
737
|
children: /* @__PURE__ */ l.jsx(
|
|
726
738
|
"div",
|
|
727
739
|
{
|
|
728
740
|
className: "flex grow",
|
|
729
|
-
style: { padding: r ?
|
|
741
|
+
style: { padding: r ? S || "1rem" : S || 0 },
|
|
730
742
|
children: /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
731
|
-
|
|
743
|
+
f || a || V || d ? /* @__PURE__ */ l.jsx(
|
|
732
744
|
ji,
|
|
733
745
|
{
|
|
734
746
|
styles: {
|
|
735
|
-
title:
|
|
736
|
-
description:
|
|
747
|
+
title: p?.title,
|
|
748
|
+
description: p?.description
|
|
737
749
|
},
|
|
738
750
|
classNames: {
|
|
739
751
|
title: g?.title,
|
|
740
752
|
description: g?.description
|
|
741
753
|
},
|
|
742
|
-
graphTitle:
|
|
743
|
-
graphDescription:
|
|
754
|
+
graphTitle: f,
|
|
755
|
+
graphDescription: a,
|
|
744
756
|
width: s,
|
|
745
|
-
graphDownload:
|
|
746
|
-
dataDownload:
|
|
757
|
+
graphDownload: V ? ci.current : void 0,
|
|
758
|
+
dataDownload: d ? o.map((n) => n.data).filter((n) => n !== void 0).length > 0 ? o.map((n) => n.data).filter((n) => n !== void 0) : o.filter((n) => n !== void 0) : null
|
|
747
759
|
}
|
|
748
760
|
) : null,
|
|
749
|
-
/* @__PURE__ */ l.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children:
|
|
750
|
-
|
|
761
|
+
/* @__PURE__ */ l.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: o.length === 0 ? /* @__PURE__ */ l.jsx(Di, {}) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
762
|
+
x !== !1 && o.filter((n) => n.color).length !== 0 ? /* @__PURE__ */ l.jsx(
|
|
751
763
|
Mi,
|
|
752
764
|
{
|
|
753
765
|
width: s,
|
|
754
766
|
colorLegendTitle: ii,
|
|
755
|
-
colors:
|
|
756
|
-
colorDomain: Y ||
|
|
757
|
-
setSelectedColor:
|
|
767
|
+
colors: m || h[u].categoricalColors.colors,
|
|
768
|
+
colorDomain: Y || fi(o, "color", !0),
|
|
769
|
+
setSelectedColor: di,
|
|
758
770
|
showNAColor: H
|
|
759
771
|
}
|
|
760
772
|
) : null,
|
|
@@ -763,29 +775,29 @@ function $i(P) {
|
|
|
763
775
|
{
|
|
764
776
|
className: "flex flex-col grow justify-center w-full leading-0",
|
|
765
777
|
ref: Z,
|
|
766
|
-
children: (s || C) && (
|
|
778
|
+
children: (s || C) && (c || ri) ? /* @__PURE__ */ l.jsx(
|
|
767
779
|
Si,
|
|
768
780
|
{
|
|
769
|
-
data:
|
|
781
|
+
data: o,
|
|
770
782
|
width: s || C,
|
|
771
783
|
height: Math.max(
|
|
772
|
-
|
|
773
|
-
|
|
784
|
+
v,
|
|
785
|
+
c || (b ? v ? (s || C) * b > v ? (s || C) * b : v : (s || C) * b : ri)
|
|
774
786
|
),
|
|
775
|
-
colorDomain:
|
|
776
|
-
colors:
|
|
787
|
+
colorDomain: o.filter((n) => n.color).length === 0 ? [] : Y || fi(o, "color", !0),
|
|
788
|
+
colors: o.filter((n) => n.color).length === 0 ? m ? [m] : [h.primaryColors["blue-600"]] : m || h[u].categoricalColors.colors,
|
|
777
789
|
selectedColor: t,
|
|
778
790
|
radius: F,
|
|
779
|
-
leftMargin:
|
|
780
|
-
rightMargin:
|
|
791
|
+
leftMargin: G,
|
|
792
|
+
rightMargin: R,
|
|
781
793
|
topMargin: _,
|
|
782
|
-
bottomMargin:
|
|
794
|
+
bottomMargin: $,
|
|
783
795
|
tooltip: K,
|
|
784
796
|
onSeriesMouseOver: Q,
|
|
785
|
-
highlightedDataPoints:
|
|
797
|
+
highlightedDataPoints: y,
|
|
786
798
|
minValue: N,
|
|
787
799
|
maxValue: j,
|
|
788
|
-
onSeriesMouseClick:
|
|
800
|
+
onSeriesMouseClick: I,
|
|
789
801
|
prefix: w,
|
|
790
802
|
suffix: T,
|
|
791
803
|
stripType: B,
|
|
@@ -793,28 +805,28 @@ function $i(P) {
|
|
|
793
805
|
dotOpacity: D,
|
|
794
806
|
resetSelectionOnDoubleClick: U,
|
|
795
807
|
detailsOnClick: L,
|
|
796
|
-
styles:
|
|
808
|
+
styles: p,
|
|
797
809
|
classNames: g,
|
|
798
810
|
valueColor: O,
|
|
799
|
-
animate:
|
|
811
|
+
animate: k === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : k || { duration: 0, once: !0, amount: 0 },
|
|
800
812
|
noOfTicks: W,
|
|
801
|
-
dimmedOpacity:
|
|
802
|
-
precision:
|
|
813
|
+
dimmedOpacity: oi,
|
|
814
|
+
precision: ei,
|
|
803
815
|
customLayers: li
|
|
804
816
|
}
|
|
805
817
|
) : null
|
|
806
818
|
}
|
|
807
819
|
)
|
|
808
820
|
] }) }),
|
|
809
|
-
|
|
821
|
+
e || X ? /* @__PURE__ */ l.jsx(
|
|
810
822
|
Ci,
|
|
811
823
|
{
|
|
812
|
-
styles: { footnote:
|
|
824
|
+
styles: { footnote: p?.footnote, source: p?.source },
|
|
813
825
|
classNames: {
|
|
814
826
|
footnote: g?.footnote,
|
|
815
827
|
source: g?.source
|
|
816
828
|
},
|
|
817
|
-
sources:
|
|
829
|
+
sources: e,
|
|
818
830
|
footNote: X,
|
|
819
831
|
width: s
|
|
820
832
|
}
|
|
@@ -829,34 +841,34 @@ function $i(P) {
|
|
|
829
841
|
}
|
|
830
842
|
function Ki(P) {
|
|
831
843
|
const {
|
|
832
|
-
data:
|
|
833
|
-
graphTitle:
|
|
834
|
-
colors:
|
|
835
|
-
sources:
|
|
836
|
-
graphDescription:
|
|
837
|
-
height:
|
|
844
|
+
data: o,
|
|
845
|
+
graphTitle: f,
|
|
846
|
+
colors: m,
|
|
847
|
+
sources: e,
|
|
848
|
+
graphDescription: a,
|
|
849
|
+
height: c,
|
|
838
850
|
width: s,
|
|
839
851
|
footNote: X,
|
|
840
852
|
colorDomain: Y,
|
|
841
853
|
colorLegendTitle: ii,
|
|
842
854
|
radius: F,
|
|
843
|
-
padding:
|
|
855
|
+
padding: S,
|
|
844
856
|
backgroundColor: r,
|
|
845
|
-
leftMargin:
|
|
846
|
-
rightMargin:
|
|
857
|
+
leftMargin: G,
|
|
858
|
+
rightMargin: R,
|
|
847
859
|
topMargin: _,
|
|
848
|
-
bottomMargin:
|
|
860
|
+
bottomMargin: $,
|
|
849
861
|
tooltip: K,
|
|
850
862
|
relativeHeight: b,
|
|
851
863
|
onSeriesMouseOver: Q,
|
|
852
|
-
showColorScale:
|
|
853
|
-
highlightedDataPoints:
|
|
864
|
+
showColorScale: x,
|
|
865
|
+
highlightedDataPoints: y,
|
|
854
866
|
graphID: ti,
|
|
855
867
|
minValue: N,
|
|
856
868
|
maxValue: j,
|
|
857
|
-
onSeriesMouseClick:
|
|
858
|
-
noOfTicks:
|
|
859
|
-
graphDownload:
|
|
869
|
+
onSeriesMouseClick: I,
|
|
870
|
+
noOfTicks: V,
|
|
871
|
+
graphDownload: d,
|
|
860
872
|
dataDownload: w,
|
|
861
873
|
prefix: T,
|
|
862
874
|
suffix: B,
|
|
@@ -864,52 +876,52 @@ function Ki(P) {
|
|
|
864
876
|
language: q,
|
|
865
877
|
highlightColor: D,
|
|
866
878
|
dotOpacity: H,
|
|
867
|
-
showNAColor:
|
|
879
|
+
showNAColor: v,
|
|
868
880
|
minHeight: u,
|
|
869
881
|
theme: A,
|
|
870
882
|
ariaLabel: U,
|
|
871
883
|
valueColor: L,
|
|
872
|
-
resetSelectionOnDoubleClick:
|
|
884
|
+
resetSelectionOnDoubleClick: p,
|
|
873
885
|
detailsOnClick: g,
|
|
874
886
|
orientation: O = "vertical",
|
|
875
|
-
styles:
|
|
887
|
+
styles: k,
|
|
876
888
|
classNames: W,
|
|
877
|
-
animate:
|
|
878
|
-
dimmedOpacity:
|
|
889
|
+
animate: oi,
|
|
890
|
+
dimmedOpacity: ei = 0.3,
|
|
879
891
|
precision: li,
|
|
880
892
|
customLayers: C
|
|
881
893
|
} = P;
|
|
882
894
|
return O === "vertical" ? /* @__PURE__ */ l.jsx(
|
|
883
895
|
$i,
|
|
884
896
|
{
|
|
885
|
-
data:
|
|
886
|
-
graphTitle:
|
|
887
|
-
colors:
|
|
888
|
-
sources:
|
|
889
|
-
graphDescription:
|
|
890
|
-
height:
|
|
897
|
+
data: o,
|
|
898
|
+
graphTitle: f,
|
|
899
|
+
colors: m,
|
|
900
|
+
sources: e,
|
|
901
|
+
graphDescription: a,
|
|
902
|
+
height: c,
|
|
891
903
|
width: s,
|
|
892
904
|
footNote: X,
|
|
893
905
|
colorDomain: Y,
|
|
894
906
|
colorLegendTitle: ii,
|
|
895
907
|
radius: F,
|
|
896
|
-
padding:
|
|
908
|
+
padding: S,
|
|
897
909
|
backgroundColor: r,
|
|
898
|
-
leftMargin:
|
|
899
|
-
rightMargin:
|
|
910
|
+
leftMargin: G,
|
|
911
|
+
rightMargin: R,
|
|
900
912
|
topMargin: _,
|
|
901
|
-
bottomMargin:
|
|
913
|
+
bottomMargin: $,
|
|
902
914
|
tooltip: K,
|
|
903
915
|
relativeHeight: b,
|
|
904
916
|
onSeriesMouseOver: Q,
|
|
905
|
-
showColorScale:
|
|
906
|
-
highlightedDataPoints:
|
|
917
|
+
showColorScale: x,
|
|
918
|
+
highlightedDataPoints: y,
|
|
907
919
|
graphID: ti,
|
|
908
920
|
minValue: N,
|
|
909
921
|
maxValue: j,
|
|
910
|
-
onSeriesMouseClick:
|
|
911
|
-
noOfTicks:
|
|
912
|
-
graphDownload:
|
|
922
|
+
onSeriesMouseClick: I,
|
|
923
|
+
noOfTicks: V,
|
|
924
|
+
graphDownload: d,
|
|
913
925
|
dataDownload: w,
|
|
914
926
|
prefix: T,
|
|
915
927
|
suffix: B,
|
|
@@ -917,51 +929,51 @@ function Ki(P) {
|
|
|
917
929
|
language: q,
|
|
918
930
|
highlightColor: D,
|
|
919
931
|
dotOpacity: H,
|
|
920
|
-
showNAColor:
|
|
932
|
+
showNAColor: v,
|
|
921
933
|
minHeight: u,
|
|
922
934
|
theme: A,
|
|
923
935
|
ariaLabel: U,
|
|
924
|
-
resetSelectionOnDoubleClick:
|
|
925
|
-
styles:
|
|
936
|
+
resetSelectionOnDoubleClick: p,
|
|
937
|
+
styles: k,
|
|
926
938
|
valueColor: L,
|
|
927
939
|
detailsOnClick: g,
|
|
928
940
|
classNames: W,
|
|
929
|
-
animate:
|
|
930
|
-
dimmedOpacity:
|
|
941
|
+
animate: oi,
|
|
942
|
+
dimmedOpacity: ei,
|
|
931
943
|
precision: li,
|
|
932
944
|
customLayers: C
|
|
933
945
|
}
|
|
934
946
|
) : /* @__PURE__ */ l.jsx(
|
|
935
947
|
ki,
|
|
936
948
|
{
|
|
937
|
-
data:
|
|
938
|
-
graphTitle:
|
|
939
|
-
colors:
|
|
940
|
-
sources:
|
|
941
|
-
graphDescription:
|
|
942
|
-
height:
|
|
949
|
+
data: o,
|
|
950
|
+
graphTitle: f,
|
|
951
|
+
colors: m,
|
|
952
|
+
sources: e,
|
|
953
|
+
graphDescription: a,
|
|
954
|
+
height: c,
|
|
943
955
|
width: s,
|
|
944
956
|
footNote: X,
|
|
945
957
|
colorDomain: Y,
|
|
946
958
|
colorLegendTitle: ii,
|
|
947
959
|
radius: F,
|
|
948
|
-
padding:
|
|
960
|
+
padding: S,
|
|
949
961
|
backgroundColor: r,
|
|
950
|
-
leftMargin:
|
|
951
|
-
rightMargin:
|
|
962
|
+
leftMargin: G,
|
|
963
|
+
rightMargin: R,
|
|
952
964
|
topMargin: _,
|
|
953
|
-
bottomMargin:
|
|
965
|
+
bottomMargin: $,
|
|
954
966
|
tooltip: K,
|
|
955
967
|
relativeHeight: b,
|
|
956
968
|
onSeriesMouseOver: Q,
|
|
957
|
-
showColorScale:
|
|
958
|
-
highlightedDataPoints:
|
|
969
|
+
showColorScale: x,
|
|
970
|
+
highlightedDataPoints: y,
|
|
959
971
|
graphID: ti,
|
|
960
972
|
minValue: N,
|
|
961
973
|
maxValue: j,
|
|
962
|
-
onSeriesMouseClick:
|
|
963
|
-
noOfTicks:
|
|
964
|
-
graphDownload:
|
|
974
|
+
onSeriesMouseClick: I,
|
|
975
|
+
noOfTicks: V,
|
|
976
|
+
graphDownload: d,
|
|
965
977
|
dataDownload: w,
|
|
966
978
|
prefix: T,
|
|
967
979
|
suffix: B,
|
|
@@ -969,17 +981,17 @@ function Ki(P) {
|
|
|
969
981
|
language: q,
|
|
970
982
|
highlightColor: D,
|
|
971
983
|
dotOpacity: H,
|
|
972
|
-
showNAColor:
|
|
984
|
+
showNAColor: v,
|
|
973
985
|
minHeight: u,
|
|
974
986
|
theme: A,
|
|
975
987
|
ariaLabel: U,
|
|
976
|
-
resetSelectionOnDoubleClick:
|
|
977
|
-
styles:
|
|
988
|
+
resetSelectionOnDoubleClick: p,
|
|
989
|
+
styles: k,
|
|
978
990
|
valueColor: L,
|
|
979
991
|
detailsOnClick: g,
|
|
980
992
|
classNames: W,
|
|
981
|
-
animate:
|
|
982
|
-
dimmedOpacity:
|
|
993
|
+
animate: oi,
|
|
994
|
+
dimmedOpacity: ei,
|
|
983
995
|
precision: li,
|
|
984
996
|
customLayers: C
|
|
985
997
|
}
|