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)

c6af440862aa419896fbe1adf314ec8a

Fork of Rendering Data with React & D3

0 stars0🌍 Public
JJohanna Magdalena
Last edited Nov 25, 2021
Created on Nov 25, 2021

This example renders a radial burst of CSS named colors as an SVG, using React to manage the component state and D3 utilities to handle data loading and geometry. The code fetches a CSV of color names and hex values with `d3.csv`, then applies `d3.pie` and `d3.arc` to compute wedge shapes around a central point. Each colored path is filled with the corresponding hex value, while React’s `useState` and `useEffect` hooks coordinate loading and rendering.

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!