Activity 6
✓ Published0🌍 Public
This example demonstrates how to integrate D3.js with ES6 modules in a minimal VizHub project. It selects a div element and sets its text to "Hello VizHub!" using the `select` function imported from D3. The code also imports a local ES6 module (`myMessage.js`) to supply the message string, and includes a global D3 script loaded via UNPKG alongside a local stylesheet. The rendering approach is straightforward DOM manipulation, with no external data source or complex visualizations.
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