{"version":"1.0","type":"rich","title":"Loading data with React and D3","description":"This example demonstrates how React state and D3 utilities can work together to load and summarize a dataset. The page displays a plain-text message reporting the number of rows, columns, and file size of a CSV file containing CSS named colors, fetched from a GitHub gist. The code uses React’s `useState` and `useEffect` hooks to trigger a `d3.csv` request, storing the parsed data in state before formatting the summary with `d3.csvFormat`. Until the data arrives, the interface shows a “Loading…” placeholder. The project relies on React 16 and D3 v7.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4537e1a2aeb8441ba3e599833b3956f3?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}