{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"This example demonstrates how a D3.js visualization can respond dynamically to browser window resizing. It draws a large green X shape using two SVG line elements that stretch to fill the entire viewport, with the chart container styled via CSS to occupy the full page. On every resize event, a `redraw()` function reads the container’s `clientWidth` and `clientHeight`, updates the SVG’s width and height attributes, and repositions the lines using the data-join pattern with `selectAll` and `merge`. The code relies on D3 v5 and the native browser `window.addEventListener` for resize handling.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b2189ac848ba4cf6b627c78737ee506c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}