{"version":"1.0","type":"rich","title":"Rendering of UN pop","description":"This example renders a horizontal bar chart of the top ten countries by population, using data from the UN’s 2020 population estimates fetched via `d3.csv`. It shows each country’s population as a bar, with the chart built in React and D3 v7. The code computes scales with `scaleBand` for the categorical country axis and `scaleLinear` for the numeric population axis, then draws SVG `<rect>` elements for each bar. Rendering is handled declaratively through React state and the `d3.csv` promise.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/04f3c6e5b7da4bd5b971a436f7374a86?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}