{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example shows a horizontal bar chart of the top ten countries by 2020 population, with the bars drawn inside a translated SVG group to demonstrate the margin convention. The chart uses React state to manage the loaded data and conditional rendering to display a loading message. D3 utilities load the CSV data from a GitHub gist, while `scaleBand` and `scaleLinear` position the bars and map population values to widths. The outer SVG measures 960 by 500 pixels, with a 50-pixel margin on each side that defines the inner chart area.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2f49e137bcef4c188d7a33672570e7ba?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}