Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart with D3

Public visualization

Pie Chart with D3

0 stars1🌍 Public
Rrickyphula
Last edited Nov 12, 2021
Created on Nov 12, 2021

This example renders a pie chart using D3 and React. It loads color data from a CSV file and maps each row to a thin colored div, creating a stacked bar visualization. The code uses D3’s `csv` function to parse the remote dataset, and React’s `useState` and `useEffect` to manage data loading. The page is a full-window SVG with a smiley face drawn from circles, though the active display shows the data-driven colored stripes.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed