🌍 Public
Viewing a saved revision (read-only)
986cfe3e50274f1a8a0b0e6973ff48e0
Loading data with React & D3
This visualization displays a donut chart of CSS named colors, with each slice representing a single color from a CSV dataset loaded from a GitHub gist. The React component uses the `useState` and `useEffect` hooks to asynchronously fetch the data with D3's `csv` function, then renders an SVG with D3's `pie` and `arc` generators. Each color's hex value fills its corresponding pie slice, creating a full circular spectrum.
AI-generated descriptionLoading data with React & D3