🌍 Public
Viewing a saved revision (read-only)
92a7745fa70e4783802d2a7068cafd84
Fork of Hello VizHub
This example demonstrates the minimal structure of a VizHub visualization, showing how to load D3 and display a text message on a web page. It combines D3's `select` API with a local ES6 module export to set the content of an HTML `div` element. The code imports `select` from D3 and a `message` string from a separate local module, then applies that message as the element’s text. Styling is handled via a linked CSS file, and D3 is sourced from UNPKG.
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.