Skip to main content
100%

Loading with React and D3

✓ Published1🌍 Public
Ooeohomos
Last edited Apr 2, 2021
Created on Mar 25, 2021
Forked from Mouse Tracing

This example demonstrates how to load and display metadata about CSS named colors using React and D3. The app fetches a CSV file from a GitHub gist with D3’s `csv` utility and stores the parsed result in React state via the `useState` and `useEffect` hooks. Once loaded, it renders a brief summary of the data, including its size in kilobytes, row count, and column count, using a custom `message` function. The visualization relies on React’s conditional rendering to show “data is: not loaded” before the asynchronous fetch completes.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and use React state to keep track of the data.

MIT Licensed

Similar vizzes