Skip to main content
100%

BLANK CANVAS with D3.js!

✓ Published1🌍 Public
Fforcox43
Last edited Jul 15, 2020
Created on Jul 15, 2020

A blank canvas fills the browser viewport with a rounded rectangle, demonstrating a minimal setup for D3.js visualization. The code imports the `select` function from D3 and uses `document.body.clientWidth` and `clientHeight` to size an SVG element dynamically. It appends a single `rect` with rounded corners via the `rx` attribute, styled through a fixed-position CSS body that removes margins and hides overflow. This example shows how to create a full-screen drawing surface using D3 v5 with SVG rendering in a React environment.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes