Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates the basic integration of D3.js and ES6 modules in a VizHub project, showing how to import local modules and D3 APIs to manipulate the DOM. It displays a static message, “Hello VizHub!”, centered on the page using the `select` function from D3 v5 to set the text content of a `div`. The code imports a string from a local `myMessage.js` module and uses it via `select('#message').text(message)`. Styling is applied through a linked `styles.css` file. No data is loaded or visualized; the focus is purely on module syntax and minimal DOM interaction.
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