{"version":"1.0","type":"rich","title":"Responding to Resize","description":"This example demonstrates how a D3.js v5 SVG visualization can automatically adjust its size to fill the browser window. A green X spanning the full chart area is drawn with two `<line>` elements, and both the SVG’s width and height are updated on every window resize event. The code reads the container’s `clientWidth` and `clientHeight` properties to drive the redraw, using `d3.select` to append the SVG and a `resize` event listener to trigger the update.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c9556b01fec24306aa04be1e558940eb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}