🌍 Public
Viewing a saved revision (read-only)
3cb4cd9855294a1c853543512cdc6538
Loading data with React
This example demonstrates how to load and summarize a CSV dataset using D3 within a React application. It displays the file size in kilobytes, row count, and column count in a large `<pre>` element. The React component uses the `useState` and `useEffect` hooks alongside `d3.csv` to fetch and parse the data from a GitHub gist. The `message` helper function calculates the summary using `d3.csvFormat` to determine the formatted data length.
AI-generated descriptionProgram to follow mouse pointer