Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
BBrittany Harden
Last edited Dec 9, 2022
Created on Dec 9, 2022
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset from a remote URL using React and D3. It shows the data’s file size, row count, and column count in a large text display, initially showing “Loading…” until the data arrives. The React component uses `useState` and `useEffect` to asynchronously fetch the data via D3’s `csv` utility, then passes it to a custom `message` function that formats the statistics for rendering as SVG text within a `<pre>` element.

AI-generated description

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

Directions: https://www.youtube.com/watch?v=asscsklxokE&list=PL9yYRbwpkykuK6LSMLH3bAaPpXaDUXcLV&index=17

MIT Licensed

Similar vizzes