Activity 6
✓ Published3🌍 Public
This example demonstrates how to load D3.js from a CDN and use its `select` API to update the text content of an HTML div element. It also shows the use of local ES6 modules for code organization. The visualization renders the message “Hello VizHub!” centered on the page, styled with CSS from an external stylesheet. The code includes a regular expression and a variable, though they do not affect the displayed output.
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