Skip to main content
100%

D3 + React

✓ Published0🌍 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.

MIT Licensed

Similar vizzes