ACTIVITY 6_TASK 1
✓ Published0🌍 Public
This example demonstrates how to load external libraries and local ES6 modules in a VizHub project. It uses the D3.js library, imported via UNPKG, to select a DOM element with `select` and set its text content. The code imports a message string from a local ES6 module called `myMessage.js` and displays it inside a div with the ID `message`. The accompanying stylesheet centers the text with a large font size. The example showcases basic D3 selection and module import patterns without any data visualization.
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