Skip to main content
100%

E20 Fork of Rendering Data with React & D3

✓ Published1🌍 Public
VVanessa
Last edited Mar 1, 2021
Created on Mar 1, 2021

A radial burst of CSS named colors is rendered as a pie chart, with each color category occupying a proportional slice. The visualization loads a CSV of color names and hex values from a GitHub gist, then uses React hooks (`useState`, `useEffect`) to fetch the data and D3 utilities (`csv`, `pie`, `arc`) to compute the slice angles and SVG paths. React renders the resulting `<path>` elements inside an SVG, filling each slice with its corresponding hex value. The layout centers the chart with a D3 arc generator and scales the outer radius to the full viewport width.

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!

MIT Licensed

Similar vizzes