Pathetic Population Bar Chart
✓ Published1🌍 Public
This visualization displays the populations of the top ten countries using a horizontal bar chart, with each bar’s length proportional to its 2020 population value. The chart renders as SVG via React, using `useState` and `useEffect` to fetch and parse a CSV from a GitHub gist. D3’s `scaleBand` positions the country categories along the y-axis, while `scaleLinear` maps population counts to bar widths on the x-axis. The data is loaded using `d3.csv` and truncated to the first ten rows.
AI-generated descriptionReact Starter code.
MIT Licensed