{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example shows how React and D3 work together to load and display data. The React component uses the `useState` and `useEffect` hooks to fetch a CSV of CSS named colors via `d3.csv`, then renders a text summary of the dataset. The `message` function calculates the file size in kilobytes, row count, and column count using `d3.csvFormat` and `data.columns`. While the data loads, the display shows a “loading...” message, and once loaded, it presents the dataset’s statistics in a large `<pre>` element.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/01a56040bddb46269927e13233b5cd2b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}