{"version":"1.0","type":"rich","title":"Fork of Responding to Resize","description":"This example demonstrates how to create a D3.js visualization that responds to browser resizing. The code uses the `d3.select` API to append an SVG element to a fixed-position `#chart` div. On every resize event, the `redraw` function extracts the calculated `clientWidth` and `clientHeight` from the container, then adjusts the SVG's attributes and re-renders two intersecting lines into a green X mark. This approach uses CSS for layout sizing while relying on JavaScript event handling and the `merge` API for simple data updates.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4964e56b044744c8b987141ccc6f4031?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}