{"version":"1.0","type":"rich","title":"Loading data in react","description":"This example demonstrates asynchronous data loading in a React application using D3. It fetches a CSV file containing CSS named colors and displays the file size in kilobytes once the data arrives, showing a \"loading\" message beforehand. The code uses React hooks (`useState`) to manage the data state and the `csv` function from D3 to parse the remote CSV. The text updates dynamically through React's rendering, with the data size calculated using `d3.csvFormat`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9ae76359b0be46d18e3e5a6dc1b96763?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}