Activity6_Task2
✓ Published1🌍 Public
This example demonstrates a minimal D3.js setup within VizHub, showing how to load D3 via UNPKG and use ES6 module imports to combine local code with the library. It renders a single text message, “Hello VizHub!”, into an HTML div using `select` from D3, while a separate local module exports the message string. The page also includes a CSS rule for centering large text, and the JavaScript defines a regex and a constant that are not used in the visualization. The rendering approach is straightforward DOM manipulation rather than data binding.
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