Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 + React

Public visualization

D3 + React

0 stars0🌍 Public
VVictor Masson
Last edited Aug 23, 2021
Created on Aug 20, 2021
Forked from Mouse follower

This example shows a minimal React integration with D3, displaying a message that summarizes a fetched CSV file’s size, row count, and column count. The React app uses the `useState` and `useEffect` hooks to load data asynchronously via D3’s `csv` utility, then stores it in state. Once loaded, a helper function formats the data summary using `d3.csvFormat`. The data comes from a GitHub-hosted CSS named colors CSV, and rendering is handled by ReactDOM.

AI-generated description

Loading some data using D3 utilities and tracking it with React state.

Comments

Sign in to join the discussion.

MIT Licensed