{"version":"1.0","type":"rich","title":"loading data with react and d3","description":"This example demonstrates how to load and display CSV data in a React application using D3. It shows a simple text report of the dataset’s size, including the number of rows, columns, and file size in kilobytes. The code uses React hooks (`useState`, `useEffect`) to fetch data via D3’s `csv` function, then renders the result through a custom `message` function that calculates the statistics. The visualization renders as SVG-free plain text within a `<pre>` element, sourced from a GitHub gist containing named CSS colors.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6db01bf5ef964a009aa6f84954a47dd8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}