{"version":"1.0","type":"rich","title":"Loading colors into react and d3","description":"This example shows how to load a CSV file of CSS named colors into a React application and display summary statistics about the dataset. The code uses React hooks (`useState`, `useEffect`) to fetch the data asynchronously with D3’s `csv` function, then renders a formatted message showing the file size in kilobytes, row count, and column count using `d3.csvFormat`. The visualization is minimal—a large `<pre>` element that displays either “Loading...” or the computed statistics after the data arrives from a GitHub gist URL.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8c6a59c7d22640038ffc167eb3a8c93f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}