Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published1🌍 Public
Sstephanie0215
Last edited Sep 28, 2022
Created on Sep 28, 2022

This visualization displays the CSS named colors as a circular pie chart, with each color category represented by a wedge sized proportionally to its index in the dataset. The React application loads data from a CSV file containing CSS color names and their RGB hex values using D3’s `csv` function, then uses React state to manage the loading process. Each wedge’s path is generated with the D3 `arc` and `pie` APIs, creating arcs that extend from the center to the outer edge of the screen. The final SVG output is rendered using ReactDOM, which maps over the loaded data to create the colored paths.

AI-generated description

A program that loads in some data using D3 utilities, and uses REACT state to keep track of the data.

MIT Licensed

Similar vizzes