Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React & D3

Public visualization

Loading Data with React & D3

0 stars1🌍 Public
Ggayatrisridhar
Last edited May 26, 2021
Created on May 8, 2021

This example demonstrates how to load an external CSV file into a React component using D3’s `csv` method, then display summary statistics about the dataset. The code uses `useState` and `useEffect` hooks to fetch the data asynchronously from a GitHub gist containing CSS color names, and renders a message showing the row count, column count, and file size in kilobytes. The visualization itself is minimal, relying on React’s declarative rendering and D3’s data parsing to present the information clearly.

AI-generated description

Using react to get the data

Comments

Sign in to join the discussion.

MIT Licensed