{"version":"1.0","type":"rich","title":"Loading data with React and d3","description":"This example shows how to load a CSV dataset with d3 and manage it through React state. The app fetches a named colors CSV from a GitHub gist using `d3.csv` inside a `useEffect` hook, then stores the parsed data with `useState`. While loading, it displays a \"Loading...\" message; once the data arrives, it uses a custom `message` function to report the dataset’s column count, row count, and size in kilobytes. The visualization itself is minimal—just text rendered in a `<pre>` element via React, demonstrating data loading without any charts.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/589dcd38766b4662953f91c7dd1e1b32?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}