SVG Fundamentals
✓ Published0🌍 Public
This example demonstrates fundamental SVG shapes—a circle and a rectangle—hand-coded directly in an HTML document, with D3.js v5 loaded for broader data-driven visualization capabilities. The page also showcases ES6 module imports, including a custom `myMessage.js` module that exports a string, and uses D3’s `select` API to update a designated div’s text. Rendering relies entirely on SVG markup within the browser, with minimal styling applied via a separate CSS file. The code serves as a foundational template for integrating D3 with modular JavaScript.
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