Fork of Blank Slate
A blank slate example demonstrates the minimal setup for a VizHub V3 visualization, rendering a red "Hello World!" message at a large font size directly into a container DIV via JavaScript. The runtime requires no `index.html`; instead, the exported `main` function receives a container element and sets its `innerHTML` with dynamic CSS styling. The code uses the V3 Runtime Environment's hot-reloading system, which supports interactive widget editing, such as Alt-drag for font-size changes. A second, static SVG file shows a circle and quadratic Bézier path, rendered with inline SVG attributes.
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.