🌍 Public
Viewing a saved revision (read-only)
f89a6724b7a847c1937662fe3c9f7ee7
activity_6_question_1.2
This bar chart displays the populations of 20 countries in 2010, sorted by country name. The visualization uses React with D3 v5, employing `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and SVG `rect` marks for the bars. Data is loaded via `csv` from a GitHub-hosted CSV file, with population values converted from thousands. The chart includes formatted tick labels using `format('.2s')`, replacing 'G' with 'B' for billions, and tooltips generated through SVG `<title>` elements.
AI-generated descriptionA demonstration of how to start using D3 version 6.