Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Css Named Colors/ Loading and parsing csv data

Public visualization

Fork of Fork of Fork of Css Named Colors/ Loading and parsing csv data

0 stars1🌍 Public
Aalokagase
Last edited Oct 25, 2021
Created on Oct 25, 2021

This example displays a pie chart visualizing CSS named colors, with each slice representing an individual color from the dataset. The chart is rendered as an SVG using D3’s `pie` and `arc` functions, while data is loaded asynchronously from a remote CSV file via `d3.csv`. The React app manages state with `useState` and `useEffect`, rendering the slices with fill colors taken from the `RGB hex value` column of the CSV data.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed