Skip to main content
100%

Ep16 Loading data in react

✓ Published0🌍 Public
SSkye Chen
Last edited Jul 12, 2021
Created on Jul 11, 2021
Forked from Mouse Follower

This example demonstrates how to load CSV data within a React component using D3’s `csv` function, displaying a summary of the dataset’s size, row count, and column count. The code uses React hooks (`useState`, `useEffect`) to fetch the data asynchronously and render it as a large preformatted text element. The CSV source is a GitHub gist containing named CSS colors, and the message is computed in a separate module using `d3.csvFormat` to measure data size in kilobytes.

AI-generated description

load data with react

MIT Licensed

Similar vizzes