Skip to main content
100%

Fork of Loading Data with React and D3

✓ Published1🌍 Public
BbeauMarko
Last edited Feb 3, 2021
Created on Feb 3, 2021

This example demonstrates loading and displaying a dataset of named CSS colors sourced from a GitHub gist using `d3.csv`. The React app, rendered with `ReactDOM`, uses the `useState` and `useEffect` hooks to fetch the data and map each row to a horizontal `<div>` strip whose `backgroundColor` is set to the color’s RGB hex value. While loading, a large "Loading..." message appears. The visualization shows all color entries as a stacked list of thin, colored bars filling the viewport.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes