Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates the basic setup of a VizHub project, showing how D3.js version 5 loads from a CDN and interacts with the DOM. It displays a static message, "Hello VizHub!", inside a styled `div` element. The code uses D3's `select` function to target the `#message` element and set its text content, while also importing a local ES6 module, `myMessage.js`, to supply the message string. The page structure is defined in `index.html`, with styles applied via `styles.css` to center and enlarge the text, and a separate `bundle.js` script handles the JavaScript execution.
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