Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup that renders a static "Hello World!" message to the page. It shows how to import the `select` function from the D3 library via UNPKG and import a local ES6 module named `myMessage.js` that exports the text string. The code uses `document.getElementById` to set the message content, though an alternative D3 `select` call is also commented out. The page’s styling is defined in `styles.css`, which centers the text and sets a large font size.
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