Skip to main content
100%

Redndering data with React

✓ Published1🌍 Public
Ccynichole
Last edited Feb 17, 2022
Created on Feb 16, 2022
Forked from Mouse Follower

This example demonstrates how to render a dataset of CSS named colors as horizontal color swatches using React’s state management. The app loads CSV data from a GitHub gist via `d3.csv`, then uses React’s `useState` and `useEffect` hooks to fetch and store the data asynchronously. Once loaded, each row’s `Hex rgb` value is mapped to a div element with a corresponding background color, producing a stacked visual list. The interface also displays a “Loading...” message while the data is pending.

AI-generated description

A program that loads in some data using D3 utilities and uses React state to keep track of the data.

MIT Licensed

Similar vizzes