{"version":"1.0","type":"rich","title":"Responsive Margin Convention","description":"This example demonstrates how to apply the D3.js margin convention in a responsive visualization that adapts to the full browser window. It renders an SVG with axes and a rounded rectangle, using d3.axisLeft and d3.axisBottom with linear scales. The marginConvention function calculates inner dimensions and translates a group element, while a resize listener re-renders the chart on window changes. The code reuses selections with .merge() to update elements efficiently.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8e2e00de0f3f409f906357b09acb19ed?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}