Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Ooussama-chaabouni
Last edited Jul 3, 2021
Created on Jul 3, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as colored rectangles with no axes, using React hooks (useState, useEffect) to load and transform CSV data. The d3.csv method fetches United Nations World Population Prospects 2019 data, while d3.scaleBand and d3.scaleLinear position and size the rectangles based on country names and 2020 population estimates. The chart renders as an SVG with React components, mapping each data row to a <rect> element.

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