Question 2(2)_Activity 6
✓ Published1🌍 Public
This example demonstrates how D3.js can be used to dynamically update text content in a webpage. It loads D3 v5 from a CDN and uses the `select` API to target a specific HTML element, setting its displayed text to a string imported from a local ES6 module. The visualization shows a simple hello-world interaction, rendering the message “Hello VizHub!” in large, centered text via CSS. It highlights D3’s ability to manipulate the DOM alongside modern JavaScript module imports.
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