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)

0ac1b276507e496ca7344c469ca625f8

Fork of Rendering Data with React & D3

0 stars0🌍 Public
RRahel Gunaratne
Last edited May 12, 2021
Created on May 12, 2021

This example displays all CSS named colors as a full radial burst of filled arcs, where each slice represents one color from the dataset. It loads the CSS color data using D3's `csv` utility, then transforms it with `d3.pie` and renders each slice as an SVG `<path>` using `d3.arc`. React manages the component state and lifecycle, using `useState` and `useEffect` to fetch the data, while the pie chart assigns equal value to every entry to create the even distribution.

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!