Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
TTHANNULA
Last edited Mar 4, 2021
Created on Mar 4, 2021
Forked from Mouse follower

This example demonstrates how to load and summarize a CSV dataset in a React application using D3 utilities. It fetches CSS named colors from a GitHub gist via `d3.csv`, stores the parsed data in React state with the `useState` and `useEffect` hooks, and displays a text summary generated by a custom `message` function. The summary reports the dataset’s size in kilobytes using `d3.csvFormat`, along with its row and column counts, rendered inside a `<pre>` element while showing “Loading…” until data arrives.

AI-generated description

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

MIT Licensed

Similar vizzes