Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
EEthan Pierce
Last edited Apr 5, 2021
Created on Apr 5, 2021

This example visualizes the CSS named colors dataset as a radial burst, with each color represented by a wedge-shaped slice in a circular SVG layout. The visualization loads data from a CSV file using D3’s `csv` utility, then employs React’s `useState` and `useEffect` to fetch and store the data. React renders each arc using D3’s `arc` and `pie` functions, generating paths filled with the hex values from the dataset. The code runs within an HTML page that imports React 16, ReactDOM, and D3 v5 via CDN.

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