🌍 Public
Viewing a saved revision (read-only)
695c4ac3e7e54c4abc41d9a2aacb4347
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