Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
RRahel Gunaratne
Last edited May 12, 2021
Created on May 12, 2021

This example displays all CSS named colors as a full radial burst of filled arcs, where each slice represents one color from the dataset. It loads the CSS color data using D3's `csv` utility, then transforms it with `d3.pie` and renders each slice as an SVG `<path>` using `d3.arc`. React manages the component state and lifecycle, using `useState` and `useEffect` to fetch the data, while the pie chart assigns equal value to every entry to create the even distribution.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes