Tutorial fork
✓ Published0🌍 Public
This example demonstrates the fundamental capability of VizHub to load external libraries and execute modular JavaScript code. It uses D3.js version 5, imported directly from a CDN, to select an HTML element and set its text content. The program also imports a local ES6 module named `message.js`, which exports a string that is rendered inside a styled div. The visualization simply displays the text "Hello VizHub!" centered on the page using CSS, illustrating basic D3 selection and DOM manipulation along with local module imports.
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