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)

1d4ccf6ceebc45d0ae373840d6e4940f

Loading Data with React & D3

0 stars0🌍 Public
FFábio Correia
Last edited Oct 24, 2022
Created on Oct 24, 2022
Forked from Mouse Follower

This example shows a React application that uses D3 to load and summarize a CSV dataset. It displays a message reporting the data’s size in kilobytes, row count, and column count, or a "Loading…" placeholder while fetching. The code uses React’s `useState` and `useEffect` hooks alongside D3’s `csv` function to asynchronously retrieve data from a GitHub gist. The rendered output is a simple HTML `pre` element, demonstrating the integration of React and D3 for data loading workflows.

AI-generated description

Smiley face implementation with React.