{"version":"1.0","type":"rich","title":"Loading data with D3 and React","description":"This example demonstrates how to load and summarize a CSV dataset within a React application using D3. It fetches CSS named color data from a GitHub gist via D3’s `csv` function, then displays the file size in kilobytes, row count, and column count in a large `<pre>` element. The React `useState` and `useEffect` hooks manage the asynchronous data loading, while a custom `message` function calculates the statistics using `d3.csvFormat` and `data.columns`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6d0d78ba9d554d7a8e63fe38f883f20c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}