activity 6_Task 1
✓ Published0🌍 Public
This example demonstrates basic VizHub functionality by displaying the message "Hello VizHub!" in the center of the page. The visualization uses `d3.select` from the D3 v5 library to target the `#message` div and set its text content. The code imports both a local ES6 module (`./myMessage`) and D3's API functions, showcasing how to combine external libraries with modular JavaScript. The page's styling is handled via a separate CSS file, and the example includes a simple regular expression and number assignment within the main script.
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