Skip to main content
100%

Rendering Data with React & D3

✓ Published0🌍 Public
EEugenia Kim
Last edited Aug 29, 2020
Created on Aug 29, 2020

A radial burst of CSS named colors, each represented as a pie slice of equal size, fills a 960 by 500 SVG canvas. The code loads the color data as CSV from a GitHub gist using `d3.csv`, then renders each slice as a React `<path>` element whose fill is the color’s hex value. Arc geometry is computed with `d3.arc` and `d3.pie`, while React hooks `useState` and `useEffect` manage the asynchronous data loading and component state.

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