activity6_task1
✓ Published0🌍 Public
This example displays a simple text message, "Hello VizHub!", centered on the page. It serves as a minimal demonstration of VizHub's capabilities, showing how to import D3.js functions and local ES6 modules. The code uses `select` from D3 to target the message div and sets its text via the `text` method, while a local module exports the message string. The page loads D3 v5.16.0 from a CDN and relies on a separate CSS file for styling.
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