Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React and D3

Public visualization

Viewing a saved revision (read-only)

02995c6dcf9347798c42c8de5180ebe7

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.