Activity6_task2
✓ Published1🌍 Public
This example demonstrates the basic structure of a VizHub project, showing how to load D3 via a CDN and use ES6 modules for local code organization. The index.html file includes the D3 library from UNPKG and links to a stylesheet, while index.js imports the select function from d3 and a custom message from myMessage.js. The code sets the text content of a div element with the ID “message” to display “Hello VizHub!”, styled with large centered text via CSS. The data.csv file is included but not referenced in the visualization logic.
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