Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
PPratik Raja
Last edited Aug 8, 2024
Created on Aug 5, 2024

This example visualizes CSS named colors as a radial burst, with each color represented as a slice of a pie chart, creating a circular spectrum of color swatches. It loads the data from a CSV file using D3’s `csv` utility, then uses React with hooks (`useState`, `useEffect`) to fetch and render the SVG. The pie slices are computed with D3’s `pie` and `arc` functions, drawing each `path` with the fill set to the hex value from the data.

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