Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
TTaeyoung Ahn
Last edited Sep 7, 2021
Created on Aug 19, 2021
Forked from Mouse follower

This example demonstrates a minimal React application that uses D3 to load and summarize a remote CSV dataset. It displays a text message with the file size in kilobytes, row count, and column count, while showing "Loading..." until the data arrives. The app uses D3's `csv` loader to fetch data from a Coupang Redash API endpoint, stores the result in React state via a `useEffect` hook, and formats the summary with `d3.csvFormat`. The interface relies on ReactDOM to render the final output to the page.

AI-generated description

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

MIT Licensed

Similar vizzes