Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup within VizHub, showing how to display a text message centered on the page using HTML and CSS. The code loads D3 v5 via a CDN in `index.html` and uses an ES6 module, `myMessage.js`, to export the string "Hello VizHub!" which is imported and logged to the console in `index.js`. The visualization relies on the `#message` div styled in `styles.css` rather than any D3 data-binding or SVG rendering. It highlights the integration of local modules, external libraries, and styling within a single-page framework.
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