{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the margin convention in a bar chart that displays population data for ten countries, including China and India, using horizontal bars scaled by population size. The visualization is built with React and D3 v6, using `d3.csv` to load the dataset, `scaleBand` for country positions, and `scaleLinear` for population values. The SVG rendering groups all bars inside a `<g>` element translated by the margin object, which defines consistent spacing between the chart and the viewport edges.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/213928b123b34229a9db79062fba6ffa?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}