{"version":"1.0","type":"rich","title":"Loading data with React and D3","description":"This example demonstrates how to load and display a CSV dataset in a React application, showing a text summary of the data size, row count, and column count once the file is fetched. The code uses React’s `useState` and `useEffect` hooks to manage the asynchronous loading state, while D3’s `d3.csv` fetches the data from a GitHub gist URL and `d3.csvFormat` converts it back to a string to calculate its size in kilobytes. The visualization initially displays “Loading…” and updates to the summary once the data arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4defa5f664794a57b4982de6f02bdf2b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}