{"version":"1.0","type":"rich","title":"Loading Data in React & D3","description":"This example demonstrates how to load CSV data asynchronously and display its summary statistics in a React application. Using D3’s `csv` function, it fetches a named-colors dataset from a GitHub gist, then formats a text-based report showing file size in kilobytes, row count, and column count via `d3.csvFormat` and the `message` utility. The interface toggles between a “Loading” state and the computed metrics. React manages the component’s lifecycle with `useEffect` and `useState`, while `ReactDOM.render` mounts the app.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ae9de4a9aa394c84b0df3e98c69955a9?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}