Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading with React and D3

Public visualization

Viewing a saved revision (read-only)

6f211a7c1f5440ddb170a409da4d6cc1

Loading with React and D3

0 stars1🌍 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.