Avtivity-6-tutorial-1
✓ Published1🌍 Public
This example demonstrates a minimal VizHub project that displays the text "Hello VizHub!" centered on a blank page. It shows how to set up a D3.js visualization using version 5.16.0 loaded via UNPKG, combining a simple HTML structure with a CSS stylesheet for styling. The code imports the `select` function from the d3 module to target the `#message` div and set its text content. It also imports a custom local ES6 module, `myMessage.js`, which exports the displayed string, illustrating how to mix D3 API calls with modular JavaScript for reusable 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