Activity 6
✓ Published0🌍 Public
This visualization displays the populations of 30 countries in 2020 as a horizontal bar chart, using SVG rectangles rendered through a React component. The chart imports data from a CSV file hosted on GitHub, processing population values by multiplying the 2020 column by 1000. It uses D3 v5’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with automatic tick generation via `xScale.ticks()`. The `format` API converts large numbers into abbreviated labels, and tooltips show precise values using the `title` element.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed