Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published1🌍 Public
EEugenio2192
Last edited Jul 6, 2021
Created on Jul 6, 2021

This visualization displays all CSS named colors as a radial burst, with each color occupying an equal-width slice arranged around a central point. The code loads the CSS color dataset using D3’s `csv` utility, then uses React hooks like `useState` and `useEffect` to manage the asynchronous data fetching and rendering. It leverages D3’s `pie` and `arc` generators to compute the slice geometry, drawing the result as SVG paths with colors taken from the `RGB hex value` column. React 16.9 and D3 v5 run together, with the d3 shape calculations feeding React’s declarative SVG output.

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