🌍 Public
Viewing a saved revision (read-only)
14d06a7851694e0fb95c991a58abb02c
Rendering Data with React
This example renders a donut-shaped pie chart from a CSV of CSS named colors, using React to structure the component and D3’s `pie` and `arc` generators to compute the slices. Each slice is drawn as an SVG `<path>` filled with the corresponding hex value from the dataset. The chart is centered with a D3 arc outer radius matching the SVG width, and a loading message appears until the data is fetched asynchronously.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.