{"version":"1.0","type":"rich","title":"Responsive Viz Container","description":"This example demonstrates a responsive visualization container that automatically resizes an SVG to fit its parent element. Upon initial render, it sets up a ResizeObserver to track the container’s dimensions and updates the state with the latest width and height. The visualization draws a gray inner rectangle using D3’s select and join methods, calculating its size from configurable margins. The code shows how to integrate ResizeObserver with D3 selections for dynamic, layout-aware graphics.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c44e3eabbea44fa9ad9658e2af2d764d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}