Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Create a blank canvas

Public visualization

Create a blank canvas

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed