Activity6 -task2
✓ Published0🌍 Public
This example demonstrates how a VizHub project loads D3 from a CDN and uses ES6 modules to organize code. It imports the `select` function from D3 and a custom `message` string from a local module, then sets the text of a `div` element with the ID `message` to display “Hello VizHub!”. The page styling centers the large text via CSS. The code also includes a regular expression and a numeric constant but does not use them in any visible behavior.
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