{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the fundamental D3 margin convention by rendering a horizontal bar chart of the top 10 most populous countries from a UN population dataset. The visualization shows population values as proportional bars within an SVG, with the chart’s plotting area properly inset from the SVG edges using a margin object. Built with React and D3 v6, the code uses `d3.csv` for data loading, `scaleBand` for the categorical y-axis, and `scaleLinear` for the quantitative x-axis. A `<g>` element is translated by the margin offsets to position all rectangles correctly.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c9117b6b467e4bd79558a5fb86417be5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}