Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

color pie chart

Public visualization

Viewing a saved revision (read-only)

17fc955c8b2741acb176dfe7785399c7

color pie chart

0 stars0🌍 Public
PPUUDI
Last edited Nov 27, 2021
Created on Nov 27, 2021

This example visualizes the CSS named colors dataset as a radial burst of equal-width slices, with each slice filled with its corresponding color hex value. The visualization loads data from a CSV file using the `d3.csv` utility, then renders it as SVG paths via React. Each wedge is drawn with the `d3.arc` function, which computes the path based on calculated start and end angles derived from the data index. The code demonstrates manual angle computation rather than relying on `d3.pie`, and uses React state and effects for asynchronous data loading.

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!