{"version":"1.0","type":"rich","title":"Loading Data With React","description":"This example demonstrates how to load data asynchronously in a React application, displaying the size of a CSV file once it has been fetched. The code uses React’s `useState` and `useEffect` hooks to manage state and trigger the data loading process. It leverages the D3 `csv` and `csvFormat` functions to parse the file from a GitHub gist, then computes and renders the file’s size in kilobytes, row count, and column count in a large `<pre>` element. While the data loads, the UI shows a “loading...” message.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c0f81dfde61f4ce9bed694822f125988?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}