{"version":"1.0","type":"rich","title":"Loading data with React and D3","description":"This example demonstrates how React can manage D3-loaded data to display a concise summary of a CSV file. The code fetches a CSS Named Colors dataset using `d3.csv` and calculates its size in kilobytes, row count, and column count, rendering the results as large text. It relies on React’s `useState` and `useEffect` hooks to trigger the asynchronous data load, while `d3.csvFormat` measures the data’s byte size. The visualization is purely textual, with the message built by a separate `message.js` module, and the output is presented inside a `<pre>` element.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/14719e5d0a5f4cddaf73fcfb2b812b3a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}