{"version":"1.0","type":"rich","title":"Loading data with React","description":"This example demonstrates how to load and display CSV data in a React application, showing a text summary of the dataset size and structure. It uses React state (`useState`) to hold the fetched data and the `useEffect` hook to trigger the data loading. The code fetches a CSS named colors dataset via `d3.csv`, then formats the results with `d3.csvFormat` to count bytes, rows, and columns. A loading message appears until the data arrives, at which point the summary replaces it.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2e6a520a881b45659379e21ba5efff9c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}