Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data with data

Public visualization

Rendering Data with data

0 stars0🌍 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...

Comments

Sign in to join the discussion.

MIT Licensed