Pathetic Bar Chart
✓ Published1🌍 Public
BBenoit Mouly
Last edited Jul 29, 2022
Created on Jul 29, 2022
Forked from Fork of Fork of Loading Data with React & D3
This visualization displays the top 10 most populous countries as a "pathetic" bar chart: bars are colored black, with no axes, labels, or any scaling context. The chart uses React with state management and effect hooks to fetch and process data from a CSV via `d3.csv`, then renders SVG rectangles. Bar lengths are computed with `d3.scaleLinear` against the population maximum, and vertical positioning uses `d3.scaleBand` over country names, though these scales are hidden from the final output.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar char with no axes.
MIT Licensed