🌍 Public
Viewing a saved revision (read-only)
96db4f34f3c246e5b95625b089b3d6a3
Fork of Rendering Data with React
This example visualizes CSS named colours as a uniform pie-like arrangement of filled SVG wedges, each coloured by its corresponding hex value from a CSV dataset. The React component loads the data using `d3.csv` and renders each wedge as a React `<path>` element with `d3.arc`, mapping every colour to the same fixed angle span. The SVG is centered on a 960x500 canvas, and the page displays a loading message until the data arrives.
AI-generated descriptionA program that loads in some data about CSS named colours using D3 utilities and uses React render the data.