{"version":"1.0","type":"rich","title":"d3 & react: loading data","description":"This example demonstrates a minimal React application that loads a CSV dataset of CSS named colors using D3’s `csv` function, then displays a summary message in a large `<pre>` element. The data is fetched from a GitHub gist and stored in React state via the `useState` and `useEffect` hooks. While the data loads, the app shows a “Loading...” placeholder. Once fetched, the `message` function calculates and renders the file size in kilobytes, row count, and column count using `d3.csvFormat` for byte-length estimation.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f58bfc017f1d45b2ac52e48ca7e997c6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}