{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"This example demonstrates a responsive SVG visualization that draws a diagonal green X across the full browser window. It uses D3 v5 to select the chart container and append an SVG element, then defines a `redraw` function that reads the container’s `clientWidth` and `clientHeight` via the CSS `getElementById` method. The function updates the SVG’s width and height attributes, binds two line data points, and applies stroke properties. A window `resize` event listener triggers `redraw` on every viewport change, ensuring the X always spans the current dimensions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/739bb6a445f448618d5e30af1642b15c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}