🌍 Public
Viewing a saved revision (read-only)
36f3dae56cc449c3885c8fe1d82f716a
Fork of Activity-6
This example demonstrates how to load D3 via UNPKG and use ES6 modules to organize code in a minimal VizHub project. The page displays “Hello VizHub!” in large, centered text, styled with CSS. The code imports the `select` function from the `d3` namespace to manipulate the DOM, and imports a local `message` string from a separate ES6 module, showing how to combine external libraries with modular JavaScript. The implementation also includes a regular expression and a numeric constant to illustrate basic variable declarations.
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.