Skip to main content
100%

Loading data with React and D3

✓ Published0🌍 Public
Nnahsiloh
Last edited Apr 2, 2021
Created on Apr 2, 2021
Forked from Mouse follower

This example demonstrates how to load and summarize CSV data within a React application using D3. The interface displays the number of rows, columns, and file size in kilobytes once the data has been fetched. It uses React’s `useState` and `useEffect` hooks to manage asynchronous loading, while the `d3.csv` function retrieves the dataset from a GitHub gist. The code also calls `d3.csvFormat` to calculate the raw data size, with a simple loading message shown before the fetch completes.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes