🌍 Public
Viewing a saved revision (read-only)
96676c22adde4d93b403ad33a04588a7
Fork Activity 6_Question1.2
This example shows a horizontal bar chart of 2010 population data for the world’s most populous countries, sorted by country name. The chart uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` mapping country names and population values to pixel coordinates. Data is loaded asynchronously via `csv` from a GitHub-hosted CSV file, and each bar includes a native SVG `<title>` tooltip showing the formatted population value.
AI-generated descriptionA demonstration of how to start using D3 version 6.