Lading data with React and D3
✓ Published1🌍 Public
This example displays a full-screen, color-coded pie chart built with React and D3. Clicking the mouse triggers a reload of the data, which is fetched from a CSV file of named CSS colors using `d3.csv`. The chart is rendered as SVG paths, with each slice’s color derived from the `RGB hex value` field and sized using `d3.arc` and `d3.pie`. A loading state shows plain text while data is being fetched.
AI-generated descriptionFollow the mouse and resize.
MIT Licensed