Skip to main content
100%

Refactored bar chart

✓ Published0🌍 Public
TThiago Sawada
Last edited Mar 2, 2023
Created on Apr 15, 2021

This chart displays the top 10 most populous countries as horizontal bars ranked by population, with axes providing clear quantitative and categorical context. The visualization is built with React and D3 v5, using React components to render SVG elements while d3’s `scaleBand`, `scaleLinear`, and `format` handle positioning and tick labels. Data comes from the United Nations World Population Prospects 2019 CSV, processed through d3’s `csv` function. Tooltips on each bar reveal exact population values via native SVG `title` elements.

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