{"version":"1.0","type":"rich","title":"Fork of Loading Data with React & D3","description":"This example demonstrates how React and D3 can work together to load and summarize data from an external API. The visualization shows the result of fetching a JSON dataset from an Azure-hosted solar financial analysis endpoint, then displaying the file size in kilobytes and the number of top-level keys in the data object. Using React’s `useState` and `useEffect` hooks, the app triggers a D3 `json()` request, stores the response in component state, and conditionally renders a loading message or the computed summary. The code uses ReactDOM for rendering and the `encodeURI` and `JSON.stringify` methods to calculate the data size.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/65620ed7b23a4dd7b7a298a101774742?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}