activity 6 task 3
✓ Published0🌍 Public
This example demonstrates the use of D3.js in a minimal VizHub setup, showing how to import modules and manipulate the DOM. It displays a single text message, “Hello VizHub!”, centered on the page. The code imports the `select` function from D3 and a custom message from a local ES6 module. D3’s `select` method targets the `#message` div and sets its text content, while CSS handles the large, centered font styling. The example serves as a basic template for combining D3 with local and external modules.
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