{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates how to load external CSV data in a React component using D3, displaying the dataset’s size, row count, and column count as formatted text. The code uses React hooks (`useState`, `useEffect`) to fetch the data via `d3.csv` from a GitHub gist URL, storing the parsed result in state. Once loaded, the `message` function formats the summary using `csvFormat`, showing the file size in kilobytes, the number of rows (entries), and the number of columns from the parsed data’s `.columns` property. Before data arrives, the UI shows a “Loading...” placeholder, set against a full-screen preformatted text layout.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/494c9fa40a1042a5a7ed2a0ccbc9983c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}