Skip to main content
100%

Rendering Data with React & D3

✓ Published1🌍 Public
FFrederick O'Brien
Last edited Nov 11, 2021
Created on Nov 11, 2021

This example renders a dataset of CSS named colors as a circular donut chart using React and D3. Each slice represents a single color, filled with its corresponding hexadecimal value from a CSV file loaded via `d3.csv`. React manages the component state and lifecycle with `useState` and `useEffect`, while `d3.arc` and `d3.pie` compute the slice geometry. The chart is drawn as SVG paths, centered within a 960×500 viewport.

AI-generated description

A program that loads in some data and presents it with React.

MIT Licensed

Similar vizzes