{"version":"1.0","type":"rich","title":"Dataviz 4 - Loading data in React","description":"This example demonstrates loading a CSV dataset in a React application and displaying summary statistics as plain text. The interface shows a loading message until the data arrives, then displays the file size in kilobytes, row count, and column count. It uses the `useState` and `useEffect` hooks to trigger a async `csv` call from d3.v5, which fetches a gist containing CSS named colors. The `message.js` module formats the result using `d3.csvFormat` to calculate the data size. Rendering is handled by ReactDOM into a `<pre>` element.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1adb346b71e745d796a65eb9591956df?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}