Skip to main content
100%

Loading data with React and D3

✓ Published2🌍 Public
GGayan Priyadarshana
Last edited Jul 27, 2023
Created on Jul 27, 2023
Forked from Mouse Follower

This example demonstrates how to load and summarize a remote CSV dataset using React state and D3 utilities. It fetches data from a GitHub gist via `d3.csv`, displays a loading message while the data is pending, and renders the file size in kilobytes, row count, and column count using `d3.csvFormat`. The visualization is a simple SVG-free text output, with React managing the asynchronous data flow through `useState` and `useEffect`, while D3 v7 handles the CSV parsing and formatting.

AI-generated description

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

MIT Licensed

Similar vizzes