🌍 Public
Viewing a saved revision (read-only)
1b8a38ddef854f3d9e4c5c081b88d77e
Activity6_Question 1.1
This chart displays the top 10 countries by population in 2000 as horizontal bars. The visualization uses React with D3 v5, employing `scaleBand` and `scaleLinear` to map countries and population values. Data is loaded from a CSV file via `d3.csv`, processed, and sorted. Axes are rendered with custom React components for bottom and left positions. Bars are drawn as SVG rectangles with hover effects, and population values appear as formatted tooltips using `siFormat` with 'G' replaced by 'B'.
AI-generated description