{"version":"1.0","type":"rich","title":"Loading data with setData","description":"This example demonstrates how to load external CSV data into a React application using D3’s `d3.csv` method. The App component calls `d3.csv` inside a `useEffect`, stores the result in state with `setData`, and displays either a loading message or a text summary. The summary is generated by the `messageData` function, which uses `d3.csvFormat` to calculate file size in kilobytes and reports the row and column counts from the parsed data. The data source is a gist containing CSS named colors, fetched via a remote URL.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f66a2bfafe5c4816bd4a70f1cf320852?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}