Assignment 2
✓ Published0🌍 Public
This example displays a single centered message, “Hello VizHub!”, rendered in large text. It demonstrates a minimal VizHub setup using D3 v5, loaded via UNPKG, and shows how to import both D3 API functions and local ES6 modules. The code uses `d3.select` to target the `#message` div and sets its text content from an imported `message` constant, with CSS styles defining the font size and alignment.
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