{"version":"1.0","type":"rich","title":"Responding to Resize","description":"This example demonstrates a D3.js chart that responds to browser window resizing by drawing a green X that fills the viewport. The SVG container’s dimensions are extracted from the CSS-computed `clientWidth` and `clientHeight` of the chart div, then applied to the SVG element to redraw the lines. The code uses D3’s selection and merge API to update line coordinates dynamically, with a listener on the browser’s resize event to trigger redraws.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b52dbaac5c7d4129a00b8f14f53724c8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}