{"version":"1.0","type":"rich","title":"Fork ","description":"This example demonstrates a responsive SVG visualization where a gray rectangle remains centered within the container as its dimensions adjust dynamically. The code uses a `ResizeObserver` to continuously update the width and height in the component state, and D3’s `select` and `join` methods to efficiently render the SVG and rectangle. The inner rectangle's size is calculated from the container's current dimensions minus fixed margins, ensuring it always fits within the available space.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ac8d0c12722c44729d0d3239714eb011?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}