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)

310215e83619402cbf822458da5c80eb

Loading Data with React and D3

0 stars1🌍 Public
AA
Last edited Jul 13, 2021
Created on Jul 13, 2021
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset in a React application using D3. The interface displays a plain-text report showing the file size in kilobytes, row count, and column count. The code uses React’s `useState` and `useEffect` hooks to fetch data via `d3.csv` from a GitHub gist containing CSS named colors, then formats the result with `d3.csvFormat`. The SVG markup in the HTML file is commented out and unused.

AI-generated description

Loading Data with React and D3