{"version":"1.0","type":"rich","title":"Responding to Resize","description":"A chart automatically resizes to fill the browser window by reading the CSS-computed dimensions of its container. The code uses d3.v5 to select the container div and append an SVG, then redraws an X made of two green lines whenever the window fires a resize event. It retrieves the container's clientWidth and clientHeight to set the SVG's width and height attributes, ensuring the graphic always matches the viewport.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f950e8e3cda849e695f318316b23698f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}