Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Viewing a saved revision (read-only)

f566d177fdba4f74aa1d1d0b806b4acd

Fork of Rendering Data with React & D3

0 stars0🌍 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!