{"version":"1.0","type":"rich","title":"enter  update exit dom","description":"This example demonstrates a simple SVG rendering loop that populates the viewport with 100 vertical rectangles using the Document Object Model (DOM) API. It shows how to create SVG elements dynamically, setting each rectangle’s x position at 20-pixel intervals and its height to match the full window. The code uses `createElementNS` to construct SVG `<rect>` elements and `appendChild` to insert them into an `<svg>` container, while reading the current window dimensions via `innerWidth` and `innerHeight`. The initial state displays a static grid of vertical bars without any interactive or animated updates.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9bb8ee985ca64b95b0520cf671409da4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}