🌍 Public
Viewing a saved revision (read-only)
1dae3fd9d8d744159b3420f8c532057b
Rendering data with React and D3
This example displays a full-color donut chart of CSS named colors, rendered as SVG paths. It uses React hooks (useState, useEffect) to asynchronously load the dataset from a CSV via d3.csv, then computes pie angles with d3.pie and draws arcs with d3.arc. Each slice is filled using the color’s hex value from the data.
AI-generated descriptionRendering Data with React and D3