{"version":"1.0","type":"rich","title":"Loading data with React and D3","description":"This example demonstrates how to load and parse CSV data within a React application using D3. The app fetches a dataset of CSS named colors, then displays a summary message showing the data’s size in kilobytes, row count, and column count. The code combines React’s `useState` and `useEffect` hooks with the `d3.csv` function to asynchronously fetch and parse the data. It also includes an alternative implementation using the `fetch` API with `d3.csvParse` and a comparison of different asynchronous patterns.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/fb04f752d00a43628e2b61ec5907dcb1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}