Skip to main content
100%

Rendering Data With React & D3

✓ Published1🌍 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

MIT Licensed

Similar vizzes