Fork of Question 4
✓ Published0🌍 Public
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.
MIT Licensed