🌍 Public
Aditya - Loading Data with React & D3
This example demonstrates how to load and summarize CSS named color data from a GitHub gist. It displays a text readout showing the dataset’s size in kilobytes, row count, and column count. The code uses React hooks (`useState`, `useEffect`) to manage loading state, while D3’s `csv` method fetches and parses the data, and `d3.csvFormat` calculates the data size. The interface shows “Loading…” until the promise resolves.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.
MIT Licensed
Comments
Sign in to join the discussion.