Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data React & D3

Public visualization

Viewing a saved revision (read-only)

ea3b41a1188c44f2bb1989b3e533b610

Fork of Rendering Data React & D3

0 stars1🌍 Public
RRedSorrel
Last edited Sep 16, 2021
Created on Sep 16, 2021

This example displays all named CSS colors as a radial burst of pie slices, each filled with its corresponding color, creating a full circular spectrum. It loads color data from a remote CSV file using D3’s `csv` utility, then uses React state (`useState`, `useEffect`) to fetch and store the data. The visualization is rendered as an SVG, with D3’s `pie` and `arc` functions computing the slice angles and paths, all positioned around a central point.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, as a radial burst and uses React state to keep track of the data.