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
SSunny
Last edited Aug 17, 2022
Created on Aug 17, 2022

This example visualizes the CSS named colors as a radial burst of pie slices, each filled with its corresponding RGB hex value. The visualization uses D3’s `csv` loader to fetch color data from a gist, and React’s `useState` and `useEffect` hooks manage the asynchronous data loading. The pie layout is computed with `d3.pie`, and each slice is rendered as an SVG `<path>` using `d3.arc` with an inner radius of zero, creating a full circle of color segments around a central point. React-DOM mounts the SVG into the page, with a loading fallback until data arrives.

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