Skip to main content
100%

Blanck Canvas with D3.js

✓ Published4🌍 Public
Ssiddharth171
Last edited Jul 26, 2020
Created on Jul 20, 2020
Forked from HTML Starter

A full-screen SVG canvas is rendered with a rounded rectangle filling the entire viewport, creating a blank drawing surface for custom D3.js visualizations. The example demonstrates a minimal setup where the canvas dimensions are set dynamically from `document.body.clientWidth` and `document.body.clientHeight`, and the `select` API from D3 v5 is used to target the SVG element and append the rectangle. The code is structured for React integration with an external `bundle.js` file, and the rendering is purely vector-based using SVG attributes like `width`, `height`, and `rx` for corner rounding.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes