Skip to main content
100%

Population Bar Chart

✓ Published1🌍 Public
PPratik Gohil
Last edited Apr 24, 2021
Created on Apr 24, 2021

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
MIT Licensed

Similar vizzes