🌍 Public
Viewing a saved revision (read-only)
d4a2da94a42b419182e2d2893f5e9779
Visualizing data with React & D3
This example shows a color wheel of all CSS named colors, with each color represented as a slice of a pie chart. The visualization loads data from a CSV file of named colors and their RGB hex values using `d3.csv`, then renders each slice as an SVG path with `d3.arc` and `d3.pie`. React manages the data-fetching lifecycle with `useState` and `useEffect`, while ReactDOM renders the interactive SVG output.
AI-generated descriptionUses React to render the data.