Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
Ssheetbag
Last edited Aug 27, 2021
Created on Aug 27, 2021
Forked from Mouse follower

This example demonstrates loading and displaying CSV data in a React application using D3’s `csv` method. It fetches a remote CSS color dataset from a GitHub gist, then formats the results to show the number of rows, columns, and file size in kilobytes within a preformatted text block. The React `useEffect` hook triggers the asynchronous data fetch, while `useState` manages the loading state, rendering “Loading…” until the data arrives. The output is styled with a large font and displayed as SVG, though the SVG markup is commented out.

AI-generated description

Mouse follower

MIT Licensed

Similar vizzes