Activity 6 Tutorial 2
✓ Published0🌍 Public
This example displays the text "Hello VizHub!" centered on the page. It demonstrates how to set up a D3.js project within VizHub, loading the library via a CDN link and importing APIs using ES6 syntax. The code uses the `select` function to target the message div and set its content from a separate local module. Styling is applied through an external CSS file, and the page is rendered with a standard HTML structure.
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