{"version":"1.0","type":"rich","title":"Loading Data with React and D3","description":"This example demonstrates how to load and summarize a CSV dataset in a React application using D3. It displays the file size, row count, and column count of a CSS named colors dataset fetched from a remote URL. The code uses D3’s `csv` function to load the data and `csvFormat` to calculate its size, while React’s `useState` and `useEffect` manage the asynchronous state. The result is rendered as SVG text within a `<pre>` element, initially showing “Loading” until the data arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/49a2a60bcc6a4332a19a7ac7a5f1dc2f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}