Fork of Pathetic Bar Chart
✓ Published0🌍 Public
This example visualizes the top 10 most populous countries as a pathetic bar chart, with no axes or labels, using rectangles sized by population values from the United Nations World Population Prospects 2019 dataset. The chart uses React hooks to fetch and parse CSV data via `d3.csv`, then renders SVG bars with `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. The bars are drawn as SVG `<rect>` elements, with widths proportional to each country’s 2020 population estimate.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed