{"version":"1.0","type":"rich","title":"responsive Viz Container","description":"This example demonstrates a responsive D3.js visualization that adapts its SVG canvas dimensions to fit its container. The code uses a `ResizeObserver` to monitor the container’s size and update the state with new width and height values, triggering a re-render. A gray inner rectangle, positioned with configurable margins, fills the available space. The example uses the `select` and `join` methods from D3 to manage the SVG elements, and is designed as a base template for creative modifications like holiday-themed variations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c7d552f5dea84fb69b0d431ef93d4848?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}