Skip to main content
100%

Fork of Fork of Stylized Bar Chart

✓ Published0🌍 Public
Iindushashi.g@gmail.com
Last edited Feb 2, 2024
Created on Feb 2, 2024

This interactive bar chart visualizes the top 10 most populous countries for 2020, using data from the United Nations World Population Prospects 2019. The visualization is implemented in React and uses d3’s `scaleBand` and `scaleLinear` to map country names and population values to SVG rectangles. A custom `useData` hook fetches the CSV data, and d3’s `format` function converts large numbers into abbreviated tick labels. The chart includes axes with styled ticks and a hover tooltip revealing the exact population via SVG `<title>` elements.

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