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)

33936df06f3f4dc38d63ecb7efd7b576

Fork of Rendering Data with React & D3

0 stars0🌍 Public
Hhimchan94
Last edited Feb 13, 2022
Created on Feb 13, 2022

This example visualizes CSS named colors as a radial burst, with each color represented by a pie slice emanating from the center of an SVG canvas. It loads color data from a CSV file using D3’s `csv` utility, then relies on React hooks (`useState`, `useEffect`) to manage the asynchronous data fetch and rendering. The pie layout and arc paths are generated with D3’s `pie` and `arc` functions, while React elements construct the SVG paths, filling each slice with its corresponding hexadecimal color value.

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!