🌍 Public
Viewing a saved revision (read-only)
11c0cd96a07c4b17a915559fdd9eacf1
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 SVG for drawing. The code loads UN World Population Prospects 2019 data via `d3.csv`, then maps it with `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. Each country appears as a plain `<rect>` element, with its width proportional to population, and a loading indicator displays until the data arrives.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.