{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates how to load external data in a React application using D3 utilities, displaying the dataset’s size in kilobytes, row count, and column count. The component uses React’s `useState` and `useEffect` hooks to fetch and store data asynchronously, while D3’s `csv` function parses the remote CSV file from a GitHub gist. The message is rendered conditionally, showing “Loading…” until the data arrives. The code also uses `d3.csvFormat` to calculate the data size in the `message` function.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/aea5caf36f604e39aac43cc482fffb15?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}