Skip to main content
100%

Rendering Data with React

✓ Published1🌍 Public
Vvangenned
Last edited Aug 11, 2022
Created on Aug 11, 2022

This example demonstrates a list of CSS named colors from a GitHub-hosted CSV file, rendered as horizontal color swatches. The visualization loads the data with `d3.csv` and uses React hooks (`useState`, `useEffect`) to manage state, while React components generate the visual output as styled HTML `<div>` elements. The code does not use SVG despite the page’s metadata; instead, each row becomes a colored block whose background is set via inline styles from the `'RGB hex value'` column, producing a full-width stacked spectrum. A loading message appears until the data is fetched.

AI-generated description

A program that loads in some data about CSS named colours with d3 and uses react to reder data

MIT Licensed

Similar vizzes