Skip to main content
100%

Pathetic Bar Chart

✓ Published1🌍 Public
BBenoit Mouly
Last edited Jul 29, 2022
Created on Jul 29, 2022

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 description

A program that shows the top 10 most populous countries as a pathetic bar char with no axes.

MIT Licensed

Similar vizzes