JSImports
✓ Published0🌍 Public
This example demonstrates how VizHub projects can load D3 from a CDN, import API functions from the D3 module, and use local ES6 modules for custom code. It displays the text "Hello VizHub!" in a centered message div using `select('#message').text()`. The project also defines a `Rectangle` class with a static asynchronous `load` method that logs to the console, and a separate `myMessage.js` module exporting the displayed string. The page uses minimal styling from `styles.css` with a large font size.
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