Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
Mmlscmoulika
Last edited May 24, 2021
Created on May 24, 2021

This example visualizes CSS named colors as a full-screen radial burst, with each color occupying an equal-width slice around a central point. It uses React hooks (`useState`, `useEffect`) to asynchronously load the CSV dataset via D3’s `csv` utility, then renders SVG `<path>` elements computed with `d3.pie()` and `d3.arc()`. The fill for each slice directly maps to the color’s hexadecimal value from the data, while a simple loading state shows before data arrives.

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