{"version":"1.0","type":"rich","title":"Loading Data in React using D3","description":"This example demonstrates how to load external CSV data into a React component using D3 utilities and React state. The application fetches a CSS named colors dataset from a GitHub gist via `d3.csv` and stores the parsed result in React’s `useState` hook, triggered by `useEffect`. While loading, the interface displays the text “Loading…”; once the data arrives, it calculates and shows the file size in kilobytes, the row count, and the column count using `d3.csvFormat` and the dataset’s metadata properties. The code relies on React 16.9 hooks and D3 v5.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c363fc7a08f64c47bd7900cb0ed945d4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}