Skip to main content
100%

Create a blank canvas

✓ Published1🌍 Public
Ooptimizeresume
Last edited Jan 12, 2021
Created on Jan 12, 2021

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 description
MIT Licensed

Similar vizzes