🌍 Public
Viewing a saved revision (read-only)
e91ec56d5d434c4ca3710583c4bbc9f0
Activity 6_Task 1
This visualization displays the population of 30 countries in 2020 as a horizontal bar chart. The chart is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded from a remote CSV file using D3’s `csv` function, and population values are multiplied by 1000. The SVG rendering uses custom React components for axes and marks, with tooltips formatted using D3’s `format` function to abbreviate large numbers (e.g., “1.23B”).
AI-generated descriptionA demonstration of how to start using D3 version 6.