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
Aabhashdiu
Last edited Oct 5, 2022
Created on Oct 5, 2022

A React application visualizes CSS named colors as a radial burst diagram, where each color occupies an equal slice of a pie chart. The code loads the dataset via `d3.csv` from a gist URL, then uses `d3.pie` and `d3.arc` to compute the slice geometry. React renders each slice as an SVG `<path>` element, with the fill set to the color’s hexadecimal RGB value from the data. The visualization uses a 960×500 viewport, centers the pie at its midpoint, and shows a loading state until the 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