Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Fork of Loading Data with React & D3

0 stars0🌍 Public
EEugenio2192
Last edited Jul 6, 2021
Created on Jul 6, 2021

This example demonstrates asynchronous data loading in a React component using D3 utilities, fetching a CSV of CSS named colors from a gist URL via `d3.csv`. While the data loads, a "Loading..." message displays; once resolved, the app maps each row to a colored horizontal `<div>` strip whose background corresponds to the color’s RGB hex value. React hooks (`useState`, `useEffect`) manage the asynchronous state, with D3 as the data-handling library and React 16.9 rendering the result.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed