activity_8tutorial1
✓ Published0🌍 Public
This example demonstrates a minimal VizHub template that loads D3 via CDN and renders a text message. It shows how to import functions from D3’s `select` API and a local ES6 module exporting a string constant. The `index.html` page contains a single `div` element, which D3 populates with the message, while `styles.css` centers the text at a large font size. It also defines an unused variable and regular expression in the main script.
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