Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data with React and D3

Public visualization

Rendering Data with React and D3

0 stars1🌍 Public
RRMartins11
Last edited May 3, 2021
Created on May 3, 2021

This visualization displays CSS named colors as a radial burst, with each color represented by a wedge-shaped slice arranged around a central point. The code loads color data from a CSV file using D3’s `csv` utility, then uses `d3.pie` and `d3.arc` to compute the slice geometries. React renders each slice as an SVG `<path>` element, with the fill color set from the `RGB hex value` column. A yellow background circle with a black stroke provides contrast behind the colorful wedges.

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.

Comments

Sign in to join the discussion.

MIT Licensed