Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data With React & D3

Public visualization

Loading Data With React & D3

0 stars0🌍 Public
AAngel Lam
Last edited Mar 12, 2021
Created on Mar 12, 2021
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset using React state and D3 utilities. The app fetches CSS named colors from a GitHub gist via `d3.csv`, stores the parsed result in React’s `useState` hook, and displays its size, row count, and column count using `d3.csvFormat`. While loading, it renders a simple “Loading…” message. The visualization relies on React’s `useEffect` for the asynchronous data fetch and ReactDOM to mount the component, with D3 v6 providing the CSV parsing.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed