{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates how to load and summarize a CSV dataset asynchronously in a React application using D3’s `csv` method. It displays a plain-text readout showing the dataset’s size in kilobytes, row count, and column count. The React `useEffect` hook triggers the data fetch, while `useState` stores the resulting parsed data. The `message` function formats the summary using `d3.csvFormat` to calculate byte length, and React renders either a “loading” placeholder or the final statistics. The data comes from a remote gist containing CSS named colors.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2d39d9e0fc754c5ab419f370f2396a77?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}