activity7_task2
✓ Published0🌍 Public
This example displays the text “Hello VizHub!” centered on a plain page, demonstrating the basic workflow of a VizHub project. It loads D3.js from a CDN and uses the `select` function to target a div element by ID, setting its text content. The project also shows how to import local ES6 modules, with the displayed message defined in a separate `myMessage.js` file. Styling is handled by a linked `styles.css` file, which centers the text and enlarges its font.
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