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)

b22b0fcc68ab40f2b04ad6edfdcf943c

Fork of Rendering Data with React & D3

0 stars0🌍 Public
AAnkit-Ian-53787
Last edited Oct 20, 2021
Created on Oct 20, 2021

This example visualizes CSS named colors as a radial burst of pie slices, each colored by its corresponding hex value. The visualization loads data from a CSV file using D3's `csv` utility, then uses React to render an SVG containing the pie chart. The pie layout is computed with D3's `pie` function, while each slice is drawn as an SVG path using the `arc` generator. The React component manages state and renders the final visualization, with a simple loading message shown 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!