Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data with React & D3

Public visualization

Rendering Data with React & D3

0 stars0🌍 Public
SSushan Prajapati
Last edited May 25, 2021
Created on May 24, 2021
Forked from React Starter

A radial burst of CSS named colors, rendered as a pie chart where each slice represents a single color and is filled with its corresponding hex value. The visualization loads color data from a CSV file via `d3.csv`, then uses React's `useState` and `useEffect` hooks to fetch and store the data. The `d3.pie` function calculates slice angles, while `d3.arc` generates the SVG path data for each wedge, which React renders as SVG elements.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

Comments

Sign in to join the discussion.

MIT Licensed