Rendering Data with React & D3
✓ Published2🌍 Public
This example shows a radial burst of CSS named colors, with each color rendered as a slice in a pie chart. It loads data from a CSV of CSS color names using D3’s `csv` utility, then uses React hooks (`useState`, `useEffect`) to fetch and store the data. The slices are computed with D3’s `pie` and `arc` generators, while React renders each as an SVG `<path>` filled with the corresponding hex value.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!
MIT Licensed