Skip to main content
100%

Blank Canvas

✓ Published2🌍 Public
Ggilbster
Last edited Dec 30, 2019
Created on Dec 30, 2019

A blank SVG canvas fills the viewport, with a single rounded rectangle covering its full width and height. The code uses D3's `select` to grab the SVG element, then sets its dimensions based on `document.body.clientWidth` and `clientHeight`. A `rect` is appended with `rx` for rounded corners. The visualization demonstrates a minimal setup with D3 v5, React, and SVG, where the data is simply the viewport geometry itself.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes