Skip to main content
100%

BlankCanvas

✓ Published1🌍 Public
YYanxxx447
Last edited Jan 11, 2021
Created on Jan 11, 2021

This example demonstrates a minimal D3.js environment using the v5 library, imported explicitly via `import { select, arc } from 'd3'` from the UNPKG CDN. It renders a full-window, rounded rectangle (`rect` with `rx` 40) that fills the viewport by reading `document.body.clientWidth` and `clientHeight`. The code also includes a local ES6 module (`myMessage.js`) that exports a string, though no text is placed on the SVG. The page uses CSS to fix the body’s position and hide overflow, while the SVG is sized dynamically to match the browser window.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes