Activity-6
✓ Published1🌍 Public
This example demonstrates basic D3.js and ES6 module usage within a VizHub project. It displays a large, centered "Hello VizHub!" message on a webpage, styled through an external CSS file. The code imports the `select` function from D3 and a custom `message` string from a local module, using `select('#message').text(message)` to set the text content. The page loads D3 version 5.16.0 from a CDN and relies on a pre-built `bundle.js` to execute the imported JavaScript.
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