{"version":"1.0","type":"rich","title":"Dynamic Size Example","description":"This example demonstrates a dynamic D3 v4 visualization that automatically resizes to fill the browser window, redrawing on any window resize event. It renders a set of horizontal line segments with end caps and black circular dots positioned proportionally to the current viewport dimensions, using an SVG container styled with CSS `position: fixed`. The code extracts `clientWidth` and `clientHeight` from the chart div, then updates the SVG’s width, height, and element coordinates via data joins and `.merge()`. The visualization responds live to user window adjustments, as seen in the full-screen demo.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-20ece9c7db465cbead2012160afdc6e6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}