Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data with React & D3

Public visualization

Viewing a saved revision (read-only)

3d7145527bb9412e8625abcd31b672c1

Rendering Data with React & D3

0 stars0🌍 Public
LLicheng Zhang
Last edited May 25, 2021
Created on May 23, 2021
Forked from Mouse Follower

This example shows the ten most populous countries from a 2019 UN population dataset, rendered as horizontal bars in an SVG chart. React 16 manages the component state and loading screen, while D3 v6 utilities (`csv`, `scaleBand`, `scaleLinear`, `max`) handle data fetching and scaling. The code converts each country’s 2020 population value to a numeric field and maps it to a bar width using a linear scale, with bands for each country name.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to render the data as a radial burst!