Skip to main content
100%

Rendering Data with React

✓ Published1🌍 Public
KKevin McMorrow
Last edited Sep 20, 2021
Created on Aug 18, 2021

This example renders CSS color data as a full-screen stack of horizontal stripes, one per color, using React to map each row of the CSV to a styled div. The data is loaded asynchronously with D3’s `csv` function from a GitHub gist, and React’s `useState` and `useEffect` manage the loading state. The visualization shows a large, colorful gradient-like composition that fills the viewport, with each stripe’s background color set to the corresponding CSS color’s hex value.

AI-generated description

Mouse Follower

MIT Licensed

Similar vizzes