Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
JjohnmurphyLC
Last edited May 28, 2023
Created on May 28, 2023
Forked from Mouse Follower

This example demonstrates how to load external data and display its metadata using React and D3. It shows a simple text summary of a CSV file containing named CSS colors, reporting the file size, row count, and column count. The React component uses a `useEffect` hook to invoke D3’s `csv` function, which fetches and parses the remote dataset, then stores it in state. Once loaded, a custom `message` function formats the summary, which is rendered as SVG text.

AI-generated description

A program that loads in some data using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes