Skip to main content
100%

Blank canvas

✓ Published1🌍 Public
NNkwachi Abel
Last edited May 30, 2022
Created on May 30, 2022

A blank SVG canvas fills the browser window, with a single rounded rectangle drawn across its entire width and height. The example demonstrates the minimum setup for a D3 visualization within a React-free HTML page, using `d3.select` to target the `svg` element and dynamically set its dimensions based on `document.body.clientWidth` and `clientHeight`. The rectangle’s `rx` attribute applies rounded corners, while CSS fixes the body to prevent scrolling. This serves as a starting point for building more complex charts.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes