Skip to main content
100%

Dataviz 6 - Bar chart with React and D3

✓ Published1🌍 Public
RRyAlpha
Last edited Nov 24, 2021
Created on Nov 24, 2021
Forked from Pathetic Bar Chart

A bar chart displays the top 10 most populous countries from the UN World Population Prospects 2019 dataset. The visualization shows horizontal bars whose lengths correspond to each country's 2020 population, rendered as SVG rectangles. React manages the component state, loading data via the `csv` function from D3 v5, while `scaleBand` and `scaleLinear` position the bars and map population values to widths. The chart intentionally omits axes, presenting only the ranked bars.

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