blank canvas
✓ Published1🌍 Public
A blank SVG canvas fills the browser viewport with a single rounded rectangle. The example demonstrates how to set up an SVG element to match the full client width and height. Using d3.select, the code reads `document.body.clientWidth` and `clientHeight` to size both the SVG and the `<rect>` element, which uses an `rx` attribute for rounded corners. The stylesheet fixes the body position with hidden overflow, ensuring the canvas remains stable and without scrollbars.
AI-generated descriptionMIT Licensed