Fork of Loading Data with React & D3
✓ Published0🌍 Public
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 descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to render data.
MIT Licensed