Skip to main content
100%

Loading Data with React and D3

✓ Published0🌍 Public
Aavcwisesa
Last edited Mar 11, 2021
Created on Mar 11, 2021
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset within a React application, displaying the row count, column count, and file size in kilobytes. The code uses React’s `useState` and `useEffect` hooks to manage the asynchronous loading state, while D3’s `csv` function fetches the data from a GitHub gist. Once loaded, a custom `message` function formats the summary using `d3.csvFormat` to compute the byte size, and the result is rendered as large text. The visualization is purely textual, showing loading progress until the data arrives.

AI-generated description

A program that loads data with d3 utilities and use react state to keep track of the data

MIT Licensed

Similar vizzes