🌍 Public
Viewing a saved revision (read-only)
aca40382977b43a9935baa322eb83b72
d3_firsttask
This example visualizes a dataset of CSS named colors as a pie chart, where each slice represents a color and is filled with its corresponding RGB hex value. The code uses React with hooks to asynchronously load CSV data from a gist via `d3.csv`, then builds the chart using `d3.pie` and `d3.arc` in an SVG. Each slice is rendered as a path with equal value weighting, and the entire pie is centered within a fixed 960×500 viewport.
AI-generated descriptionReact Starter code.