Skip to main content
Public

Share visualization

Loading preview…

Blank Canvas

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Blank Canvas

1
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.

Comments

Sign in to join the discussion.

MIT Licensed