Skip to main content
100%

Rendering UN_Population_Data with React & D3

✓ Published1🌍 Public
Tthomasjungcoe
Last edited Mar 12, 2021
Created on Mar 12, 2021

This example visualizes UN population data from a CSV file, displaying the nine most populous countries as horizontal bars in an SVG. The React app loads the data with d3.csv, then uses React state to manage the dataset before rendering. D3's scaleBand and scaleLinear map country names and population values to pixel coordinates for each bar. The code specifically imports arc, pie, and max from d3, though only the scales and max are used in this bar chart rendering.

AI-generated description

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

MIT Licensed

Similar vizzes