Skip to main content
100%

Fork of Rendering data with React.

✓ Published1🌍 Public
Bbsolomon103
Last edited Jan 28, 2022
Created on Dec 29, 2021

This visualization displays the 148 named CSS colors as a circular pie chart, with each color represented as a slice of equal angular width. The chart loads color data from a CSV file using D3’s `csv` utility, then renders each slice as an SVG `<path>` element via React. The code uses `d3.pie` to compute arc segments and `d3.arc` to generate the path data, with each slice’s fill color taken from the dataset’s RGB hex values. The React app manages the asynchronous data loading with hooks like `useEffect` and `useState`, and renders the result inside an SVG canvas.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities and uses React to render the data.

MIT Licensed

Similar vizzes