Activity6_Task3
✓ Published0🌍 Public
This example demonstrates how to load D3 from a CDN and use ES6 modules to structure a minimal web page. It shows a single text message, “Hello VizHub!”, displayed in the center of the screen and styled with a large font size. The code imports the `select` function from D3 and a string from a local `myMessage.js` module, then uses `select` to set the text content of a `div` element. The setup highlights the integration of external libraries with local modular JavaScript code.
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