Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to load external libraries and organize code in a VizHub project. It uses D3.js version 5, loaded via UNPKG, to select an HTML element with id “message” and set its text content. The text string “Hello VizHub!” comes from a local ES6 module, myMessage.js, imported using the `import` syntax. The visualization renders in an SVG container with a fixed width and height, while the primary output is a large, centered text message styled through CSS, showcasing modular code structure and D3’s selection API.
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