Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
NNick Hartmann (Data Science)
Last edited Sep 9, 2021
Created on Sep 6, 2021
Forked from Mouse Follower

A React component uses the useEffect hook to load a CSV of CSS named colors with d3.csv, storing the result in state. Once loaded, it renders an SVG donut chart where each slice is a path generated by d3.arc, with the fill color set from the CSV's hex value column. The visualization demonstrates asynchronous data loading in React while leveraging D3's arc generator for geometric layout.

AI-generated description

A program that loads in some data using d3 utilities and uses react state to keep track of that data

MIT Licensed

Similar vizzes