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
Nnayak-sarvesh12
Last edited Nov 17, 2021
Created on Nov 16, 2021
Forked from Mouse Follower

This example renders a pie chart of CSS named colors using React for component structure and D3 for data loading and shape generation. The code fetches a CSV of color names and hex values via `d3.csv`, then uses `d3.pie()` and `d3.arc()` to compute and draw SVG paths. Each slice is filled with its corresponding hex color, creating a full circular wheel where each color’s arc is equally sized.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed