🌍 Public
Viewing a saved revision (read-only)
4f725e49eec04a3e8bbf26ed57caf37c
Loading data with React & D3 #2
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 descriptionSmiley face implementation with React & D3.