Skip to main content
100%

visualising css colour data with react and D3

✓ Published1🌍 Public
HHollyClarke19
Last edited Feb 6, 2021
Created on Feb 6, 2021

A visualization displays all CSS named colors as stacked horizontal strips, each colored by its RGB hex value. The data loads from a CSV file using `d3.csv`, while React’s `useState` and `useEffect` manage the asynchronous fetch. Each row renders as a fixed-width block with height 4 pixels, creating a full-spectrum bar. The code relies on React DOM and the D3 CSV parser, with both libraries included via CDN in the HTML file.

AI-generated description

A program that loads in some data about css named colours using d3 utilities, and uses React to render thw data.

MIT Licensed

Similar vizzes