BlankCanvas
✓ Published1🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed