ActivityHelloVizhub
✓ Published0🌍 Public
This example demonstrates how to set up a minimal D3.js project in VizHub, showing a centered text message. It loads D3 v5 from UNPKG and uses ES6 module imports, including `select` from the `d3` package and a local `message` constant from `myMessage.js`. The code applies the message to a `#message` div, with CSS styling controlling its centered, large font appearance.
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