Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
Aalfredwang0707
Last edited May 11, 2021
Created on May 11, 2021

This example visualizes United Nations population data from 2019 using React and D3. It loads the CSV dataset with `d3.csv` and renders the country values as a radial burst of colored arcs in an SVG. The code constructs a band scale with `scaleBand` for positioning, while commented-out sections show how `arc` and `pie` would compute angular segments, and a scaleLinear is prepared for potential x-axis mapping. React’s `useState` and `useEffect` hooks manage asynchronous data loading, displaying a loading message until the dataset 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