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