🌍 Public
Fork of Loading Data with React & D3
This example displays summary statistics about CSS named colors, loading the data from a CSV file hosted on GitHub. It shows the file size in kilobytes, the number of rows, and the number of columns as text in a large monospace font. The app uses React hooks (`useState`, `useEffect`) to manage asynchronous data loading, while D3’s `csv` function fetches and parses the dataset. A custom `message` function formats the statistics, and React renders the result or a “Loading…” placeholder.
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.