Untitled
✓ Published0🌍 Public
This example demonstrates VizHub’s ability to load D3 via UNPKG and use ES6 modules locally. It imports the `select` function from D3 and a custom `message` constant from `./myMessage`, then sets the text of a `#message` div to display “Hello VizHub!”. The page is styled with centered, large text via `styles.css`, while the HTML shell loads a bundled script. It serves as a minimal template for combining external libraries with modular JavaScript in a VizHub environment.
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