{"version":"1.0","type":"rich","title":"Loading Data with React and D3","description":"This example demonstrates how to load and summarize a CSV dataset using React hooks and D3. The React component displays the data’s file size in kilobytes, row count, and column count after fetching it from a GitHub gist via `d3.csv`. While the data loads, the screen shows “Loading…” until the asynchronous operation completes. The code uses `useState` and `useEffect` to manage state and trigger the CSV request, then formats the result with `d3.csvFormat`. The output is rendered as an SVG-less `<pre>` element.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1fb33636b174431aa888459a674e15cc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}