Skip to main content
100%

Rendering data with react

✓ Published0🌍 Public
Ssabredefable
Last edited Apr 14, 2021
Created on Apr 9, 2021

An interactive donut chart renders a dataset of CSS named colors fetched as CSV via React’s `useEffect` hook and `d3.csv`. Each color is represented as a slice using `d3.pie` and `d3.arc`, with the slice’s fill set to its corresponding RGB hex value. The React component manages loading state and maps the pie-arc data to SVG `<path>` elements, creating a full-circle visualization where every color appears once with no gaps. ReactDOM mounts the component into the page.

AI-generated description

see shit

MIT Licensed

Similar vizzes