Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with React & D3

Public visualization

Viewing a saved revision (read-only)

021792be193b4668a46a556a51d94fc2

Loading data with React & D3

0 stars1🌍 Public
11tang
Last edited Mar 28, 2021
Created on Mar 28, 2021
Forked from Mouse follower

This example demonstrates a minimal React & D3 workflow for fetching and summarizing a remote CSV dataset. It loads the CSS named colors data from a GitHub gist using D3’s `csv` function, then stores the parsed result in React state via `useState` and `useEffect`. The rendered output is a `<pre>` element that displays a text summary—file size in kilobytes, row count, and column count—computed through the custom `message` function using `d3.csvFormat`.

AI-generated description

A program that oads in data using D3 utilities, and uses React state to keep track of the data.