Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Fork of Rendering Data with React & D3

0 stars0🌍 Public
Pparidhi
Last edited Mar 13, 2022
Created on Mar 13, 2022

This visualization displays CSS named colors as a single, full-screen radial burst, with each color represented as one slice of a pie chart. Using React’s `useState` and `useEffect` hooks, it fetches the CSV data with `d3.csv`, then maps each row to an SVG `<path>` element rendered by ReactDOM. The pie slices are drawn with `d3.arc()`, filling each path with the color’s hex value.

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!

Comments

Sign in to join the discussion.

MIT Licensed