Skip to main content
100%

Colors

✓ Published0🌍 Public
AAtharvap2000
Last edited May 28, 2021
Created on May 28, 2021

This visualization displays a vertical stacked list of CSS color swatches, with each row representing one color from the dataset. The code loads a CSV file containing color names and their corresponding RGB hex values using `d3.csv`, then renders each row as a React `<div>` element with the `backgroundColor` style set to the hex value. The visualization is built with React hooks (`useState`, `useEffect`, `useCallback`), and the page initially shows a loading message before the color bars appear. The swatches are stacked vertically, creating a continuous gradient-like column of all colors in the dataset.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes