{"version":"1.0","type":"rich","title":"Loading Data with React and D3","description":"This example demonstrates how to load external data in a React application using D3 utilities, displaying file size, column count, and row count from a CSV of CSS named colors. The code uses `useState` and `useEffect` hooks to manage the asynchronous `d3.csv` fetch, with `d3.csvFormat` calculating the data size in kilobytes. React conditionally renders a “Loading…” message until the data arrives, then passes the parsed data to a custom `message` function. The visualization appears as plain text, emphasizing integration between D3’s CSV parsing and React’s state management.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/645ebd8338ac4d2a9b27ba94848e3a09?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}