Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup within the VizHub environment, displaying the text “Hello VizHub!” centered on the page. It shows how to load D3 v5 from a CDN, import specific API functions like `select` using ES6 module syntax, and import a local module (`myMessage.js`) that exports the displayed string. The page structure includes an HTML file with a dedicated `div`, a CSS file for styling, and JavaScript that chains `select` and `.text` to update the DOM.
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