Activity-6
✓ Published2🌍 Public
This example demonstrates a minimal D3.js setup within VizHub, rendering the text "Hello VizHub!" in a centered, oversized style. It shows how to load D3 v5 via UNPKG and use ES6 module imports, both for the `select` function from D3 and a custom local module exporting the message string. The code also includes a declared constant and a regular expression, though they are unused in the visualization. The final output is a single styled text element in the DOM, driven by the imported message.
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