Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to set up a minimal D3.js visualization within VizHub, using an ES6 module imported from a local file. It shows a single text element displaying “Hello VizHub!” centered on the page. The code uses `d3.select` to target the `#message` div and sets its text content via the `message` variable exported from `myMessage.js`. D3 is loaded from a CDN via UNPKG, and the example highlights the import syntax for both the D3 library and local modules.
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