🌍 Public
Viewing a saved revision (read-only)
51500a04b3b949bcae2ba02bf7f6151b
Activity 6_Question1b
This bar chart displays the population of 20 countries in 2020, sorted alphabetically by country name. The visualization is built with React and D3 v5, using SVG rendering. The code defines `AxisBottom`, `AxisLeft`, and `Marks` components that leverage `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the population x-axis. Data is loaded from a CSV file via `d3.csv`, with population values calculated by multiplying 2010 figures by 1000.
AI-generated descriptionA demonstration of how to start using D3 version 6.