{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates how to combine React state and D3’s data-loading utilities in a simple data summary application. The component fetches a CSV file from a GitHub gist using the `csv` method from d3.v5, storing the parsed result in React’s `useState` hook. While the data is pending, the interface displays “loading”; once resolved, it computes and presents the file size in kilobytes, row count, and column count via `d3.csvFormat` and the data’s `columns` array. The implementation uses `useEffect` and `useCallback` for lifecycle management, with ReactDOM rendering the final message as large, styled text.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/337e35c37a8c4adda333f05306420166?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}