{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"A full-window SVG responds to browser resizing by redrawing an X-shape through two crossing lines. The `#chart` container uses fixed CSS positioning to fill the viewport, and a `resize` event listener calls a `redraw()` function that reads `clientWidth` and `clientHeight` to update the SVG dimensions. D3 v5 binds the line data to the selection, merging enter and update nodes to adjust coordinates, stroke-width, opacity, and green color. The example demonstrates a simple pattern for size-aware, responsive visualization.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/bc36061bc1bb45de9224638e43903b7d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}