Activity 6_Question1 1.2
✓ Published1🌍 Public
A horizontal bar chart displays the population of 20 countries in 2020, with each bar’s length proportional to its population value and country names listed along the vertical axis. The visualization uses React to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` functions handling positioning. Population values are formatted in billions using `d3.format`, while the underlying data is loaded from a CSV file via `d3.csv`. The chart includes styled axes with blue tick lines and green bars, and hover tooltips show the precise formatted population values.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed