🌍 Public
Viewing a saved revision (read-only)
4ad125f26fb542eebdd1d6d9e92d3ae9
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.