Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
AAnnie Chiu
Last edited Feb 5, 2024
Created on Feb 5, 2024

This example demonstrates the fundamental building blocks of SVG rendering by drawing two circles on a 1000-by-1000 canvas. The first circle uses default black fill, while the second circle is styled with a red fill and a thick stroke width of 10. Each shape is defined declaratively in the markup with explicit `cx`, `cy`, and `r` attributes. The visualization illustrates how SVG’s coordinate system and presentation attributes control geometry and appearance without any JavaScript logic, serving as a baseline for more complex data-driven graphics in the VizHub V3 environment.

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