🌍 Public
Viewing a saved revision (read-only)
f8594d8ef2c84752a1c1b2bf4051ec98
Loading data with React and D3
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 descriptionSmiley face implementation with React & D3.