Working with data
✓ Published0🌍 Public
This example demonstrates the fundamental capabilities of VizHub, showing how to load D3 via a CDN and combine it with local ES6 modules. It imports the `select` function from D3 to set the text content of a div element, using a message string exported from a separate `myMessage.js` module. The rendered output is a single centered line of text, "Hello VizHub!", displayed at a large font size via CSS. The code highlights both external library integration and modular JavaScript organization within a visualization environment.
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