Skip to main content
Public

Share visualization

Loading preview…

SVG Fundamentals

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

SVG Fundamentals

2
JJacky Wu
Last edited Feb 27, 2025
Created on Feb 26, 2025

This example demonstrates a low-budget Canadian flag constructed entirely from basic SVG shapes. The visualization shows a flag layout with a red maple leaf built from a triangle and a rectangular stem, set against white and red rectangular bands. The code uses raw SVG elements, including `<rect>` for the flag's stripes and stem, and `<polygon>` for the leaf. All shapes are defined directly in the `index.html` file with explicit coordinates and fill colors, rendering the static graphic without any external libraries.

AI-generated description

A demonstration of SVG shapes.

Comments

Sign in to join the discussion.

MIT Licensed