Activity 6_Task 1
✓ Published0🌍 Public
This example demonstrates how VizHub supports ES6 module imports and external library loading. It renders a simple text message centered on the page using D3 v5, imported directly from a CDN. The code uses `import { select } from 'd3'` to manipulate the DOM and displays a string from a local module called `myMessage.js`, showing the integration of local JavaScript files with external dependencies. The page styling comes from a linked stylesheet.
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