Activity 6
✓ Published1🌍 Public
This visualization demonstrates how to set up a simple D3.js project within the VizHub environment. The example shows a basic web page that displays a large "Hello VizHub!" message using D3's `select` function to target the `#message` div. It illustrates importing both the D3 library via UNPKG and local ES6 modules, with the text content defined in `myMessage.js`. The code also includes CSS styling to center the text with a large font size.
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