Activity 7.1
✓ Published1🌍 Public
This example demonstrates how to build a simple VizHub project by loading D3 v5 from a CDN and importing local ES6 modules. It displays the text “Hello VizHub!” centered in a large font using the `d3.select` API to set the content of an HTML div element. The code uses `import { select } from 'd3'` and a custom module `myMessage.js` to export the message string, showing basic module composition. The page is styled with a CSS file that centers the message and sets its font size. The visualization is minimal, focusing on tooling and module patterns rather than data rendering.
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