{"version":"1.0","type":"rich","title":"Loading csv data with react and D3","description":"This example demonstrates how to load and display CSV data within a React application using D3 utilities. The app fetches a dataset of CSS named colors from a GitHub gist and shows a text summary of its size, row count, and column count. It uses React’s `useState` and `useEffect` hooks to manage asynchronous state updates, while D3’s `csv` function handles data loading. The rendered output is a simple `<pre>` element that displays the computed metrics, with a “Loading…” message shown before the data arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/13e5b5898db7452bb335ca49d499bf40?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}