{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates how to load external data in a React application using D3 utilities while managing the fetched data with React state. It shows a text summary reporting the dataset's size in kilobytes, row count, and column count. The code uses React's `useState`, `useEffect`, and `useCallback` hooks, alongside D3's `csv` function to load a CSS named-colors CSV from a GitHub gist. The `message` module formats the summary using `d3.csvFormat` to calculate the data’s byte length.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f3347595d8b142f3afb0f299014edacf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}