🌍 Public
Viewing a saved revision (read-only)
993118f9fb5c4e8197fe6fa2bd32ac6e
Ep. 20 - D3.pie() & D3.arc()
This example shows a full-screen radial burst of colored wedges, each representing a named CSS color from a CSV dataset loaded via D3’s `csv` utility. Using React with hooks, the code fetches the data once with `useEffect`, then renders each row as an SVG path generated by `d3.pie()` and `d3.arc()`. Every arc is filled with its corresponding CSS color hex value, creating a complete circular chart that highlights the variety of named colors.
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!