Activity6_Task1
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup in VizHub, displaying a centered text message ("Hello VizHub!") styled with large font size and aligned via CSS. It shows how to load D3 v5 through a CDN and use the `select` API to target an HTML element and set its text content. The code also highlights modern JavaScript features by importing a local ES6 module (`myMessage.js`) and defining a regular expression variable. The rendering approach relies on plain HTML DOM manipulation rather than SVG or canvas drawing.
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