Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React and D3

Public visualization

Loading Data with React and D3

0 stars1🌍 Public
JJosh Zalcman
Last edited Mar 8, 2022
Created on Mar 7, 2022
Forked from Mouse Follower

This example shows a donut chart where each slice represents a color from a CSV file. The chart is generated by loading the data with `d3.csv`, then computing the pie slices with `d3.pie` and `d3.arc`. Hovering over a slice displays the color name below the SVG. The visualization is built with React, using `useState` and `useEffect` to manage the asynchronous data loading and rendering.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed