activity6_task3
✓ Published1🌍 Public
This example demonstrates how to combine D3.js with ECMAScript modules to create a minimal interactive page. It shows a text message displayed prominently in the browser, with D3’s `select` function used to target the `#message` div and update its content. The code imports a local ES6 module `myMessage` to supply the string, and includes a global D3 script loaded via CDN from UNPKG. The styling is handled by a linked stylesheet, and the visualization uses no data or rendering, serving as a template for modular D3 projects.
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