{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the D3 margin convention by rendering a horizontal bar chart of the top ten countries by 2020 population, loaded from a CSV file. The visualization separates the chart’s inner plotting area from its outer SVG bounds using a margin object, with a scaleBand for countries and a scaleLinear for population values. Built with React and D3 v7, the SVG rectangles are positioned via a translated group element, while the data is fetched asynchronously using d3.csv.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/04a9f42d5de5473fb65b193f329fb648?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}