Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading data with React and D3

Public visualization

Fork of Loading data with React and D3

0 stars1🌍 Public
AAlex Stulov
Last edited Jul 12, 2021
Created on Jul 12, 2021

A pie chart displays the full set of CSS named colors, loaded from a CSV file using `d3.csv` within a React component. The chart uses `d3.pie` and `d3.arc` to generate SVG `path` elements, with each slice filled by its corresponding RGB hex value from the data. The visualization updates via React state and `useEffect`, rendering a loading message until the data arrives.

AI-generated description

Mouse follower

Comments

Sign in to join the discussion.

MIT Licensed