Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how D3 and ES6 modules can be used to build a simple VizHub visualization. It loads D3 v5 from a CDN and uses `import { select } from 'd3'` to select the `#message` div and set its text. A separate local module, `myMessage.js`, exports the string 'Hello VizHub!' via `export const message`, which is then displayed. The page also includes a CSS file for styling the large centered text.
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