Skip to main content
100%

loading data with D3

✓ Published1🌍 Public
Ppatasky
Last edited May 21, 2021
Created on May 21, 2021
Forked from HTML Starter

This example displays a dataset of color values as horizontal stripes, each rendered as a colored bar that fills the width of the page. The visualization uses React hooks to manage asynchronous data loading with `useState` and `useEffect`, while D3’s `csv` function fetches the data from a GitHub Gist. Once the data arrives, the component maps each row to a styled `div` element, using the `RGB hex value` column as the background color. The page shows a simple "Loading..." message until the data is ready.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes