Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
SSunny
Last edited Aug 28, 2022
Created on Aug 28, 2022
Forked from Stylized Bar Chart

This example presents the top 10 most populous countries as a horizontal bar chart, sorted by population. The visualization uses React to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` handling the axes and bar positioning. The data comes from the United Nations World Population Prospects 2019, loaded via D3’s `csv` function. Hovering over a bar reveals a tooltip formatted using D3’s `format` with SI prefixes, replacing 'G' with 'B' for billions.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes