{"version":"1.0","type":"rich","title":"Loading Data With React & D3","description":"This example demonstrates a React component that loads a CSV file of CSS named colors using D3’s `csv` utility, storing the result in React state via `useState` and `useEffect`. It displays a summary of the fetched data—file size in kilobytes, row count, and column count—using D3’s `csvFormat` to calculate the byte length. The message updates asynchronously after the data resolves, with a “Loading…” placeholder shown initially. The code runs in a browser with React 17 and D3 v7.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a0b1ae1119bd481e9466708226136b14?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}