Activity6_task3.2
✓ Published3🌍 Public
This example demonstrates a minimal D3.js setup within VizHub, showing how to load D3 from a CDN via UNPKG and import both D3 API functions and local ES6 modules. The code uses `select` from D3 to set the text content of a `div` element to "Hello VizHub!", with a message string exported from a separate `myMessage.js` module. Styling is applied through an external CSS file, which centers the text and sets a large font size. The example illustrates basic module import patterns and DOM manipulation with D3.
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