Fork of Pathetic Bar Chart
✓ Published1🌍 Public
This example renders a deliberately minimal bar chart of the top 100 countries by population, drawn as plain SVG rectangles without any axes or labels. The chart uses React’s `useState` and `useEffect` hooks to load and store data fetched via `d3.csv` from the United Nations World Population Prospects 2019 dataset, selecting only the first 100 entries. Scales are built with `scaleBand` for country categories on the y-axis and `scaleLinear` for population values on the x-axis, mapping each bar’s width to that population. The visual results in a sparse, unadorned layout that emphasizes raw magnitude over context.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed