Skip to main content
100%

Lading data with React and D3

✓ Published1🌍 Public
FFlorian Maas
Last edited Feb 24, 2022
Created on Feb 23, 2022

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 description

Follow the mouse and resize.

MIT Licensed

Similar vizzes