{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"This example shows an SVG that dynamically resizes to fill the browser window, drawing a green X that spans the full width and height. The code uses a fixed-position `#chart` div and reads its `clientWidth` and `clientHeight` to set the SVG’s attributes on every resize. It leverages d3.v5’s data join with `selectAll`, `enter`, and `merge` to update two `line` elements, and listens to the window’s `resize` event to trigger a redraw. The rendering is purely SVG with no external data source.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4ca65d9c20294c6e9f8478d84b6753ca?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}