{"version":"1.0","type":"rich","title":"Loading data with react and d3","description":"This example demonstrates loading a remote CSV dataset into a React application using D3’s `csv` method within a `useEffect` hook, then displaying summary statistics—file size in kilobytes, column count, and row count—as large text. The code initializes a state variable with `useState`, asynchronously fetches the data from a GitHub gist, and renders a loading message until the data arrives. It uses React 16.13.1, D3 v6, and defines a reusable `message` function that formats the data summary with `d3.csvFormat`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/583fd8c934394875919b8be6a869471d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}