Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data with React & D3

Public visualization

Rendering Data with React & D3

0 stars2🌍 Public
RReinaFeng
Last edited Oct 2, 2019
Created on Sep 26, 2019

This example visualizes the CSS named color dataset as a radial burst of concentric, overlapping pie charts. Three separate pie arcs, built with `d3.arc`, create layered rings of colored slices, and these rings are repeated at three offset positions to form a clustered pattern. The code loads CSV data with `d3.csv` and uses React hooks like `useState` and `useEffect` to manage the data lifecycle and render the SVG. Each slice is colored directly by its corresponding hex value from the dataset, producing a vibrant, mosaic-like composition.

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