{"version":"1.0","type":"rich","title":"Loading data with react and d3","description":"This example demonstrates how to load and summarize a CSV dataset within a React application using D3.js. It displays a text message showing the data’s size in kilobytes, row count, and column count after fetching CSS named colors from a GitHub gist. The code uses React’s `useEffect` and `useState` hooks alongside `d3.csv` to asynchronously retrieve the data, and `d3.csvFormat` to calculate its length. The interface shows \"Loading...\" until the data arrives, then renders the summary.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/91aff96412094546b9a85afdce7954d6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}