🌍 Public
Viewing a saved revision (read-only)
d96095869a8a4d8995a501f4655140af
Rendering Data with data
A circular sunburst chart renders all named CSS colors as a single pie, with each slice’s fill matching the color it represents. The visualization loads a CSV of color names and hex values via `d3.csv`, then uses `d3.pie` and `d3.arc` to compute the slice geometry. Each path’s fill is set directly from the row’s ‘RGB hex value’ field, while React’s `useState` and `useEffect` manage the asynchronous data loading and component rendering as an SVG.
AI-generated descriptionFirst thing I did using d3 with react...