Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Blank Canvas

Public visualization

Viewing a saved revision (read-only)

f806ae9cf3944f9ab2c3d74c1aa2903f

Blank Canvas

0 stars2🌍 Public
FFhouston17
Last edited Jun 22, 2020
Created on Jun 20, 2020
Forked from Intro to D3

This example fills the browser viewport with a single rounded rectangle rendered in SVG. The visualization is a blank canvas, created by selecting the `svg` element and setting its width and height to match the document body’s client dimensions, then appending a `rect` with a corner radius. The code uses D3 v5’s `select` function to manipulate the SVG and relies on CSS to fix the body’s position and hide overflow, ensuring the canvas spans the entire screen.

AI-generated description