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)

47b90ec6ef864eeebd23968840a23cf8

Fork of Rendering Data with React & D3

0 stars0🌍 Public
Ssimontoblad
Last edited Jan 28, 2022
Created on Jan 27, 2022

This example displays a radial burst visualization of CSS named colors, using each color’s RGB hex value to fill a pie slice of equal size. The visualization loads data from a remote CSV file via D3’s `csv` utility, then uses React with hooks like `useState` and `useEffect` to manage the asynchronous data loading. The rendering is done in SVG, with D3’s `pie` and `arc` functions computing the slice geometry, while React maps each data point to a `<path>` element.

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!