Skip to main content
100%

Loading data with React & D3

✓ Published0🌍 Public
Ssz3g12
Last edited Mar 10, 2021
Created on Mar 10, 2021
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset within a React application using D3 utilities. It fetches CSS named colors from a remote GitHub Gist and displays a concise report of the data's size, row count, and column count. The implementation uses React's `useState` and `useEffect` hooks to manage state and trigger the data loading, while `d3.csv` parses the remote CSV file and `d3.csvFormat` calculates the data's kilobyte size. The interface initially shows a "Loading..." message until the asynchronous fetch completes.

AI-generated description

A program that loads in data with d3 utilities, and uses React State to keep track of the data.

MIT Licensed

Similar vizzes