Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Mmjoaquim12
Last edited Oct 28, 2019
Created on Oct 27, 2019
Forked from Hello VizHub

This example demonstrates how to compose basic geometric shapes—circles, rectangles, lines, and paths—within an SVG canvas, styling them with CSS classes and inline attributes. The visualization showcases grouping and transformation techniques, such as scaling and translation, to position and layer elements. It uses the native SVG API for rendering and CSS for stroke and fill customization. The code also includes asynchronous JavaScript data handling with Promises, filtering and formatting car data into a text report, though this logic is separate from the visual shapes.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes