Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Blank Canvas

Public visualization

Fork of Blank Canvas

0 stars0🌍 Public
Rrichard.adamson@hotmail.com
Last edited Feb 16, 2024
Created on Feb 16, 2024
Forked from Blank Canvas

A full-window SVG canvas presents a single rounded rectangle on a blank page. The rectangle is sized to match the browser viewport dimensions, which are read from `document.body.clientWidth` and `document.body.clientHeight`. The code uses D3 v5's `select` to append the shape, setting its corner radius with `attr('rx', 40)`. The example demonstrates a minimal setup for creating a responsive, full-screen visual placeholder using D3 and SVG, with CSS positioning the body to fill the viewport.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed