Activity 6
✓ Published1🌍 Public
This example displays the text “Hello VizHub!” in the center of the page using D3 v5, loaded via UNPKG. It demonstrates importing individual API functions like `select` from the D3 module, as well as local ES6 modules for reusable content. The `select` method targets the `#message` div and sets its text content to the imported `message` string. Styling relies on a separate CSS file that centers the text and sets a large font size, showing a basic modular structure for VizHub projects.
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