🌍 Public
Viewing a saved revision (read-only)
6bd984ec7d40445dbaa290a31dfc3c1b
Fork of Rendering data with react d3 arc
This example renders the CSS named colors as a full circular pie chart using React and D3 (v7). It loads color names and hex values from a CSV via `d3.csv`, then draws each slice as an SVG path generated with `d3.arc`, mapping each color name to an equal angular segment. The chart uses a simple `d3.pie` layout with a value of 1, and React manages the state for asynchronous data loading, displaying “Loading” until the CSV arrives.
AI-generated descriptionprograms that loads some data using D3 utilities