Skip to main content
100%

Pie of CSS Colors

✓ Published0🌍 Public
Ww.fukuyama@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024
Forked from mouse move

This example displays all named CSS colors as stacked horizontal stripes, one per row, using each color’s RGB hex value as the background. The React app fetches a CSV of named colors via `d3.csv`, stores the result in state with `useState`, and maps over the data to render a series of divs with fixed width and height. The visualization relies on React’s `useEffect` for data loading and ReactDOM for mounting, with D3 used solely for CSV parsing.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes