{"version":"1.0","type":"rich","title":"Margin convention","description":"This example demonstrates a bar chart of the top 10 most populous countries in 2020, using a margin convention to offset the chart area within the SVG canvas. The visualization is built with React and D3 v6, where D3 utilities load the UN population data from a CSV and compute the band scale and linear scale for the axes. The SVG rendering positions the grouped `<rect>` elements inside a translated `<g>` element, with margins applied to keep the chart clear of the canvas edges.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e520e45f033b41d6b484f9ee50e401fe?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}