Skip to main content
100%

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

✓ Published1🌍 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.

MIT Licensed

Similar vizzes