Fork of Rendering Data with React & D3
✓ Published0🌍 Public
This visualization renders a radial burst of CSS named colors using React and D3. It loads color data from a CSV file via `d3.csv`, then maps each color to a pie slice using `d3.pie` and `d3.arc`. The React component displays the slices as SVG paths, with each slice’s fill set to its corresponding hex value. The code also includes an alternative manual arc calculation approach, commented out, using trigonometric formulas. A loading state is shown until the data is fetched.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!
MIT Licensed