{"version":"1.0","type":"rich","title":"Rendering Data with React and D3 2","description":"This example displays a horizontal bar chart of the top 10 countries by 2020 population, using data loaded from a CSV file via D3’s `csv` utility. It combines D3’s `scaleBand` and `scaleLinear` to map country names and population values to SVG `rect` elements, while React’s `useState`, `useEffect`, and `useCallback` manage the asynchronous data loading and rendering state. The chart updates only after the data arrives, showing a static list of bars scaled to the maximum population value.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4f3a7cde4cae43d497a0e7db324a6507?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}