Pie chart of CSS colours
✓ Published1🌍 Public
This example displays a pie chart where each slice corresponds to a CSS named color, filled with its own RGB hex value. The chart uses d3.csv to load color data from a GitHub gist, d3.pie to compute arc angles, and d3.arc to generate SVG path shapes. React manages the component state and renders the SVG elements, with a loading message shown before data arrives. The chart is rendered at 960 by 500 pixels with the pie centered and extending to the full chart width.
AI-generated descriptionA program that loads in some data about CSS named colours with d3 and uses react to reder data
MIT Licensed