Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup within VizHub, displaying the text “Hello VizHub!” centered on the page. It shows how to load D3 v5 from a CDN and use ES6 module imports for both external libraries and local JavaScript files. The code uses `d3.select` to target the `#message` div and sets its text content from an exported constant in a separate module. Styling is applied via CSS, centering the text and enlarging the font size dramatically.
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