🌍 Public
Viewing a saved revision (read-only)
30f0091d261146de943820fd5db588fb
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