Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js visualization that renders a static message, “Hello VizHub!”, into a DOM element. It loads D3 v5 via UNPKG and uses the `select` function from the `d3` import to set the text content of a `div` with the ID `message`. The text originates from a local ES6 module, `myMessage.js`, which exports the string. Styling is applied through an external CSS file, centering the text at a large red font size. The example showcases modular imports and basic DOM manipulation with D3.
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