{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"This example demonstrates a responsive SVG visualization that adapts to its container’s size by drawing a large green X across the full viewport. The chart fills the page via CSS positioning, and a JavaScript `redraw` function reads the container’s `clientWidth` and `clientHeight` on every window resize event. Using D3 v5, it binds an array of two line coordinates to SVG `line` elements, updating their endpoints and stroke properties dynamically. The code explicitly sets the SVG’s width and height attributes to match the measured dimensions, ensuring the graphic always spans the available space.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3534ce78ec804cfc99d1e371572c36ba?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}