Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Create a blank canvas

Public visualization

Viewing a saved revision (read-only)

bf9a1b63cd5d44c196c7ffc5a5fc0e6d

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