Blank canvas
✓ Published1🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed