Skip to main content
100%

render data with React and d3

✓ Published0🌍 Public
SSophia Cofone
Last edited May 20, 2022
Created on May 20, 2022

A full-circle pie chart displays all 148 CSS named colors by loading data from a GitHub gist via `d3.csv`. React manages the data state and renders each color as an SVG path using `d3.pie` to compute angles and `d3.arc` to generate the path geometry. The visualization shows every color as a single slice, filled with its corresponding hex value, demonstrating a minimal integration of React’s declarative component model with d3’s data utilities and SVG rendering.

AI-generated description

Program that loads in some data about CSS named colors using d3 utilities and uses React render the data.

MIT Licensed

Similar vizzes