Skip to main content
100%

Blank Canvas

✓ Published1🌍 Public
LLeora Wenger
Last edited Dec 5, 2018
Created on Dec 5, 2018
Forked from Blank Canvas

This example demonstrates a blank, interactive-free canvas that fills the browser viewport with a single rounded rectangle. Using the D3.js library’s `select` function, it dynamically retrieves the body’s client width and height, then sets the SVG’s dimensions accordingly and appends a `rect` element whose corners are rounded via the `rx` attribute. The visualization relies on D3 v5 and SVG rendering, with styling provided by a fixed-position CSS layout that ensures the canvas remains fully visible.

AI-generated description

Learning about how to set a blank canvas

MIT Licensed

Similar vizzes