Activity 6 task 1
✓ Published0🌍 Public
This example demonstrates a minimal VizHub setup that displays the text “Hello VizHub!” centered on the page using D3. It loads D3 v5 from UNPKG and uses the `select` function to target the `#message` div, setting its text content with D3’s `.text()` method. The code also imports a local ES6 module for the message string and includes a regular expression and a variable, though these are unused. The page structure is defined in HTML, with styles provided by an external CSS file.
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