{"version":"1.0","type":"rich","title":"Loading data with react and d3","description":"This example demonstrates how a React application loads and processes external CSV data using D3, displaying a simple text header while preparing a dataset for visualization. The code fetches a color-names CSV file from a GitHub gist via `d3.csv`, then uses `d3.csvFormat` to calculate the data size in kilobytes, row count, and column count. React manages the component state with `useState`, while the data-loading side effect runs inside the component body. The visualization itself is minimal, rendering only a placeholder heading, but the structure shows the integration of React’s declarative rendering with D3’s data-handling utilities.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/69c24ec7daf24cda807b247d0b40a23c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}