Activity-6 task-1
✓ Published0🌍 Public
This example demonstrates how to build a simple visualization using D3 v5 within the VizHub environment. It shows a single text message centered on the page, rendered through an HTML div element. The code imports functions via ES6 modules, including `select` from D3 and a custom `message` from a local file, highlighting the modular structure. The styling is applied through an external CSS file, and D3 is loaded dynamically from the UNPKG CDN.
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