Colors Pie Chart using React and D3
✓ Published1🌍 Public
A radial burst of 148 CSS named colors, each rendered as a wedge from the center to the outer edge of an SVG. The example loads a CSV of color names and hex values using d3.csv, then applies d3.pie() and d3.arc() to compute the geometry for each path. React manages the component state and renders the SVG paths, with each wedge filled by its corresponding RGB hex value. The code also includes commented alternatives using d3.arc() directly and a horizontal-line layout.
AI-generated descriptionA program tha loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!
MIT Licensed