Skip to main content
100%

Dataviz 2018 - 1. SVG Basic Elements - Ep3

✓ Published0🌍 Public
MMinwoo Pak
Last edited Jun 15, 2021
Created on Oct 13, 2019
Forked from Untitled

This example showcases basic SVG shapes—a circle, rectangle, line, and path—arranged with geometric transformations. It demonstrates how the `transform` attribute’s `scale` and `translate` functions reposition and resize the grouped elements. The code uses raw SVG markup directly in the HTML, styled with CSS selectors like `.lines path` to apply green strokes and rounded line joins. A red-filled circle and a green rectangle appear under a scaled group, while a translated group uses a cyan fill with a black stroke. The path is drawn using the `M` (move-to) and `L` (line-to) commands.

AI-generated description

Basic Elements of SVG

MIT Licensed

Similar vizzes