{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"This example shows a green X drawn across the browser’s full viewport, with the lines re-rendering to match the window’s current size whenever the window is resized. It uses an SVG element whose width and height are set from the CSS-computed dimensions of a fixed-position container. The code appends two `<line>` elements with `d3.select` and uses a custom `redraw()` function attached to the window’s `resize` event. The demo relies on d3.v5 and the `attr` and `style` methods to update coordinates and stroke properties.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5d186ab3c8994ab7916366d731bcb272?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}