{"version":"1.0","type":"rich","title":"Responding to Resize","description":"This example demonstrates an SVG chart that automatically adjusts its size to fill the browser window, drawing a simple green X to visually confirm the layout. It uses D3 v5 to select the container div and append an SVG element, then defines a `redraw` function that reads the container’s `clientWidth` and `clientHeight` to set the SVG’s width and height attributes. A resize event listener triggers `redraw` on every window size change, while `selectAll` and data joins update the two diagonal line elements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2ac694942bd8456aaa411163e53bfd81?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}