{"version":"1.0","type":"rich","title":"Loading Data With React and D3","description":"This example demonstrates how to load and summarize a CSV dataset using React state and D3. It fetches a list of CSS named colors from a GitHub gist, then displays a text summary showing the file size in kilobytes, the number of rows, and the number of columns. The code uses React’s `useState` and `useEffect` hooks to manage the asynchronous data loading, with `d3.csv` handling the request and `d3.csvFormat` computing the data size. The visualization renders as plain SVG-less text via React DOM.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/eb74c76e9b314abfa00c8b197600b780?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}