🌍 Public
Viewing a saved revision (read-only)
b79d1ebbe7c349b2a437d90c2aa8d6e3
Loading Data with React & D3
This example displays a dataset summary in large text, showing the number of rows, columns, and file size of a CSS named colors CSV loaded from a GitHub gist. The React component uses `useState` and `useEffect` to fetch the data with `d3.csv`, then passes it to a `Message` function that computes statistics using `d3.csvFormat`. The app renders the summary inside a `<pre>` element, with a loading message displayed until the data arrives.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.