Skip to main content
100%

Fork of Fork of Load data with react d3 ark

✓ Published1🌍 Public
Ssxtnxy
Last edited Dec 31, 2021
Created on Dec 30, 2021

This example displays a color wheel made from CSS named colors, arranged as a pie chart that fills the entire SVG canvas. The code uses React hooks (`useState`, `useEffect`) to fetch CSV data from a GitHub gist via `d3.csv`, then renders the visualization using `d3.pie` and `d3.arc` with SVG paths. Each slice’s fill is set to the hex value from the loaded data. The loading state shows a large "Loading..." text while data is being fetched.

AI-generated description

Making a smiley face with React and D3

MIT Licensed

Similar vizzes