Fork of Loading Data with React and D3
✓ Published1🌍 Public
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 descriptionA program that follows your mouse with a circle.
MIT Licensed