Shapes with SVG and CSS
✓ Published1🌍 Public
This example demonstrates how to position and style basic SVG shapes—circles and rectangles—using both inline SVG attributes and external CSS. The visualization shows a static composition of shapes on a 960 by 500 canvas, including one shape group translated via the SVG `transform` attribute. Rendered through React within the VizHub environment (source v3), the code uses raw SVG elements like `<circle>`, `<rect>`, and `<g>`, with styling applied via the `styles.css` file. The page itself is a minimal HTML document linking to the stylesheet, highlighting the interplay between SVG presentation attributes and CSS rules.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed