Skip to main content
100%

Rendering Data with data

✓ Published0🌍 Public
Ttknaik
Last edited Oct 22, 2021
Created on Oct 22, 2021
Forked from React Starter

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 description

First thing I did using d3 with react...

MIT Licensed

Similar vizzes