Loading data with React and D3
✓ Published2🌍 Public
This example demonstrates how to load and summarize a remote CSV dataset using React state and D3 utilities. It fetches data from a GitHub gist via `d3.csv`, displays a loading message while the data is pending, and renders the file size in kilobytes, row count, and column count using `d3.csvFormat`. The visualization is a simple SVG-free text output, with React managing the asynchronous data flow through `useState` and `useEffect`, while D3 v7 handles the CSV parsing and formatting.
AI-generated descriptionA program that loads in some data using D3 utilities, and uses React satete to keep track of the data.
MIT Licensed