Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data with React & D3

Public visualization

Viewing a saved revision (read-only)

7be6b76840ca4af4b82d09cbf0a039c7

Rendering Data with React & D3

0 stars1🌍 Public
Nnicholasgonzalez1
Last edited Jun 22, 2021
Created on Jun 22, 2021

A React and D3 pie chart renders the CSS named colors dataset as a full-screen SVG donut. The code loads CSV data from a GitHub gist using `d3.csv`, then builds each slice with `d3.pie` and `d3.arc`. Each path’s fill is set directly from the `RGB hex value` column in the data, producing a color wheel that displays all named CSS colors in a single circular layout.

AI-generated description