Activity 7
✓ Published0🌍 Public
This visualization displays the population of 20 countries in 2020 as a horizontal bar chart, sorted by country name. Using React with D3 v5, it employs `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and renders SVG rectangles via the `Marks` component. The data is loaded from a remote CSV file using `csv` from D3, with population values calculated by multiplying the 2010 column by 1000. Axis components generate tick lines and labels, while a tooltip appears on hover showing the abbreviated population in billions via `format('.2s')`.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed