Skip to main content
100%

Loading data with React and D3

✓ Published0🌍 Public
Vvarun-j312
Last edited May 21, 2021
Created on May 19, 2021
Forked from Mouse follower

A donut chart of CSS named colors loads and renders as a circular spectrum of 148 colored arcs. The example demonstrates asynchronous data loading with React hooks and D3. It uses `useState` and `useEffect` to fetch a CSV file via `d3.csv`, then maps each row to an arc via `d3.pie` and `d3.arc`. Each path is filled with the row’s ’RGB hex value’ and rendered in an SVG. React 17 manages the component lifecycle while D3 v6 handles the data parsing and geometry.

AI-generated description

CSS named color data visualisation.

MIT Licensed

Similar vizzes