Skip to main content
100%

Loading Data with React and D3

✓ Published1🌍 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.

MIT Licensed

Similar vizzes