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.