🌍 Public
Viewing a saved revision (read-only)
5156a84eb05143e698d89266b9205291
Fork of Pathetic Bar Chart
This example renders the top 10 most populous countries as a pathetic bar chart with no axes, using React to manage state and D3 v5’s `scaleBand` and `scaleLinear` for positioning and sizing. Each country’s population from the United Nations World Population Prospects 2019 dataset is represented as a horizontal bar, loaded via `d3.csv`. The SVG rectangles are generated through React’s JSX, with height determined by `yScale.bandwidth()` and width scaled to the maximum population value.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.