🌍 Public
Viewing a saved revision (read-only)
ffd76b330df0473e9d3ff1be15432ab8
Loading Data
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.