Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3 Again

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed