🌍 Public
Viewing a saved revision (read-only)
aa988ea4f9724a6b91aaff3d55e15bf8
Loading Data with React & D3
This example demonstrates how to load and summarize a CSV dataset from a GitHub gist using React and D3. It shows a text-based report of the data's size, row count, and column count, rendered with a large `<pre>` element. The `App` component uses React hooks—`useState` and `useEffect`—to fetch the data asynchronously via `d3.csv`, then displays the results using a custom `msg` function that calls `d3.csvFormat`. The visualization uses SVG for rendering, with D3 v7 and React 16.9 loaded from CDNs.
AI-generated description