Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
Llefat92
Last edited Aug 13, 2023
Created on Aug 13, 2023
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset using React and D3. It fetches CSS named colors data from a GitHub gist and displays a text summary showing the file size in kilobytes, row count, and column count. The code uses React hooks (useState, useEffect, useCallback) to manage state and trigger the data loading, while D3's csv function handles parsing. The result renders as an SVG-compatible pre element that updates from a loading message to the formatted data statistics once the fetch completes.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes