{"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 the dataset’s size in kilobytes, row count, and column count as formatted text. The code uses React’s `useState` and `useEffect` hooks to manage the asynchronous loading state, while `d3.csv` fetches the CSS named colors dataset from a GitHub gist. The `d3.csvFormat` function calculates the data size for the message. Rendering is handled through React DOM, producing an SVG-backed text output that transitions from a “Loading…” placeholder to the final statistics.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/25d2a86032474eb6850d50ff3428068a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}