Activity_6_Task_2
✓ Published0🌍 Public
This example demonstrates a minimal D3.js integration within a VizHub project, displaying a centered “Hello VizHub!” message. It shows how to load D3 v5 via UNPKG, import the `select` function from the D3 module, and use a local ES6 module (`myMessage.js`) to supply text content. The code applies a CSS style for large, centered typography and supports regex and variable declarations. The rendering approach uses the `select('#message')` API to set the DOM element’s text directly.
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