🌍 Public
Viewing a saved revision (read-only)
316dc77c2c56424aaa18bc8b071fddfc
Activity 6_task 1 Q2
This bar chart displays the top 20 countries by population in 2010, with countries listed alphabetically on the y-axis and population values on the x-axis. Built with React and D3 v5, the visualization uses `scaleBand` and `scaleLinear` to map the data, rendered as SVG rectangles. Population values are formatted using `format('.2s')` to display billions. Data is loaded from a CSV file using `d3.csv` in a custom `useData` hook, with hover effects changing bar colors and tooltips showing exact population values.
AI-generated description