{"version":"1.0","type":"rich","title":"loading data d3","description":"This example demonstrates asynchronous data loading in a React application using D3 v6. It fetches a CSV file of CSS named colors from a GitHub gist via `d3.csv()` and displays either a loading message or a data summary through a React state hook. The code uses `useState` and `setData` to trigger re-rendering when the promise resolves, while a secondary helper parses the fetched text with `d3.csvParse()` to show file size in kilobytes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/98cb9646fd5646459b25027b0924ac0c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}