Skip to main content
100%

Rendering data with react

✓ Published1🌍 Public
Mmarianamartins87
Last edited Mar 6, 2021
Created on Mar 5, 2021
Forked from Mouse follower

A donut chart displays all CSS named colors, with each color represented as a slice of equal size. The React application loads color data from a CSV file using `d3.csv()`, then uses the `d3.pie()` and `d3.arc()` generators to compute and render SVG paths. React hooks like `useState` and `useEffect` manage the asynchronous data loading, while each path’s fill is set from the `RGB hex value` column in the dataset.

AI-generated description

a program that loads some data about css named colors uses react to render data

MIT Licensed

Similar vizzes