{"version":"1.0","type":"rich","title":"Loading Data with React and D3","description":"This example demonstrates how React and D3 can work together to load and summarize external data. The app uses D3’s `csv` function to fetch a named CSS colors dataset from a GitHub gist, storing the result in React state via the `useState` and `useEffect` hooks. While the data loads, the interface displays the word “Loading”; once received, a preformatted text block reports the dataset’s column names and its approximate size in kilobytes, calculated with `d3.csvFormat` and `Math.round`. The rendering relies on React DOM, with D3 handling only the asynchronous data request.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/abf0e200e5f946859ef71fdd4c916ea1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}