Activity 6
✓ Published3🌍 Public
This example presents a minimal D3.js demonstration that displays a personalized greeting message. It shows how to set up a VizHub project by importing D3 through a CDN and using the `select` function from the `d3` module to target an HTML element and populate it with text. The code also illustrates local ES6 module imports, pulling a string from `myMessage.js` and applying basic CSS styling to center the text on the page.
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