{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates a React component that loads a CSV file of CSS named colors using D3’s `csv` utility, stores the result in React state via `useState` and `useEffect`, and displays a short summary of the dataset. The summary shows the file size in kilobytes, the row count, and the column count, using `d3.csvFormat` and `message.js` to compute the values. While the data is loading, the interface shows “Loading…” instead of the statistics. The code combines React 16.9, D3 v7, and a remote gist URL as the data source.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/42527b6803e141b8aa30935a75422891?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}