🌍 Public
Viewing a saved revision (read-only)
b72fdd37ad704913a07ffe4525b6751a
t2
This example renders a simple text message in the browser using D3.js. It demonstrates how to load D3 v5 from UNPKG and import local ES6 modules. The code uses the `select` API from D3 to target the `#message` div and set its text content, while a separate module exports the string "Hello VizHub!". The page styling is handled by a linked CSS file.
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.