Activity6_Task3
✓ Published0🌍 Public
This example demonstrates how VizHub enables a minimal D3.js project to load external libraries and utilize local ES6 modules. The page displays the text "Hello VizHub!" centered on the screen, styled via CSS. The code imports the `select` function from D3 to target the `#message` element and sets its text content. A separate local module, `myMessage.js`, exports the string used as the message, showcasing modular code organization within the template. The example uses D3 v5 loaded from UNPKG and relies on a bundled JavaScript file for execution.
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