{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates a React and D3 workflow for loading and summarizing external data. It fetches a CSV file of CSS named colors using the D3 utility `csv`, then stores the parsed result in React state via `useState`. Once loaded, the app displays a text summary of the dataset’s size, row count, and column count, rendered as an SVG `<pre>` element. The page initially shows \"loading\" until the asynchronous fetch completes. The code relies on React's `useEffect` and `useCallback` hooks alongside D3's `csvFormat` to calculate the file size in kilobytes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/60e20f61e7f340fa975431ceaa6e0590?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}