Activity 6 Task3
✓ Published0🌍 Public
This example demonstrates how to load D3 via UNPKG and use ES6 module imports to structure a simple VizHub project. It uses D3’s `select` function to set the text content of a div element, pulling a string from a local module. The page displays a large, centered “Hello VizHub!” message styled with CSS, with the D3 library imported directly and a local `myMessage.js` file providing the displayed text. The code also includes an unused numeric constant and regex, but no data visualization is shown.
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