🌍 Public
Viewing a saved revision (read-only)
17881cc8003d4976bf509865da1b5b97
Activity 6 Question 1.2
This visualization displays a horizontal bar chart comparing population figures for 20 countries in 2010, ordered along a categorical y-axis with a linear x-axis for population values. Built with React and D3.v5, it uses `scaleBand` and `scaleLinear` to map the data, with SVG rendered through custom `AxisBottom`, `AxisLeft`, and `Marks` components. The population data is loaded via `d3.csv` from a GitHub-hosted CSV file, and tooltips show formatted values using `d3.format` with the "B" suffix for billions.
AI-generated description