Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Visualizing CSS Colors - d3Arc

Public visualization

Visualizing CSS Colors - d3Arc

0 stars0🌍 Public
Bbrunoevione
Last edited Mar 22, 2021
Created on Mar 22, 2021

This visualization displays all CSS named colors as equal-sized slices in a circular arc chart rendered as an SVG. The data is loaded from a CSV file using D3’s `csv` utility, and each color’s hex value fills its corresponding arc segment. The chart is built with React’s `useState` and `useEffect` hooks to manage the fetched data, while D3’s `arc` and `pie` functions compute the arc paths. A loading placeholder appears until the data arrives.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed