Fork of Hello VizHub
✓ Published2🌍 Public
This example demonstrates a minimal D3.js setup within VizHub, displaying the text “Hello VizHub!” centered in the page. It shows how to import D3 API functions, specifically `select`, and combine them with local ES6 modules, as seen in the custom `myMessage.js` file. The code also includes unused declarations like a constant and a regular expression. Rendering relies on D3’s `select` to set the text content of the `#message` div, with styling provided by an external CSS file, all loaded via a standard HTML page.
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