Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
PPiotr Paszek
Last edited Mar 14, 2021
Created on Mar 14, 2021
Forked from Stylized Bar Chart

A stylized bar chart displays the top 10 most populous countries from the 2019 United Nations World Population Prospects dataset, using horizontal bars colored teal against a light gray grid. The visualization is built with React and D3 v5, leveraging `scaleBand` for the y-axis categories and `scaleLinear` for the population values, rendered as SVG rectangles. The chart includes axis labels, tick marks, and tooltips that format population numbers using `format('.2s')` to abbreviate values like "1.2B". The data is fetched via `csv` from a remote gist, with the top 10 rows extracted for display.

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