Fork Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to set up a minimal VizHub visualization using D3 v5 and ES6 modules. It loads D3 from UNPKG and imports the `select` function to target a DOM element, while a local module exports a custom message string. The code renders the text " VizHub!" inside a styled div, with CSS centered and enlarged via the `#message` selector. It illustrates basic module imports, CDN library loading, and D3’s selection API for updating page content.
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