🌍 Public
Viewing a saved revision (read-only)
7e388330e0ee4604856b3bb719a6ee9e
Fork of Pie Chart React & d3
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 descriptionA program that loads in some data using d3 utilities, and uses react state to keep track of the data.