Fork of Pathetic Bar Chart
This example displays the top 10 most populous countries in 2020 as a bare bar chart without any axes, labels, or scales shown. The data comes from the United Nations World Population Prospects 2019 dataset, loaded via `d3.csv`. The visualization uses React with `useState` and `useEffect` hooks to fetch and store the data, then renders SVG rectangles positioned with `d3.scaleBand` and sized by `d3.scaleLinear`. Red gridlines are drawn at each tick of the x-axis using D3’s `ticks()`, though no tick labels appear.