Question-2 Task 2
✓ Published0🌍 Public
This example demonstrates a minimal VizHub setup that loads D3 via UNPKG and displays a centered “Hello VizHub!” message. It shows how to import D3 API functions like `select` from the `d3` module, and how to import local ES6 modules from separate files. The code uses `select('#message').text(message)` to set the text content, and also includes a simple regex pattern and a constant variable. The page styling is defined in an external CSS file, with the message rendered at a large font size.
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