{"version":"1.0","type":"rich","title":"Responding to Resize","description":"This example demonstrates an SVG visualization that fills the browser window and redraws its content whenever the window is resized. It shows a green X shape composed of two crossing lines, whose coordinates are recalculated to match the container's current dimensions. The code uses `d3.select` to append an SVG element and relies on CSS `position: fixed` with `clientWidth` and `clientHeight` to determine the size. Window resize events trigger the `redraw` function, which updates the SVG's width, height, and line positions using D3's `.attr` methods.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/90d07a6e74124cc08f0d914c2d090bef?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}