Fork of Hello VizHub
✓ Published0🌍 Public
This example displays the text "Hello VizHub!" centered on the page. It loads D3 v5 from UNPKG and uses the `d3.select` API to locate the `#message` div and set its text via the `text` method. The text string itself comes from a local ES6 module, `myMessage.js`, which exports a `message` variable. The page’s styling is defined in a separate `styles.css` file, and the D3 code runs from an imported `bundle.js`.
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