Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how VizHub projects can load D3 and organize code with local ES6 modules. It uses D3’s `select` function to target a `div` with the id `message` and set its text content to a string imported from a separate module. The imported `message` constant is defined in `myMessage.js`. The page includes D3 v5 via UNPKG, and the stylesheet centers the message with a large font size.
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