Activity-6 Question-1
✓ Published1🌍 Public
This example demonstrates a minimal D3.js setup within VizHub, showing how to load D3 v5 from a CDN and use an ES6 module to display a simple text message. The code imports the `select` function from D3 and uses it to set the text content of a `div` element with the ID `message`. It also imports a local module, `myMessage.js`, which exports the string `'Hello VizHub!'`. The rendered output is a large, centered greeting styled via external CSS, illustrating basic DOM manipulation and module imports.
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