Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
DDamian Grzanka
Last edited May 3, 2021
Created on May 3, 2021
Forked from Pathetic Bar Chart

This example presents the top 10 most populous countries as a minimal bar chart, entirely devoid of axes, labels, or scale indicators. The visualization, rendered as SVG, computes bar lengths from population values using D3’s `scaleLinear` for the width and `scaleBand` for vertical placement. Data loads asynchronously from a United Nations World Population Prospects 2019 CSV via D3’s `csv` function, then is sliced to the top ten rows. The React `App` component manages state changes, while bars are drawn as simple `<rect>` elements within an SVG canvas.

AI-generated description

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

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes