{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example shows a horizontal bar chart of the top 10 most populous countries in 2020, using the UN Population dataset loaded via `d3.csv`. React state management with `useState` and `useEffect` handles the asynchronous data fetching, while D3’s `scaleBand` and `scaleLinear` map country names and population counts to SVG rectangles. The SVG rendering respects the margin convention by translating a `<g>` element, and the chart appears only after data loads, with a loading message displayed beforehand.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/be5e7d63dd1c4d638214d4defc09f0c6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}