{"version":"1.0","type":"rich","title":"Responding to Resize","description":"The chart fills the entire browser viewport using CSS positioning, and an SVG drawing updates its dimensions to match the container’s computed width and height. The visualization draws a large green X spanning the full diagonal of the canvas, with its stroke width and opacity fixed. The code uses `d3.select` and `d3.append` from D3 v5 to create the SVG, and it redraws the X by reading `clientWidth` and `clientHeight` and re-appending line elements whenever the window resizes via the `resize` event listener.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/58f8870b780c452fa1f9491cfc7d2084?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}