Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Viewing a saved revision (read-only)

879e00f51d024b01bc0845b9041896f3

Fork of Loading Data with React & D3

0 stars1🌍 Public
Uumgi
Last edited Feb 28, 2021
Created on Feb 28, 2021

This visualization displays a pie chart of CSS named colors, rendered as an SVG. It loads color data from a CSV file using `d3.csv` and manages the asynchronous loading state with React's `useState` and `useEffect` hooks. The chart is drawn using `d3.pie` and `d3.arc` to compute path geometries, with each slice filled by the color's hex value from the dataset.

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.