Skip to main content
Public

Share visualization

Loading preview…

Blank Canvas.js

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

1
Xxsg13
Last edited Dec 31, 2020
Created on Dec 31, 2020

This blank Canvas.js example uses D3 v6 to create a full-window, rounded-rectangle canvas. It selects the SVG element, sets its dimensions to the browser viewport, and appends a single rectangle covering the entire area. The code relies on D3’s `select` and `attr` APIs, with the rectangle’s corner radius set via the `rx` attribute. No data or interaction is present; the visualization merely demonstrates a minimal setup for a fixed, frameless plotting surface using the body’s CSS to fill the screen.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed