Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data With React & D3

Public visualization

Rendering Data With React & D3

0 stars1🌍 Public
AAngel Lam
Last edited Mar 15, 2021
Created on Mar 15, 2021

A horizontal bar chart displays the top ten countries by 2020 population, using a CSV of UN population data loaded with D3's `csv` utility. React manages the application state with `useState` and `useEffect`, rendering SVG `<rect>` elements for each bar. The chart uses `scaleBand` for country categories on the y-axis and `scaleLinear` for population values on the x-axis, with a loading message shown before data arrives.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed