{"version":"1.0","type":"rich","title":"Responding to Resize","description":"This example demonstrates how a D3.js v5 SVG chart responds to browser resizing. The visualization renders a single rounded rectangle that fills the entire viewport, with its width and height dynamically updated whenever the window resizes. The implementation uses a fixed-position `#chart` container and reads its `clientWidth` and `clientHeight` properties to set the SVG attributes. The code registers multiple `window.addEventListener` callbacks for the `resize` event, though only the initial redraw function actually updates the rectangle’s dimensions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/394c6a7a15ae4e408999c5dbff43035c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}