{"version":"1.0","type":"rich","title":"Load data with React using D3","description":"This example demonstrates how to load and display a CSV dataset in a React application, summarizing the data’s size and schema. It uses React hooks `useState` and `useEffect` to manage asynchronous data loading, with D3’s `csv` function fetching the data from a remote gist URL. The loaded dataset is passed to a formatting function that uses `csvFormat` to compute the file size in kilobytes, row count, and column count, which are rendered as text. The example highlights the integration of D3’s data-loading utilities within a React component lifecycle.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d5a2b9fa71d44e87bfb27633eaf7db5d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}