Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Fork of Rendering Data with React & D3

0 stars0🌍 Public
Pphampir
Last edited Aug 10, 2021
Created on Aug 10, 2021

This example displays all CSS named colors as a radial burst of pie slices, with each slice filled by its corresponding RGB hex value. The visualization loads color data from a CSV file using D3’s `csv` utility, while React manages component state and rendering via hooks like `useState` and `useEffect`. D3’s `pie` and `arc` generators compute the slice angles and SVG path geometry. React renders each slice as an SVG `<path>` element, and the app falls back to a loading message until the 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