{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"This example demonstrates a responsive D3.js visualization that automatically redraws an SVG cross to match the browser window’s dimensions. It uses CSS to stretch a container div to fill the page, then reads the container’s `clientWidth` and `clientHeight` inside a `redraw` function. The code binds data to `line` elements, entering new lines and merging updates, while a `window` resize event listener triggers redraws. The visualization relies on D3 v5 and SVG rendering, showing how to handle dynamic viewport sizes in data-driven graphics.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/184c95b7aa184bc08389e9711fb04421?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}