Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data in React

Public visualization

Loading Data in React

0 stars1🌍 Public
JJohn Huang
Last edited May 12, 2021
Created on May 12, 2021
Forked from Mouse Follower

This example demonstrates how to load and display CSV data in a React application using D3. The app fetches data from a remote GitHub gist via `d3.csv`, then stores it in component state with React hooks (`useState` and `useEffect`). Once loaded, a custom `message` function summarizes the dataset by calculating its file size in kilobytes using `d3.csvFormat`, reporting the number of rows, and listing the column count. While the data downloads, the interface displays a simple “Loading” text placeholder.

AI-generated description

A program that loads data via d3.

Comments

Sign in to join the discussion.

MIT Licensed