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
EElif Altundag
Last edited Aug 24, 2022
Created on Aug 24, 2022

This example shows a color swatch visualization built from a CSV of CSS named colors, with each color rendered as a horizontal strip stacked vertically to fill the viewport. The data is loaded using D3's `csv` utility from a GitHub gist, while React manages the component state and renders the strips using inline styles that set the background color and height. The visualization uses React hooks (`useState`, `useEffect`) to asynchronously fetch and store the data, displaying a “Loading...” message until the CSV arrives.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render data.

Comments

Sign in to join the discussion.

MIT Licensed