Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Viewing a saved revision (read-only)

1ddb8aefc0014bd4804d92fe83448ae0

Fork of Rendering Data with React & D3

0 stars0🌍 Public
BBjoernujjwb
Last edited Jan 6, 2023
Created on Jan 6, 2023

This radial burst visualization displays all CSS named colors as equal-sized slices arranged in a circle. The code loads color data from a CSV file using D3’s `csv` utility, then uses React with `useState` and `useEffect` to manage the asynchronous data fetch and rendering. D3’s `pie` and `arc` functions compute the pie geometry, while each slice is drawn as an SVG `path` with its fill color set directly from the data’s RGB hex values.

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!