Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Datavis 2020 Episode 20 - Visualizing Data with React & D3

Public visualization

Viewing a saved revision (read-only)

04696b8ec6e74199bb0430f4eb4b4f79

Datavis 2020 Episode 20 - Visualizing Data with React & D3

0 stars1🌍 Public
RRichard Burd
Last edited Jan 4, 2022
Created on Jan 4, 2022

A pie chart displays every CSS named color as a wedge with equal angular size, filled with its corresponding hex value. The chart uses React state to load the color data via `d3.csv`, then computes the arc paths with D3's `pie` and `arc` generators. Rendering occurs in an SVG, with the pie centered in a 960×500 viewport. Loading text appears before the data arrives.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to render the data.