Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup within a VizHub project, displaying the text "Hello VizHub!" centered on the page. It shows how to import D3 functions and local ES6 modules, using `select` from D3 to update a DOM element's content. The code loads D3 via UNPKG and combines it with a custom module, `myMessage.js`, to supply the message string. The rendering uses an SVG element in the HTML, while styling for the message text is handled in a separate CSS file.
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