Blank Canvas
✓ Published1🌍 Public
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.
MIT Licensed