🌍 Public
Viewing a saved revision (read-only)
5012e7dc2121432f898a927b6f77ebe3
Population Bar Chart
This bar chart displays the top 10 countries by projected 2020 population, ranked along the y-axis with horizontal bars extending left. It loads CSV data from a GitHub gist using D3’s `csv` function, parses the population column with a row accessor, and renders the result as SVG rectangles via React. D3’s `scaleBand` positions the country labels, while `scaleLinear` maps population values to bar widths within a fixed 960×500 viewport.
AI-generated description