Skip to main content
100%

D3 Tutorial Code

✓ Published0🌍 Public
DDaniel Johnson
Last edited Feb 4, 2024
Created on Feb 4, 2024

This example demonstrates the Hello World of the VizHub V3 Runtime Environment, rendering a simple text string inside a plain HTML div. It shows how a minimal visualization can be built without any separate HTML file, relying instead on the runtime’s continuous hot reloading. The code exports a `main` function that receives a `container` DIV and sets its `innerHTML` to display the text at a fixed pixel size via inline styles. No external libraries are used beyond the runtime itself, making this a clean starting point for learning the environment’s core workflow.

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