Loading Data
✓ Published0🌍 Public
This example demonstrates asynchronous data loading with D3 and React. It fetches a CSV file of CSS named colors from a GitHub gist, then displays the file size, row count, and column count as plain text. The code uses React hooks (`useState`, `useEffect`) to manage state and trigger the `d3.csv` request, while a helper function formats the statistics from the parsed data. Rendering switches from a “loading…” message to the dataset summary once the promise resolves.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed