Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React and D3

Public visualization

Viewing a saved revision (read-only)

1a045dc83a0f4fe299c1b3cdefead116

Loading Data with React and D3

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

This example demonstrates how to load and summarize CSV data using React and D3. It fetches a dataset of CSS named colors from a GitHub gist, then displays a message showing the file size in kilobytes, the number of rows, and the number of columns. The app uses React's `useState` and `useEffect` hooks to manage the data loading, while D3's `csv` function retrieves and parses the remote CSV file. The result is rendered as text within an SVG-ready page, with the data formatted via `d3.csvFormat`.

AI-generated description

A program that loads in some data using React