🌍 Public
Viewing a saved revision (read-only)
f8446589d9104e0ab057d64d428a5332
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.