{"version":"1.0","type":"rich","title":"Responding to Resize","description":"This example demonstrates a simple bar chart built with D3.js that dynamically resizes to fill the browser window. The visualization uses D3’s `d3.select` to append an SVG element to a fixed-position `div` container. On every browser resize event, the `redraw` function retrieves the container’s `clientWidth` and `clientHeight`, updates the SVG’s dimensions, and redraws two green diagonal lines forming an X. The code leverages D3’s `merge` operation to efficiently update existing line elements without removing them.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/648de1b7683c49379adef4cadbee71c8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}