Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React

Public visualization

Loading Data with React

0 stars0🌍 Public
JJanna Uutela
Last edited Oct 3, 2021
Created on Oct 3, 2021
Forked from Mouse follower

This example demonstrates a hybrid React and D3 workflow for loading and summarizing a CSV dataset. It uses the D3 `csv` utility to fetch data from a remote URL and React state to manage the asynchronous result. The app displays a loading message until the data arrives, then renders a text summary showing the file size in kilobytes, row count, and column count, all computed using D3’s `csvFormat` function. The rendering is a simple SVG-less HTML `<pre>` element, highlighting data loading rather than visual encoding.

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