Activity6_vizhub
✓ Published0🌍 Public
This example demonstrates the basic setup of a VizHub project using D3.js v5 and ES6 modules. It shows how to load D3 from a CDN via UNPKG, import specific functions like `select` from the D3 library, and import local modules such as `message` from `myMessage.js`. The code uses D3’s `select` method to update the text of an HTML div element, rendering the string "Hello VizHub!" centered on the page via CSS styling. The project serves as a minimal template for combining D3 with modular 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