Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart React & d3

Public visualization

Viewing a saved revision (read-only)

7e388330e0ee4604856b3bb719a6ee9e

Fork of Pie Chart React & d3

0 stars0🌍 Public
Aalexcholmsky
Last edited May 9, 2022
Created on May 9, 2022

This interactive pie chart visualizes a categorical color palette dataset loaded from a CSV file via `d3.csv`. The React component manages the data with `useState` and `useEffect`, rendering an SVG where each slice corresponds to a row, filled with its `RGB hex value`. The chart uses `d3.pie` and `d3.arc` to compute and draw the pie geometry, with a large outer radius creating a striking radial composition. Data loads asynchronously, displaying a "Loading..." message until ready.

AI-generated description

A program that loads in some data using d3 utilities, and uses react state to keep track of the data.