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
Mmuwu16
Last edited Aug 1, 2021
Created on Jul 30, 2021

This example renders a radial burst of CSS named colors as SVG paths, loading the data from a CSV via `d3.csv`. React manages the component state, using `useState` and `useEffect` to fetch the data, then maps each color to a wedge. The arcs are computed manually by dividing the circle into equal angles, with `d3.arc` generating the path geometry and the fill set to each color’s hex value. The visualization updates as data loads, showing a loading message initially.

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