Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3 Again

Public visualization

Viewing a saved revision (read-only)

e73ad339d43d49a3a258e2e9fe2b06c6

Fork of Rendering Data with React & D3 Again

0 stars1🌍 Public
Tthomasjungcoe
Last edited Mar 12, 2021
Created on Mar 11, 2021

This visualization displays all CSS named colors as a circular pie chart where each color occupies an equal slice. The application loads color data from a CSV file using `d3.csv`, then uses React's `useState` and `useEffect` hooks to manage the asynchronous data fetching and rendering. The chart is constructed with `d3.pie` and `d3.arc`, generating SVG paths filled with each color's corresponding hex value, centered within a 960 by 500 viewport.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.