🌍 Public
Viewing a saved revision (read-only)
b0705c5aa4a94650a1b1b28c58e9fc70
activity 6_Task 1
This example demonstrates a minimal VizHub project structure, showing how to load D3 via UNPKG and use ES6 module imports for local code. The page renders the text “Hello VizHub!” centered on the screen using D3’s `select` method to set the text content of a `div` element. The code also defines a regular expression and a numeric constant, though these are not used in the display. D3 v5 is loaded from a CDN, with styling applied via external CSS.
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.