{"version":"1.0","type":"rich","title":"Responding to Resize","description":"This example demonstrates how a D3.js visualization can dynamically adjust to its container’s size by redrawing an SVG graphic on every browser resize event. The chart fills the entire page via CSS and uses `clientWidth` and `clientHeight` to set the SVG’s width and height attributes. It draws two crossed green lines with `stroke-width` and `stroke-opacity` to visually confirm that the resized dimensions are correct. The `redraw` function is called initially and then re-invoked through a `window` resize listener.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7f81515437114fefb0a4124f3e4dd2fe?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}