Skip to main content
100%

test

✓ Published0🌍 Public
AAlbert Zarate
Last edited Aug 1, 2021
Created on Aug 1, 2021

This example displays CSS named colors as a radial burst of pie slices, each representing one color from a CSV dataset. The visualization uses React hooks to load the data with `d3.csv` and compute the pie layout using `d3.pie`, while `d3.arc` generates the SVG path for each slice. Rendering is handled via React’s `ReactDOM.render`, producing a full-circle arrangement where every color occupies an equal arc segment. The data originates from a remote CSV listing color names and their RGB hex values, which directly set the fill of each path.

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