Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React & D3

Public visualization

Viewing a saved revision (read-only)

dbad51a1649042189aefff180086a732

Loading Data with React & D3

0 stars0🌍 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