🌍 Public
Viewing a saved revision (read-only)
541ff192c2c548cbb8a004dd4c94e3ca
Fork of Hello VizHub
This example demonstrates a minimal integration of D3.js with ES6 modules in a VizHub project, displaying the text “Hello VizHub!” centered on the page. It shows how to load D3 v5 from a CDN via UNPKG, import the `select` function from D3, and import a local string from `myMessage.js`. The code uses `select('#message').text(message)` to set the content of a div, with CSS styling for large centered text. No data visualization or animation is present; it focuses on setup and module usage.
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.