{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the margin convention in a bar chart, showing population data for the top 10 countries from the UN Population 2019 dataset. A `<g>` element is translated by the margin values, with the inner plotting area calculated separately for the x and y scales. It uses React with `useState` and `useEffect` to load data via `d3.csv`, then renders SVG rectangles positioned by `d3.scaleBand` and `d3.scaleLinear` on an SVG canvas. The chart displays horizontal bars without axes or labels, focusing on the layout offset technique.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/198c53b774414d4fa9ce06bfb7d41021?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}