{"version":"1.0","type":"rich","title":"Responding to Resize","description":"This example demonstrates a D3.js v5 visualization that dynamically resizes an SVG to match the browser window. The page uses a fixed-position container to fill the viewport, and a `redraw` function reads the container’s `clientWidth` and `clientHeight` to update the SVG’s dimensions. It draws an X composed of two green lines with 100-pixel stroke width and 0.5 opacity, using a data join with `selectAll`, `enter`, and `merge`. A `window` resize event listener triggers `redraw` each time the window size changes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/14a059b49382422c88a2d3576f4b8b10?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}