Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SCG and CSS

Public visualization

Viewing a saved revision (read-only)

93d036da31444f429b2be92a1fb3d0b1

Shapes with SCG and CSS

0 stars0🌍 Public
Jjeffko18
Last edited Oct 19, 2019
Created on Oct 19, 2019
Forked from HTML Cars Report

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—styled through both inline attributes and CSS. It shows how SVG elements inherit styling from parent `<g>` groups and how CSS classes can apply strokes and fill colors. The code uses the SVG API directly with elements like `<circle>`, `<rect>`, `<line>`, and `<path>`, rendered in a 960x500 viewport. The CSS file defines stroke properties for the lines group, while inline attributes handle fills and specific stroke widths.

AI-generated description

An example showing the capabilities of VizHub.