{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the margin convention in D3.js by rendering a horizontal bar chart of the top 10 countries by 2020 population from a UN dataset. The visualization uses SVG within a React component, with `d3.scaleBand` and `d3.scaleLinear` mapping country names to y-positions and population values to bar widths. A margin object reserves space around the chart, and the chart group is translated accordingly to align the bars within the inner plotting area.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/dbf25a1c3c074f18b46afe80eb10b869?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}