🌍 Public
Viewing a saved revision (read-only)
57d4d12c743142b29da62a385d4b5dc3
Fork of Pathetic Bar Chart
This example displays the top 10 most populous countries as a rudimentary bar chart, using only rectangles with no axes or labels for context. The chart loads population data from the United Nations World Population Prospects 2019 dataset via a CSV URL. Built with React and D3 v5, it uses `csv` to fetch and parse the data, then `scaleBand` and `scaleLinear` to map country names and population values to the SVG canvas dimensions. The visualization updates the displayed bars once the data is loaded, initially showing a “Loading…” message.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.