Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
JJosephStalnaker
Last edited Jun 28, 2021
Created on Jun 28, 2021
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset using React and D3. The visualization displays a text summary showing the data’s file size in kilobytes, row count, and column count, initially showing “Loading…” until the data arrives. The code uses React’s `useState` and `useEffect` hooks to manage data state, and D3’s `csv` function to fetch and parse the remote CSV file, followed by `d3.csvFormat` to calculate the formatted size. The data source is a gist containing CSS named colors.

AI-generated description

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

MIT Licensed

Similar vizzes