Fork of Activity6_TAsk3
✓ Published1🌍 Public
This example demonstrates how to combine D3.js with ES6 modules in a minimal VizHub setup. It uses the D3 `select` function to target a `#message` div and update its text content with a string exported from a local module. The page loads D3 from UNPKG, while the main script imports both D3 utilities and a custom `message` function from a separate JavaScript file. The rendering approach is straightforward DOM manipulation, with a CSS stylesheet controlling the text alignment and size.
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