{"version":"1.0","type":"rich","title":"Loading Data: React + d3","description":"This example demonstrates how to combine React state with D3 utilities to load and display metadata about a dataset. The app uses `d3.csv` to fetch a CSV file containing CSS named colors, then stores the parsed data in React's `useState` hook. While loading, it displays the word \"Loading\"; once the data arrives, it shows the file size in kilobytes, row count, and column count. The code leverages React hooks like `useEffect` and `useCallback`, along with D3's `csvFormat` to calculate the data size.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b978676319a249bfae4c8ff256e28a31?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}