{"version":"1.0","type":"rich","title":"loading data in react","description":"This example demonstrates how to load and display CSV data within a React component, using React state to manage the asynchronous data-fetching lifecycle. The app fetches a dataset of CSS named colors via `d3.csv`, then renders a summary message showing the data’s size in kilobytes, row count, and column count. The example highlights the integration of D3’s data-loading utilities with React hooks like `useState` and `useEffect`, and relies on a simple SVG-less `<pre>` element for output while the data is loading or ready.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4c75bc68abd7459bbd19fde871cca050?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}