Activity 6 tutorial 4
✓ Published1🌍 Public
This example demonstrates how VizHub supports ES6 modules and D3.js integration within a simple web page. It shows a static message, "Hello VizHub!", displayed prominently in the center of the screen using large text styling. The code imports the `select` function from D3 and a local `message` constant from a separate `myMessage.js` module, then applies the text to a `div` element. D3 is loaded via UNPKG, and the page structure is defined in `index.html` with accompanying CSS.
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