{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"This example demonstrates a responsive SVG visualization that fills the entire browser window and redraws its content whenever the viewport size changes. It shows two thick, semi-transparent green lines forming an X across the full width and height of the chart container. The code uses D3 v5 to select the `#chart` div, append an SVG element, and bind line data to render the X. A `redraw` function reads the container’s `clientWidth` and `clientHeight` to update the SVG’s dimensions, then repositions the lines via the `merge` pattern. The `window.addEventListener(\"resize\", redraw)` triggers this responsive behavior.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/87b7cb94a985414c9f80af49e57e4448?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}