World Population Prospects Visualisation
✓ Published1🌍 Public
Aazharahmad0
Last edited Mar 26, 2021
Created on Mar 26, 2021
Forked from Rendering Data with React and adding D3 Arcs
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 descriptionA program that loads in some data about css named colors using D3 utitilities, and uses React render the data.
MIT Licensed