🌍 Public
Viewing a saved revision (read-only)
992eb191af28429481b7cace694d732b
Fork of Question 4
This visualization shows the population of 30 countries in 2020 as a horizontal bar chart. Each bar represents a country, with its length proportional to population. The chart uses a React component structure, with D3's `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, formatted with `format('.2s')`, and rendered as SVG rectangles. Tooltips display the exact population values.
AI-generated descriptionA demonstration of how to start using D3 version 6.