{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"This example demonstrates a minimal responsive SVG visualization that adapts to the browser window’s dimensions. It shows a single thick red diagonal line spanning the entire viewport. The code uses the D3.js v5 library to select a container div, append an SVG element, and redraw upon window resizing. It extracts the CSS-computed `clientWidth` and `clientHeight` to set the SVG’s width and height attributes, then draws the line using the `line` element with hardcoded coordinates. The redraw function is triggered manually once and then on each window resize event.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6a2a8226b4224c79a8801034861a2628?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}