Activity 6
✓ Published0🌍 Public
This example demonstrates VizHub’s ability to load D3 via UNPKG and use ES6 modules from both D3 and local files. The page renders an SVG with a large embedded base64 JPEG image as the background, while a separate div displays the text message “Hello VizHub!” using d3.select and the local message module. The code uses D3 v5’s select function and custom ES6 imports to combine remote and local resources in a single visualization.
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