Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Ep20 Visualizing with React D3 tryPie

Public visualization

Fork of Ep20 Visualizing with React D3 tryPie

0 stars1๐ŸŒ Public
GGordon Yang
Last edited Apr 7, 2021
Created on Apr 7, 2021

A pie chart displays the CSS named colors as equal-sized slices, each filled with its corresponding RGB hex value. The visualization loads color data from a CSV gist using `d3.csv` and renders slices with `d3.pie()` and `d3.arc()` inside a React component. The chart uses React hooks for state management and renders SVG paths within a centered group, with D3 v6 handling the data-to-geometry transformation.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed