🌍 Public
Viewing a saved revision (read-only)
7a9f56b63e6e48968cb0c4594929bc33
Activity6_Tutorial1
This bar chart displays the 2020 populations of 30 countries, sorted by country name along the vertical axis with population values extending horizontally. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendering SVG rectangles for each bar. The data is loaded as CSV via `d3.csv` from a GitHub repository, with axis ticks formatted using `d3.format`. Tooltips show exact population values on hover, and tick lines are styled blue with a light green bar fill.
AI-generated descriptionA demonstration of how to start using D3 version 6.