Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Blank Canvas

Public visualization

Viewing a saved revision (read-only)

0112a2194d064cf78362432f718d1712

Blank Canvas

0 stars0🌍 Public
CClara Hu
Last edited Mar 24, 2021
Created on Mar 24, 2021

A blank SVG canvas is filled with a single gray rectangle that spans the full width and height of the viewport, creating a minimalist visual effect. The example demonstrates the basic structure of a D3.js v5 project, using `d3.select` to access the SVG element and `svg.append` to add a `rect` element. The rectangle’s width is set twice in the code, while its height remains unspecified, leaving the shape incomplete. This serves as a starting point for understanding SVG rendering with D3’s declarative API.

AI-generated description