🌍 Public
Viewing a saved revision (read-only)
789eb34d1bca4cdca01d1e4947074171
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