🌍 Public
Viewing a saved revision (read-only)
5480931f0fdc4ee0a5a7f48b4fa18521
Blank Canvas
This example shows an interactive blank canvas where a single rounded rectangle fills the entire browser viewport. The visualization dynamically adapts to the window size by reading `document.body.clientWidth` and `clientHeight`, then applying these dimensions to both the SVG container and the rectangle via D3’s `select` and `attr` methods. The code uses D3 v6 and renders purely as SVG markup.
AI-generated descriptionAn example including some commonly used features of SVG.