{"version":"1.0","type":"rich","title":"dv2020-ep16-viz17 - Loading Data into React","description":"This example demonstrates how to load and parse a CSV dataset within a React application, displaying basic statistics about the data as text. It uses D3’s `csv` function to fetch the file from a GitHub gist and React’s `useState` and `useEffect` hooks to manage the asynchronous data loading and trigger a re-render once the data arrives. The `message` function formats the output using `d3.csvFormat`, showing the file size in kilobytes, the number of rows, and the number of columns, while initially displaying a \"loading...\" placeholder.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e8247ad081bb4cd89ff2a306cb27cae0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}