Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
HHAORAN CHEN
Last edited May 1, 2021
Created on May 1, 2021

This example visualizes CSS named colors as a radial burst, with each color represented as a slice of a pie chart emanating from the center of an SVG canvas. The data is loaded from a CSV file via `d3.csv`, and React manages the application state with `useState` and `useEffect`. The pie slices are generated using D3’s `pie` and `arc` utilities, which compute the angular segments, while React renders each slice as an SVG `<path>` element, filling it with the corresponding hex value from the dataset.

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