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
Kkatebacon32
Last edited Apr 5, 2021
Created on Apr 1, 2021

This example shows a radial burst visualization of CSS named colors, with each color occupying a single pie slice arranged around a central point. The code loads a CSV dataset of named colors using D3’s `csv` utility, then uses React’s `useState` and `useEffect` hooks to manage asynchronous data loading. D3’s `pie` function computes the angular layout, while the `arc` generator draws each SVG `<path>` with the fill color taken from the dataset’s `'RGB hex value'` column. The visualization demonstrates a React component rendering D3-computed geometry directly into SVG elements.

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