Skip to main content
100%

p001-hello-world

✓ Published0🌍 Public
SShad Frigui
Last edited Feb 10, 2024
Created on Feb 10, 2024

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 description

A 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 main function exported from index.js
  • The main function takes an argument container, a DIV

Full course playlist: YouTube: Constructing Visualization 2024.

MIT Licensed

Similar vizzes