Skip to main content
100%

Rendering data with React

✓ Published1🌍 Public
YYibo Zhang
Last edited Jan 13, 2022
Created on Jan 7, 2022
Forked from Mouse Follower

This example visualizes the 148 named CSS colors as horizontal stripes stacked into a block, with each stripe’s background color set directly from its RGB hex value. The visualization is built with React, which renders each color stripe as a styled `<div>` element, while D3’s `csv` method loads the color data from a GitHub gist. The app uses React’s `useState` and `useEffect` hooks to asynchronously fetch the data and display a "Loading..." message until it arrives.

AI-generated description

Rendering Data with React

MIT Licensed

Similar vizzes