Fork of Fork of Loading data with React & D3.
✓ Published0🌍 Public
This example shows a pie chart of CSS named colors, with each slice filled by its corresponding RGB value. The code uses React’s `useState` and `useEffect` hooks to load a CSV from GitHub via `d3.csv`, then renders SVG paths with the `d3.arc` generator. The data source is a public gist containing color names and hex values.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed