🌍 Public
Viewing a saved revision (read-only)
5ad2b261a9b64306a0caf7cf6e344259
Pathetic Bar Chart
This example displays the top 10 most populous countries as a set of horizontal bars, with no axes or labels, rendered as SVG rectangles sized by population from the United Nations World Population Prospects 2019. The React app loads the CSV data using d3.csv, sorts by the 2020 population estimate, and scales the bars with d3.scaleBand for vertical positioning and d3.scaleLinear for width. The bars fill the entire viewport, emphasizing the pathetic lack of any chart furniture, and the code uses React hooks like useState and useEffect to manage the asynchronous data loading.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.