Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
Pparsonsdjp
Last edited Dec 28, 2022
Created on Dec 28, 2022

This example shows a radial burst of CSS named colors loaded from a CSV file, with each color represented as a slice of a pie chart rendered as SVG. React manages the component state and lifecycle, fetching the data with `d3.csv` and storing it via the `useState` and `useEffect` hooks. D3’s `pie` generator and `arc` function compute the slice angles and path geometry, while React maps each data point to a `<path>` element filled with the color’s hex value. The visualization uses D3 v5 and React 16.9.

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