Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
AAlex Gomes
Last edited Mar 1, 2022
Created on Mar 1, 2022
Forked from Mouse Follower

This example demonstrates how to combine React and D3 to load and summarize a CSV dataset, displaying file size, row count, and column count. The app uses React’s `useState` and `useEffect` hooks to fetch data asynchronously via `d3.csv` from a GitHub Gist, then renders the summary using a custom `message` function that leverages `csvFormat`. While loading, it shows a "Loading..." placeholder. The code relies on D3 v7 and React 16.9, with the browser rendering the output in a large `<pre>` element.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes