Colors
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed