Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
HHowardHan99
Last edited Jan 8, 2022
Created on Jan 8, 2022

The visualization displays CSS named colors as a radial burst of pie slices, with each slice filled by its corresponding RGB hex value. It loads color data from a CSV file using `d3.csv`, then uses React with hooks (`useState`, `useEffect`) to manage the asynchronous data fetching and rendering. The pie layout is computed with `d3.pie()`, and each slice is drawn as an SVG `<path>` using `d3.arc()`. The example combines React's declarative component structure with D3's data manipulation and geometry utilities, rendering entirely in SVG.

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