{"version":"1.0","type":"rich","title":"Responding to Resize","description":"This example demonstrates a visualization that adapts to the browser window’s size by redrawing a green X-shaped pair of lines whenever the window is resized. The chart container is positioned with CSS to fill the viewport, and the code extracts its computed `clientWidth` and `clientHeight` to set the SVG dimensions. It uses D3 v5’s selection and merge operations, along with a window `resize` event listener, to update two line elements dynamically.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4ca117ed24bd472daff94cd2b38ca3b1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}