Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published1🌍 Public
Aamiteshwarr
Last edited Jan 19, 2023
Created on Jan 12, 2023
Forked from Pathetic Bar Chart

This visualization displays the top 10 most populous countries as a simple bar chart with no axes or labels. The bars are rendered as SVG rectangles using React, with heights determined by a d3.scaleBand and widths by a d3.scaleLinear. Data comes from the United Nations World Population Prospects 2019 dataset, loaded via d3.csv. The code uses React hooks like useEffect and useState to fetch and store the data, then maps each country to a colored rectangle in the SVG.

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