Activity 6 Task 4
✓ Published0🌍 Public
This example demonstrates VizHub’s ability to load D3 via UNPKG and use ES6 modules, displaying the message “Hello VizHub!” in large centered text. The code imports `select` from D3 to target the `#message` div and sets its text from a locally imported `message` constant. It also includes a CSS rule for styling, showcasing how external stylesheets and local module imports integrate with D3 in a minimal HTML page.
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