{"version":"1.0","type":"rich","title":"Ep16 Loading data in react","description":"This example demonstrates how to load CSV data within a React component using D3’s `csv` function, displaying a summary of the dataset’s size, row count, and column count. The code uses React hooks (`useState`, `useEffect`) to fetch the data asynchronously and render it as a large preformatted text element. The CSV source is a GitHub gist containing named CSS colors, and the message is computed in a separate module using `d3.csvFormat` to measure data size in kilobytes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1d3a27a241c145aa9daa28ceaf377d28?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}