Skip to main content
100%

Loading data with React & D3 #2

✓ Published1🌍 Public
AAndrea Picciau
Last edited Oct 30, 2021
Created on Oct 30, 2021

A pie chart renders the 148 named CSS colors by mapping each row of the source CSV to an equal‑sized slice. Built with React 16.9 and D3 v5, it uses `d3.csv` to load the data asynchronously, then `d3.pie` and `d3.arc` to generate the SVG paths. The fill color of each slice is taken directly from the `RGB hex value` column, creating a color wheel from the dataset’s own values.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes