Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading CSV Data

Public visualization

Viewing a saved revision (read-only)

fd1a4187571442a9a1e28acf76ad4038

Loading CSV Data

0 stars0🌍 Public
Aaliciaadj
Last edited Aug 18, 2022
Created on Aug 18, 2022
Forked from Mouse Follower

This example demonstrates loading a CSV file from a remote URL and displaying summary statistics about its contents. The React component uses the `useState` hook to manage the asynchronous data loading, calling `d3.csv` to fetch and parse the data. Once loaded, it computes and displays the file size in kilobytes, the number of rows, and the number of columns using `d3.csvFormat` and the parsed data’s properties. While the data is loading, the interface shows a simple “loading….” message in a large `<pre>` element.

AI-generated description