Activity 6_Task 2
✓ Published1🌍 Public
This example demonstrates a minimal D3.js integration within a VizHub project, rendering the text "Hello VizHub!" prominently in the center of the page. It shows how to load D3 v5 via UNPKG and use the `import` statement to access the `select` function from the D3 module for DOM manipulation. The code also imports a local ES6 module, `myMessage.js`, which exports the displayed string, and applies styling through an external CSS file. This serves as a foundational template for combining D3 with modular JavaScript.
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