Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Viewing a saved revision (read-only)

e2f46824315a4b13be8c40d1e4ab6b77

Fork of Rendering Data with React & D3

0 stars1🌍 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!