🌍 Public
Viewing a saved revision (read-only)
2d7e363819ab4c6bbb5f06037771cf16
Fork of Pathetic Bar Chart
This example displays the top 10 most populous countries as a series of horizontal rectangles, with no axes or labels, using a “pathetic” bar chart style. The chart loads UN World Population Prospects 2019 data via `d3.csv`, then uses React hooks (`useState`, `useEffect`) to manage state and fetch the data. It renders SVG rectangles scaled with `d3.scaleBand` for the y-axis positioning and `d3.scaleLinear` for the x-axis widths, based on the 2020 population values.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.