RK-SVG Fundamentals
✓ Published0🌍 Public
This example demonstrates basic SVG rendering with a red circle, while showcasing VizHub’s module-loading workflow. The code imports D3’s `select` function via UNPKG and a local ES6 module `myMessage.js` to update a `#message` div with the text “Hello VizHub!”. A static SVG circle is defined directly in `index.html`, and accompanying CSS styles the message text. The example illustrates how to combine D3 selection, named exports, and plain HTML structure in a minimal D3 v5 project.
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.
Test Heading
MIT Licensed