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)

b88236ace7c44f1994ac0c1b6325a69f

Fork of Rendering Data with React & D3

0 stars0🌍 Public
Jjerryren527
Last edited Jun 9, 2023
Created on Jun 9, 2023

This example shows a radial burst of CSS named colors, with each color as a slice of a full circle. The visualization loads color data from a CSV file using `d3.csv`, then processes it through `d3.pie` and `d3.arc` to generate SVG path geometry. React manages the component state and renders the paths, mapping each color’s hex value to the fill attribute. The code also includes a commented manual arc calculation as an alternative to `d3.pie`.

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!