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.

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 & exportHTML, source ZIP

SVG Fundamentals

0 stars0Public
MMarko Sanković
Last edited Jun 23, 2022
Created on Jun 23, 2022
Forked from HTML Starter

This example demonstrates fundamental SVG shapes as rendered directly in a web browser. It shows two overlapping circles with contrasting fill and stroke colors, a blue diagonal line, and a black polyline path composed of two line segments. The visualization uses the SVG API within an inline `<svg>` element, specifying geometric attributes such as `cx`, `cy`, `r`, `x1`, `y1`, and path data. The code defines a 960 by 500 pixel canvas, with shapes positioned absolutely and styled through stroke-width and fill properties, requiring no external libraries.

AI-generated description

A demonstration of SVG shapes.

Comments

Sign in to join the discussion.

MIT Licensed