{"version":"1.0","type":"rich","title":"Loading data with react and d3","description":"This example shows how React and D3 can be combined to load and summarize a CSV dataset. The React component uses the `useState` and `useEffect` hooks to fetch data asynchronously via `d3.csv` from a GitHub-hosted file of CSS named colors. Once loaded, the component displays the file size in kilobytes, row count, and column count using `d3.csvFormat` to calculate the byte length. While the page loads, it shows a \"Loading...\" message; after loading, the result is rendered as large text within an SVG-ready HTML structure.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/126966bbf5b34059bcf4d8c6943133ed?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}