Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
LLucyI
Last edited Nov 17, 2021
Created on Nov 17, 2021
Forked from Mouse Follower

This example shows how React state and D3 utilities work together to load and summarize a CSV dataset. It displays the file size in kilobytes, the number of rows, and the number of columns inside a large <pre> element. The code uses React’s `useState` and `useEffect` hooks to fetch the CSV from a GitHub gist via `d3.csv`, then formats the result with `d3.csvFormat` and passes it to a custom message function. The visualization is minimal, focusing on data-loading mechanics rather than graphical output.

AI-generated description

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

MIT Licensed

Similar vizzes