Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 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.

MIT Licensed

Similar vizzes