{"version":"1.0","type":"rich","title":"Loading data with react & d3","description":"This example demonstrates how to load external CSV data with React and d3, displaying a summary message about the dataset. It uses React’s `useState` and `useEffect` hooks to fetch the CSS colors data from a GitHub gist and store it in component state. The `d3.csv` function retrieves the file, while the custom `message` function calculates and formats statistics like file size, row count, and column count. The result is rendered as plain text in a `<pre>` element, with a “Loading...” placeholder shown until the data arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/96d680de286743d1884bd89294b94ca0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}