Activity6
✓ Published0🌍 Public
This example demonstrates how to use D3.js v5 within a VizHub project to display a custom message on a webpage. It shows a simple text rendering workflow, where the message "Hello VizHub!" is centered and styled using CSS. The code imports the `select` function from D3 and a local ES6 module exporting the message string. D3’s `select` method targets the `#message` div and sets its text content. The project also illustrates loading D3 from a CDN via UNPKG and bundling local ES6 modules.
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