Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart

Public visualization

Bar Chart

0 stars0🌍 Public
Ggujjapooja7@gmail.com
Last edited May 7, 2023
Created on May 7, 2023
Forked from HTML Starter

This bar chart displays the top 10 most populous countries for 2020, using horizontal bars without any axes or labels. The chart uses React with a `useState` hook and `useEffect` to load and parse data from a CSV file via D3’s `csv` function, then applies `scaleBand` and `scaleLinear` to map countries and populations to SVG rectangle positions and widths. Data comes from the United Nations World Population Prospects 2019 dataset.

AI-generated description

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

Data: United Nations World Population Prospects 2019

Comments

Sign in to join the discussion.

MIT Licensed