Create a blank canvas
✓ Published1🌍 Public
This example creates a full-screen, blank SVG canvas that fills the browser viewport. The code uses D3 v5’s `select` to target the SVG element, then reads the document’s `clientWidth` and `clientHeight` to set the SVG’s dimensions and append a solid rectangle covering the entire area. The underlying `styles.css` fixes the body to the viewport edges with zero margins, ensuring a seamless, borderless display. No data is loaded or manipulated; the visualization simply demonstrates a minimal setup for a fresh drawing surface.
AI-generated descriptionMIT Licensed