{"version":"1.0","type":"rich","title":"Loading Data in React using D3","description":"This example demonstrates how to load and display information about a CSV dataset in a React application using D3. It shows the file size, row count, and column count of a named colors dataset fetched from a GitHub gist. The code uses React’s `useState` and `useEffect` hooks to manage asynchronous data loading, while `d3.csv` retrieves and parses the data. A separate `Message` component computes the statistics and formats the output text, which is rendered inside a `<pre>` element.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b5deeed025564bcca4d30171206b6bc7?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}