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)

82a70dfc118c4bd29e0a8d7686af6565

Fork of Rendering Data with React & D3

0 stars0🌍 Public
GGordon Yang
Last edited Apr 6, 2021
Created on Apr 6, 2021

This example renders a radial burst visualization of CSS named colors using React and D3. The code loads color data from a CSV file via the `csv` function, then uses `pie` and `arc` from D3 to compute the angular segments. Each segment is rendered as an SVG `path` with its fill color set to the corresponding CSS color value, creating a full circular display. The React component manages the data asynchronously with `useState` and `useEffect`, showing a loading message until the 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!