{"version":"1.0","type":"rich","title":"Rendering Data with React","description":"This example visualizes the top 10 countries by 2020 population as a horizontal bar chart rendered with SVG. The code loads UN population data from a CSV file using `d3.csv`, processes the rows, and stores the result in React state via the `useState` and `useEffect` hooks. D3’s `scaleBand` and `scaleLinear` position the bars, while React maps the data to `<rect>` elements. A loading message displays until the data arrives, with the chart updating once React state is set.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8eb1cd0f6030428a8972a82365566456?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}