🌍 Public
Viewing a saved revision (read-only)
d76d3dd3c422448faa0f1839983fa568
Activity 6_task1_question1
This chart displays the populations of the ten most populous countries in the year 2000, using horizontal bars ranked by country name. The visualization leverages React with D3 v5 utilities, including `scaleBand` and `scaleLinear`, to render an SVG graphic with a bottom axis formatted to display values in billions. Code components such as `AxisBottom`, `AxisLeft`, and `Marks` generate the axes and rectangular bars, while tooltips on each mark show the precise population values. Data is loaded from a remote CSV file using D3's `csv` function.
AI-generated descriptionA demonstration of how to start using D3 version 6.