Pie Chart Render of CSS Color Data in React & D3
✓ Published1🌍 Public
RRichardPearce60
Last edited Jan 28, 2022
Created on Jan 28, 2022
Forked from Loading and Visualizing Color Data in React & D3
This visualization renders all 148 CSS named colors as segments of a single pie chart, using each color's actual hex value as its fill. The chart is built with React 17 and D3 v7, loading data from a CSV file of CSS color names. The code uses `d3.pie()` to compute arc angles and `d3.arc()` to generate SVG path shapes. Each segment is equally sized, and the resulting ring displays the full spectrum of named colors in a circular arrangement.
AI-generated descriptionBasic [Data CCS Named Colors] (https://gist.githubusercontent.com/curran/b236990081a24761f7000567094914e0/raw/cssNamedColors.csv) Loading using React and D3
MIT Licensed