Task-8_tutorial1
✓ Published0🌍 Public
This example demonstrates how VizHub integrates D3.js with local ES6 modules to render a simple, centered text message. The visualization loads D3 via UNPKG and uses the `select` API from D3 to target an HTML element by ID, setting its content with `.text()`. The message text originates from a separate local module (`myMessage.js`) exported as a constant. Styling is applied through an external CSS file, while the code also includes regular expressions and a variable assignment. The example shows basic D3 DOM manipulation within a modular project structure.
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