{"version":"1.0","type":"rich","title":"loading data with d3 - react","description":"This example demonstrates how to load and summarize CSV data in a React application using D3 v7. It fetches a CSS named colors dataset from a GitHub gist and displays the file size, row count, and column count in large text. The code uses React hooks `useState` and `useEffect` to manage asynchronous data loading via the `d3.csv` function, while a separate `message.js` module formats the summary using `d3.csvFormat` and `data.length`/`data.columns.length`. Output renders as SVG-sized text in a `<pre>` element.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6b7fb3345c6b41d891a2cf58e8b2d4d3?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}