Activity6_Task1
✓ Published0🌍 Public
This example displays a simple text message, "Hello VizHub!", centered on the page. It demonstrates how to import and use both D3.js functions and local ES6 modules within a VizHub project. The code uses D3’s `select()` to target the HTML element and set its text, while the message content is imported from a separate module. The page uses standard CSS for styling, and D3 is loaded via a CDN link.
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