Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Viewing a saved revision (read-only)

89882fb774e343ca9b53cd037850aa51

Fork of Rendering Data with React & D3

0 stars1🌍 Public
FFulvio Vigilante
Last edited Jul 15, 2021
Created on Jul 14, 2021

This example shows a bar chart of the ten most populous countries in 2020, using a horizontal layout where bar length encodes population size. It loads data from a CSV file containing UN population estimates, parses the population column as a number, and filters to the first ten rows. React manages the component state, while D3’s `csv` loader, `scaleBand` for country categories, and `scaleLinear` for population values determine the SVG rectangle positions and dimensions.

AI-generated description

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