activity 6_Task 1
✓ Published0🌍 Public
This example demonstrates a minimal Hello World message rendered with D3.js, using the `select()` API to target a DOM element and set its text content. The visualization loads D3 v5 from UNPKG and imports the `select` function directly from the library, while also importing a local ES6 module to supply the message string. The page displays the text “Hello VizHub!” centered via CSS, with the JavaScript combining a template literal and a regex pattern that are defined but not used in the output. It serves as a basic template for structuring D3 projects with local modules and external dependencies.
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