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)

1aecd78660a44408b90999ece3d922da

Fork of Rendering Data with React & D3

0 stars1🌍 Public
RRyan Murry
Last edited Jun 18, 2021
Created on Jun 18, 2021

A radial burst visualization displays CSS named colors as a pie chart, with each color mapped to a slice radiating from the center of an SVG canvas. The example loads color data from a CSV file using D3’s `csv` utility, then passes it to React components that render the paths. The `d3.pie` layout computes slice angles, while the `d3.arc` generator creates the SVG path shapes, with each slice filled by the color’s hex value. React’s `useState` and `useEffect` hooks manage data loading and state updates.

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!