Activity6_task4
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup within VizHub, displaying a centered “Hello VizHub!” message. It shows how to load D3 from a CDN via UNPKG and use ES6 module imports for both the D3 library and a local module. The code uses `select` from D3 to set the text content of an HTML div element, while a separate `myMessage.js` file exports the message string. The page also includes basic CSS styling for the message text.
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