🌍 Public
Viewing a saved revision (read-only)
f5fcbf147afe4926a28c83ad4fabf717
Activity 7_Q1
This visualization displays the text “Hello VizHub” inside a web page, using D3.js v5 to select the message container and set its text content. The example also demonstrates importing a custom message from a separate ES6 module and declares a regular expression and a numeric constant. The code relies on D3’s `select` API to target the HTML element and apply the text value.
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.