Skip to main content
100%

World Population Prospects Visualisation

✓ Published1🌍 Public
Aazharahmad0
Last edited Mar 26, 2021
Created on Mar 26, 2021

This example shows a horizontal bar chart of the top ten countries by population in 2020. It loads UN population data via `d3.csv`, transforms the numeric population column, and sorts by filtering the first ten rows. The visualization uses React with `useState` and `useEffect` to fetch data asynchronously, while D3's `scaleBand` and `scaleLinear` map country names and population values to SVG rectangles. The chart renders as a clean, unlabeled bar list against a white background using ReactDOM.

AI-generated description

A program that loads in some data about css named colors using D3 utitilities, and uses React render the data.

MIT Licensed

Similar vizzes