Skip to main content
100%

Blank Canvas

✓ Published1🌍 Public
Pprincit
Last edited Mar 27, 2020
Created on Mar 27, 2020

This example demonstrates a completely blank SVG canvas that scales to fill the browser window. The code uses D3 v5’s `select` method to target the SVG element, then sets its width and height based on the viewport dimensions. A single rectangle with rounded corners (`rx` set to 40) fills the entire space, styled by the accompanying CSS, which fixes the body to the viewport and removes margins. The visualization serves as a minimal starting point for any future D3 project.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes