Skip to main content
100%

SVG Demo

✓ Published1🌍 Public
GGabrz
Last edited Mar 25, 2020
Created on Mar 25, 2020
Forked from Cars Report

This example demonstrates basic Scalable Vector Graphics (SVG) shapes, including circles, rectangles, lines, and paths, rendered directly in an HTML page. The visualization uses inline SVG elements within an `index.html` file, with styling applied via an external `styles.css` stylesheet. The SVG canvas is scaled and translated using SVG transform attributes, while CSS classes like `.lines` and `.c3` control stroke colors, widths, and fill properties for grouped elements. The code highlights how SVG’s native coordinate system and CSS cascading rules combine to define a static, vector-based graphic.

AI-generated description

Data Visualization with D3 course; Shapes with SVG and CSS

MIT Licensed

Similar vizzes