Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup that displays the text “Hello VizHub!” inside a centered HTML div. It shows how to load D3 version 5 from a CDN, import the `select` function from the `'d3'` module, and import a local ES6 module (`myMessage.js`) that exports a string. The code uses `select('#message').text()` to inject the message into the page, with styling applied via an external 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.
MIT Licensed