Activity 6
✓ Published0🌍 Public
This example demonstrates a minimal D3.js visualization that displays a centered text message, "Hello VizHub!," using the `d3.select` API to target a specific DOM element. The page loads D3 version 5.16.0 from UNPKG and imports a local ES6 module, `myMessage.js`, to provide the text content. Styling is handled through a separate CSS file, which positions the message with large, centered font. The code highlights the basic workflow of combining external libraries and local modules within a VizHub project.
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