p001-hello-world
✓ Published0🌍 Public
This example demonstrates the minimal setup for a VizHub V3 Runtime visualization, rendering a static "Hello World!" message inside a bordered container. It shows how the exported `main` function receives a DIV element and injects HTML content directly using template literals, with a hard-coded font size of 212 pixels. The code imports `style.css` for basic border styling and relies on the V3 environment’s hot reloading, triggered by the absence of an `index.html` file. No external libraries or data sources are used.
AI-generated descriptionA blank slate starting point showing the "Hello World" for the VizHub V3 Runtime Environment, which supports continuous hot reloading with interactive widgets.
- There is no
index.html- that's what triggers the V3 Runtime - The entry point is the
mainfunction exported fromindex.js - The
mainfunction takes an argumentcontainer, a DIV
Full course playlist: YouTube: Constructing Visualization 2024.
MIT Licensed