Skip to main content
100%

United Nations Data for World Population

✓ Published1🌍 Public
JJohn Patrick Banas
Last edited Sep 10, 2021
Created on Sep 10, 2021
Forked from Use d3 arcs

This example visualizes the top 10 most populous countries in 2019 using a horizontal bar chart. The chart loads United Nations population data from a CSV file via `d3.csv` and processes each row to extract the `2019` population value. React state manages the loaded data, and D3’s `scaleBand` and `scaleLinear` position and size the SVG rectangles. The visualization is rendered with React and SVG, showing population counts as bar widths.

AI-generated description

A program that loads in some data about CSS colors using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes