Activity 6
✓ Published1🌍 Public
This example demonstrates how to integrate D3 with ES6 modules in VizHub, importing both the D3 library and a local module to dynamically update text on a webpage. It uses `select` from D3 to target an HTML div and set its content to a string exported from `myMessage.js`. The page loads D3 via UNPKG and includes external CSS styling, showcasing a minimal setup for mixing CDN-loaded libraries with modern JavaScript module syntax.
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