{"version":"1.0","type":"rich","title":"Loading data with React","description":"This example shows how to load and summarize a CSV dataset using React state management. D3’s `csv` utility fetches the data, while React’s `useState` and `useEffect` hooks track the loading state and store the parsed result. The visualization displays a plain-text summary of the dataset, listing its size in kilobytes, row count, and column count, computed with `d3.csvFormat`. Before the data arrives, the interface shows a \"Loading...\" message. The data comes from a remote GitHub gist containing CSS named colors.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1440c451fd3e4434a73b961cedcf7257?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}