Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with react & d3

Public visualization

Viewing a saved revision (read-only)

dcc6c1a96fed4aca8886858a6c3ea14b

Loading data with react & d3

0 stars0🌍 Public
MMohsin Ali
Last edited Jul 20, 2021
Created on Jul 20, 2021
Forked from Mouse Follower

This example demonstrates how to load and summarize CSV data within a React application using D3 utilities. The interface displays a simple text report showing the data’s file size in kilobytes, row count, and column count. The code relies on React’s `useState` and `useEffect` hooks to manage the loading state, alongside D3’s `d3.csv` to fetch the remote dataset. The concise output is generated through a custom `d3.csvFormat` call within a helper module.

AI-generated description

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