🌍 Public
Viewing a saved revision (read-only)
43590833aead4bb6be0f260093b8e65f
D3 Blank Canvas
This example demonstrates a minimal D3.js setup that fills the browser viewport with a blank SVG canvas. It renders a single rounded rectangle that covers the entire screen, using `d3.select` and the `svg.append` method to add the shape. The code reads the document body’s client width and height to size the SVG dynamically, and the stylesheet fixes the body to prevent scrolling. The example highlights basic SVG attribute manipulation with `attr` for width, height, and corner radius, serving as a clean starting point for D3 projects.
AI-generated description